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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e4699
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x90]
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 + 0x18], esi
call eax
test al, al
jne 0x41d249
xor ebx, ebx
mov dword [esp + 0x98], 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 + 0x98], 1
je 0x41ccbd
push eax
call fcn.0044853d
jmp 0x41ccbf
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x98], 3
push 0x78
mov dword [esp + 0x4c], vtable.GameMgr::GMJsonReader.0
call fcn.004b6eb3
add esp, 4
cmp eax, ebx
je 0x41cd22
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 0x41cd28
mov dword [esp + 0x10], ebx
mov edi, ebx
mov dword [esp + 0x4c], edi
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x9c], 4
call fcn.00448f56
mov byte [esp + 0x98], 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 0x41ceb2
mov esi, dword [esp + 0x1c]
cmp esi, ebx
mov dword [esp + 0x18], vtable.GameMgr::GMJsonStyledWriter.0
je 0x41ce37
mov dword [esi], vtable.Json::StyledWriter.0
cmp dword [esi + 0x48], 0x10
mov dword [esp + 0x10], esi
jb 0x41cd99
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 0x41cdb8
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 0x41ce1b
mov ecx, dword [esi + 0xc]
cmp eax, ecx
mov dword [esp + 0x14], ecx
je 0x41ce0f
lea esi, [eax + 0x18]
lea ebx, [ebx]
cmp dword [esi], 0x10
jb 0x41cdf5
mov eax, dword [esi - 0x14]
push eax
call fcn.004b6eae
mov ecx, dword [esp + 0x18]
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 0x41cde0
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 + 0x1c], ebx
cmp edi, ebx
mov dword [esp + 0x18], vtable.GameMgr::IJsonParseWriter.0
je 0x41ce96
cmp dword [edi + 0x70], 0x10
jb 0x41ce55
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 0x41ce75
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 + 0x9c], 0xffffffff
call fcn.00448908
xor al, al
jmp 0x41d24b
lea edx, [esp + 0x2c]
push edx
call fcn.0044879e
mov esi, eax
push str.homepage_is_newtabpage
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xa4], 6
call fcn.00448a59
mov byte [esp + 0x98], 7
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [eax + 4]
mov esi, dword [edx + 0xc]
push ecx
call fcn.00452e0b
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x9c], 6
call fcn.00448908
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x9c], 5
call fcn.00448908
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x3c], 8
jb 0x41cf27
mov eax, dword [eax + 0x28]
jmp 0x41cf2a
add eax, 0x28
call fcn.0042f2c8
push eax
lea edx, [esp + 0x40]
push edx
call fcn.00448892
mov esi, eax
push str.session
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xa4], 8
call fcn.00448a59
push str.restore_on_startup
lea edx, [esp + 0x30]
push edx
push eax
mov byte [esp + 0xa4], 9
call fcn.00448a59
mov byte [esp + 0x98], 0xa
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 + 0x2c]
push ecx
mov byte [esp + 0x9c], 9
call fcn.00448908
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x9c], 8
call fcn.00448908
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x9c], 5
call fcn.00448908
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x50]
add eax, 0x1c4
push ecx
call fcn.00442c8d
add esp, 4
mov byte [esp + 0x98], 0xb
cmp dword [eax + 0x18], 0x10
jb 0x41cfe9
mov eax, dword [eax + 4]
jmp 0x41cfec
add eax, 4
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0044883f
mov esi, eax
push str.homepage
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xa4], 0xc
call fcn.00448a59
mov byte [esp + 0x98], 0xd
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [eax + 4]
mov esi, dword [edx + 0xc]
push ecx
call fcn.00452e0b
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x9c], 0xc
call fcn.00448908
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x9c], 0xb
call fcn.00448908
mov byte [esp + 0x98], 5
cmp dword [esp + 0x68], 0x10
jb 0x41d06f
mov edx, dword [esp + 0x54]
push edx
call fcn.004b6eae
add esp, 4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00448fe0
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0x6c]
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x41d0b9
lea eax, [esp + 0x70]
mov edx, dword [esp + 0x80]
push ebx
lea ecx, [esp + 0x48]
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 + 0x84], esi
jb 0x41d0f7
mov edx, dword [esp + 0x70]
push edx
call fcn.004b6eae
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x18], vtable.GameMgr::GMJsonStyledWriter.0
je 0x41d1d4
mov edi, eax
mov dword [eax], vtable.Json::StyledWriter.0
cmp dword [edi + 0x48], esi
jb 0x41d13a
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 0x41d15a
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 0x41d1af
mov eax, dword [edi + 0xc]
cmp esi, eax
mov dword [esp + 0x28], eax
je 0x41d1a3
add esi, 0x18
cmp dword [esi], 0x10
jb 0x41d18d
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 0x41d178
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 + 0x1c], ebx
mov esi, 0x10
cmp edi, ebx
mov dword [esp + 0x18], vtable.GameMgr::IJsonParseWriter.0
je 0x41d234
cmp dword [edi + 0x70], esi
jb 0x41d1f1
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 0x41d20f
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 + 0x9c], 0xffffffff
call fcn.00448908
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.004b6e9f
mov esp, ebp
pop ebp
ret 4