Function at 0x4131b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x516205
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push edi
call edx
test al, al
jne 0x4135b8
lea eax, [esp + 0x24]
push eax
call fcn.004522b0
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
mov dword [esp + 0x9c], esi
call fcn.00452ce0
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x9c], 1
call fcn.00453110
mov byte [esp + 0x98], 2
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
mov edx, dword [edx + 0xc]
push 1
push edx
add eax, ecx
push eax
mov eax, dword [esp + 0x24]
push ecx
push eax
call fcn.004659e0
test al, al
jne 0x4132cf
mov ecx, dword [esp + 0x20]
cmp ecx, esi
mov dword [esp + 0x1c], vtable.GameMgr::GMJsonStyledWriter.0
je 0x41327f
mov edi, ecx
call fcn.00453050
push edi
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x20], esi
mov edi, dword [esp + 0x18]
cmp edi, esi
mov dword [esp + 0x1c], vtable.GameMgr::IJsonParseWriter.0
mov dword [esp + 0x14], vtable.GameMgr::GMJsonReader.0
je 0x4132ab
mov ebx, edi
call fcn.00452c80
push ebx
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x18], vtable.GameMgr::IJonParseReader.0
mov dword [esp + 0x9c], 0xffffffff
call fcn.00452520
xor al, al
jmp 0x4135ba
cmp dword [ebx + 0x3c], 8
jb 0x4132da
mov eax, dword [ebx + 0x28]
jmp 0x4132dd
lea eax, [ebx + 0x28]
call fcn.0042bbb0
push eax
lea edx, [esp + 0x30]
push edx
call fcn.00452470
mov esi, eax
push str.session
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0xa4], 3
call fcn.00452810
push str.restore_on_startup
lea edx, [esp + 0x40]
push edx
push eax
mov byte [esp + 0xa4], 4
call fcn.00452810
mov byte [esp + 0x98], 5
mov ecx, dword [esi + 4]
mov edx, dword [eax + 4]
mov eax, dword [ecx + 0xc]
mov esi, dword [edx + 0xc]
call fcn.00462fb0
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x9c], 4
call fcn.00452520
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x9c], 3
call fcn.00452520
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x9c], 2
call fcn.00452520
push str.session
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00452810
push str.startup_urls
lea edx, [esp + 0x30]
push edx
push eax
mov byte [esp + 0xa4], 6
call fcn.00452810
mov byte [esp + 0x98], 7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x9c], 6
call fcn.00452520
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x9c], 2
call fcn.00452520
lea ecx, [edi + 0x100]
lea esi, [esp + 0x50]
call fcn.004495e0
mov esi, 0x10
mov byte [esp + 0x98], 8
cmp dword [eax + 0x18], esi
jb 0x4133f9
mov eax, dword [eax + 4]
jmp 0x4133fc
add eax, 4
lea ecx, [esp + 0x48]
push ecx
mov edi, eax
call fcn.004523f0
mov edi, eax
push str.session
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xa4], 9
call fcn.00452810
push str.startup_urls
lea ecx, [esp + 0x38]
push ecx
push eax
mov byte [esp + 0xa4], 0xa
call fcn.00452810
push edi
lea edx, [esp + 0x30]
push edx
push eax
mov byte [esp + 0xa4], 0xb
call fcn.00452910
lea eax, [esp + 0x2c]
push eax
call fcn.00452520
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x9c], 0xa
call fcn.00452520
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x9c], 9
call fcn.00452520
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x9c], 8
call fcn.00452520
mov byte [esp + 0x98], 2
cmp dword [esp + 0x68], esi
jb 0x4134ad
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004e7d7e
add esp, 4
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x70]
xor edi, edi
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
call fcn.004531e0
mov ecx, dword [ebx + 0x6c]
push edi
push edi
push edi
push ecx
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x84], esi
mov eax, dword [esp + 0x70]
jae 0x4134f5
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x80]
push edi
lea edx, [esp + 0x48]
push edx
mov edx, dword [ebx + 0x6c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x84], esi
jb 0x41352e
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0x20]
cmp ecx, edi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], edi
mov byte [esp + 0x70], 0
mov dword [esp + 0x1c], vtable.GameMgr::GMJsonStyledWriter.0
je 0x413569
mov esi, ecx
call fcn.00453050
push esi
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x18]
cmp eax, edi
mov dword [esp + 0x1c], vtable.GameMgr::IJsonParseWriter.0
mov dword [esp + 0x14], vtable.GameMgr::GMJsonReader.0
je 0x41359b
mov edi, eax
mov esi, eax
call fcn.00452c80
push esi
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x18], 0
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x18], vtable.GameMgr::IJonParseReader.0
mov dword [esp + 0x9c], 0xffffffff
call fcn.00452520
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4