Function at 0x41a240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5160c8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x88]
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 0x41a60a
lea eax, [esp + 0x24]
push eax
call fcn.004522b0
lea ecx, [esp + 0x1c]
xor esi, esi
push ecx
mov dword [esp + 0x94], esi
call fcn.00452ce0
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x94], 1
call fcn.00453110
mov byte [esp + 0x90], 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 + 0x2c]
push ecx
push eax
call fcn.004659e0
test al, al
jne 0x41a360
mov ecx, dword [esp + 0x18]
cmp ecx, esi
mov dword [esp + 0x14], vtable.GameMgr::GMJsonStyledWriter.0
je 0x41a30c
mov edi, ecx
call fcn.00453050
push edi
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x20]
cmp edi, esi
mov dword [esp + 0x14], vtable.GameMgr::IJsonParseWriter.0
mov dword [esp + 0x1c], vtable.GameMgr::GMJsonReader.0
je 0x41a33c
mov esi, edi
call fcn.00452c80
push esi
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], vtable.GameMgr::IJonParseReader.0
mov dword [esp + 0x94], 0xffffffff
call fcn.00452520
xor al, al
jmp 0x41a60c
lea edx, [esp + 0x2c]
push edx
call fcn.00452340
mov esi, eax
push str.homepage_is_newtabpage
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x9c], 3
call fcn.00452810
mov byte [esp + 0x90], 4
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0xc]
mov esi, dword [ecx + 0xc]
call fcn.00462fb0
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x94], 3
call fcn.00452520
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x94], 2
call fcn.00452520
cmp dword [ebx + 0x3c], 8
jb 0x41a3d0
mov eax, dword [ebx + 0x28]
jmp 0x41a3d3
lea eax, [ebx + 0x28]
call fcn.0042bbb0
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00452470
mov esi, eax
push str.session
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x9c], 5
call fcn.00452810
push str.restore_on_startup
lea ecx, [esp + 0x30]
push ecx
push eax
mov byte [esp + 0x9c], 6
call fcn.00452810
mov byte [esp + 0x90], 7
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0xc]
mov esi, dword [ecx + 0xc]
call fcn.00462fb0
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x94], 6
call fcn.00452520
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x94], 5
call fcn.00452520
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x94], 2
call fcn.00452520
lea ecx, [edi + 0x1c4]
lea esi, [esp + 0x48]
call fcn.004495e0
mov byte [esp + 0x90], 8
cmp dword [eax + 0x18], 0x10
jb 0x41a48a
mov eax, dword [eax + 4]
jmp 0x41a48d
add eax, 4
lea edx, [esp + 0x2c]
push edx
mov edi, eax
call fcn.004523f0
mov esi, eax
push str.homepage
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x9c], 9
call fcn.00452810
mov byte [esp + 0x90], 0xa
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0xc]
mov esi, dword [ecx + 0xc]
call fcn.00462fb0
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x94], 9
call fcn.00452520
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x94], 8
call fcn.00452520
mov edi, 0x10
mov byte [esp + 0x90], 2
cmp dword [esp + 0x60], edi
jb 0x41a514
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004e7d7e
add esp, 4
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x68]
xor esi, esi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], esi
mov byte [esp + 0x54], 0
call fcn.004531e0
mov ecx, dword [ebx + 0x6c]
push esi
push esi
push esi
push ecx
mov dword [esp + 0x54], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x7c], edi
mov eax, dword [esp + 0x68]
jae 0x41a559
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x78]
push esi
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 + 0x7c], edi
jb 0x41a58c
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0x18]
cmp ecx, esi
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], esi
mov byte [esp + 0x68], 0
mov dword [esp + 0x14], vtable.GameMgr::GMJsonStyledWriter.0
je 0x41a5c1
mov edi, ecx
call fcn.00453050
push edi
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x20]
cmp edi, esi
mov dword [esp + 0x14], vtable.GameMgr::IJsonParseWriter.0
mov dword [esp + 0x1c], vtable.GameMgr::GMJsonReader.0
je 0x41a5ed
mov ebx, edi
call fcn.00452c80
push ebx
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x20], esi
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x20], vtable.GameMgr::IJonParseReader.0
mov dword [esp + 0x94], 0xffffffff
call fcn.00452520
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4