Function at 0x41af40
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e47f9
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov edx, dword [esi]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x20], esi
call eax
test al, al
jne 0x41b582
xor ebx, ebx
mov dword [esp + 0xa0], ebx
push 0x10
mov dword [esp + 0x24], vtable.GameMgr::GMJsonValue.0
call fcn.004b6eb3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xa0], 1
je 0x41afd0
push eax
call fcn.0044853d
jmp 0x41afd2
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xa0], 3
push 0x78
mov dword [esp + 0x4c], vtable.GameMgr::GMJsonReader.0
call fcn.004b6eb3
add esp, 4
cmp eax, ebx
je 0x41b035
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x3c], ebx
mov ecx, 0xf
mov dword [eax + 0x40], ecx
mov byte [eax + 0x2c], bl
mov dword [eax + 0x70], ecx
mov dword [eax + 0x6c], ebx
mov byte [eax + 0x5c], bl
mov edi, eax
mov byte [eax + 0x74], 1
mov byte [eax + 0x75], bl
mov dword [esp + 0x10], edi
jmp 0x41b03b
mov dword [esp + 0x10], ebx
mov edi, ebx
mov dword [esp + 0x4c], edi
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0xa4], 4
call fcn.00448f56
mov byte [esp + 0xa0], 5
mov ecx, dword [esi + 0x70]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x74]
mov edx, dword [edx + 0xc]
push 1
push edx
add eax, ecx
push eax
push ecx
mov esi, edi
call fcn.00454933
test al, al
jne 0x41b1c2
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov dword [esp + 0x14], vtable.GameMgr::GMJsonStyledWriter.0
je 0x41b147
mov dword [esi], vtable.Json::StyledWriter.0
cmp dword [esi + 0x48], 0x10
mov dword [esp + 0x10], esi
jb 0x41b0ac
mov eax, dword [esi + 0x34]
push eax
call fcn.004b6eae
add esp, 4
mov dword [esi + 0x48], 0xf
mov dword [esi + 0x44], ebx
mov byte [esi + 0x34], bl
cmp dword [esi + 0x2c], 0x10
jb 0x41b0cb
mov eax, dword [esi + 0x18]
push eax
call fcn.004b6eae
add esp, 4
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x41b12b
mov ecx, dword [esi + 0xc]
cmp eax, ecx
mov dword [esp + 0x1c], ecx
je 0x41b11f
lea esi, [eax + 0x18]
lea ecx, [ecx]
cmp dword [esi], 0x10
jb 0x41b105
mov eax, dword [esi - 0x14]
push eax
call fcn.004b6eae
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, ecx
jne 0x41b0f0
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
push eax
call fcn.004b6eae
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
push esi
mov dword [esi], vtable.Json::Writer.0
call fcn.004b6eae
add esp, 4
mov dword [esp + 0x18], ebx
cmp edi, ebx
mov dword [esp + 0x14], vtable.GameMgr::IJsonParseWriter.0
je 0x41b1a6
cmp dword [edi + 0x70], 0x10
jb 0x41b165
mov eax, dword [edi + 0x5c]
push eax
call fcn.004b6eae
add esp, 4
mov esi, 0xf
mov dword [edi + 0x70], esi
mov dword [edi + 0x6c], ebx
mov byte [edi + 0x5c], bl
cmp dword [edi + 0x40], 0x10
jb 0x41b185
mov eax, dword [edi + 0x2c]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 0x40], esi
mov dword [edi + 0x3c], ebx
lea eax, [edi + 0x14]
mov byte [edi + 0x2c], bl
call fcn.00448e70
mov esi, edi
call fcn.00448e23
push edi
call fcn.004b6eae
add esp, 4
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0xa4], 0xffffffff
call fcn.00448908
xor al, al
jmp 0x41b584
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x3c], 8
jb 0x41b1d1
mov eax, dword [eax + 0x28]
jmp 0x41b1d4
add eax, 0x28
call fcn.0042f2c8
push eax
lea edx, [esp + 0x38]
push edx
call fcn.00448892
mov esi, eax
push str.session
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xac], 6
call fcn.00448a59
push str.restore_on_startup
lea edx, [esp + 0x44]
push edx
push eax
mov byte [esp + 0xac], 7
call fcn.00448a59
mov byte [esp + 0xa0], 8
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0xc]
push edx
call fcn.00452e0b
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0xa4], 7
call fcn.00448908
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xa4], 6
call fcn.00448908
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xa4], 5
call fcn.00448908
push str.session
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00448a59
push str.startup_urls
lea ecx, [esp + 0x38]
push ecx
push eax
mov byte [esp + 0xac], 9
call fcn.00448a59
mov byte [esp + 0xa0], 0xa
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xa4], 9
call fcn.00448908
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xa4], 5
call fcn.00448908
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x58]
add eax, 0xe4
push ecx
call fcn.00442c8d
add esp, 4
mov byte [esp + 0xa0], 0xb
cmp dword [eax + 0x18], 0x10
jb 0x41b2f4
mov eax, dword [eax + 4]
jmp 0x41b2f7
add eax, 4
push eax
lea edx, [esp + 0x54]
push edx
call fcn.0044883f
mov esi, eax
push str.session
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xac], 0xc
call fcn.00448a59
push str.startup_urls
lea edx, [esp + 0x30]
push edx
push eax
mov byte [esp + 0xac], 0xd
call fcn.00448a59
push esi
lea ecx, [esp + 0x38]
push ecx
push eax
mov byte [esp + 0xac], 0xe
call fcn.00448aed
lea edx, [esp + 0x34]
push edx
call fcn.00448908
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xa4], 0xd
call fcn.00448908
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0xa4], 0xc
call fcn.00448908
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0xa4], 0xb
call fcn.00448908
mov byte [esp + 0xa0], 5
cmp dword [esp + 0x70], 0x10
jb 0x41b3a8
mov eax, dword [esp + 0x5c]
push eax
call fcn.004b6eae
add esp, 4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00448fe0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x6c]
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x41b3f2
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push ebx
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, 0x10
cmp dword [esp + 0x8c], esi
jb 0x41b430
mov edx, dword [esp + 0x78]
push edx
call fcn.004b6eae
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x14], vtable.GameMgr::GMJsonStyledWriter.0
je 0x41b50d
mov edi, eax
mov dword [eax], vtable.Json::StyledWriter.0
cmp dword [edi + 0x48], esi
jb 0x41b473
mov eax, dword [edi + 0x34]
push eax
call fcn.004b6eae
add esp, 4
mov esi, 0xf
mov dword [edi + 0x48], esi
mov dword [edi + 0x44], ebx
mov byte [edi + 0x34], bl
cmp dword [edi + 0x2c], 0x10
jb 0x41b493
mov eax, dword [edi + 0x18]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 0x2c], esi
mov dword [edi + 0x28], ebx
mov byte [edi + 0x18], bl
mov esi, dword [edi + 8]
cmp esi, ebx
je 0x41b4e8
mov eax, dword [edi + 0xc]
cmp esi, eax
mov dword [esp + 0x28], eax
je 0x41b4dc
add esi, 0x18
cmp dword [esi], 0x10
jb 0x41b4c6
mov eax, dword [esi - 0x14]
push eax
call fcn.004b6eae
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, eax
jne 0x41b4b1
mov eax, dword [edi + 8]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
push edi
mov dword [edi], vtable.Json::Writer.0
call fcn.004b6eae
mov edi, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], ebx
mov esi, 0x10
cmp edi, ebx
mov dword [esp + 0x14], vtable.GameMgr::IJsonParseWriter.0
je 0x41b56d
cmp dword [edi + 0x70], esi
jb 0x41b52a
mov eax, dword [edi + 0x5c]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 0x70], 0xf
mov dword [edi + 0x6c], ebx
mov byte [edi + 0x5c], bl
cmp dword [edi + 0x40], esi
jb 0x41b548
mov eax, dword [edi + 0x2c]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 0x40], 0xf
mov dword [edi + 0x3c], ebx
lea eax, [edi + 0x14]
mov byte [edi + 0x2c], bl
call fcn.00448e70
mov esi, edi
call fcn.00448e23
push edi
call fcn.004b6eae
add esp, 4
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0xa4], 0xffffffff
call fcn.00448908
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004b6e9f
mov esp, ebp
pop ebp
ret 4