Function at 0x439860
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4553b8
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push esi
mov eax, dword [0x465b00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 4], 0
push 0x567850
lea ecx, [ebp - 0x34]
call fcn.00404a40
mov byte [ebp - 4], 1
push 0x567850
lea ecx, [ebp - 0x10]
call fcn.00404a40
mov byte [ebp - 4], 2
push 0x567850
lea ecx, [ebp - 0x28]
call fcn.00404a40
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x43996e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_file__error__d__n
call fcn.00407f90
add esp, 8
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
sub edx, 0x10
mov dword [ebp - 0x60], edx
mov ecx, dword [ebp - 0x60]
call fcn.004063e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
sub eax, 0x10
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.004063e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
sub ecx, 0x10
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x68]
call fcn.004063e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0x6c], edx
mov ecx, dword [ebp - 0x6c]
call fcn.004063e0
mov eax, dword [ebp - 0x40]
jmp 0x439d4d
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
add eax, 1
push eax
call fcn.0043ff28
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
call fcn.004401c0
add esp, 0xc
push 0
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_read_from_file__error__d__n
call fcn.00407f90
add esp, 8
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
sub eax, 0x10
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.004063e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
sub ecx, 0x10
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x74]
call fcn.004063e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a90
mov eax, dword [ebp - 0x48]
jmp 0x439d4d
mov edx, dword [ebp - 0x30]
push edx
push 0x45a0dc
lea eax, [ebp - 0x34]
push eax
call fcn.0040bca0
add esp, 0xc
push 0
push str._INSTALLPATH_
lea ecx, [ebp - 0x34]
call fcn.00404090
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x34]
call fcn.004041c0
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404ad0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00404a90
push 0
push str.__LANG_
lea ecx, [ebp - 0x10]
call fcn.00404090
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0xa0], eax
mov esi, dword [ebp - 0xa0]
sub esi, dword [ebp - 0x38]
push str.__LANG_
call fcn.00440430
add esp, 4
sub esi, eax
push esi
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404110
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404ad0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.00404a90
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
mov dword [ebp - 0xac], edx
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x439ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_file__error__d_
call fcn.00407f90
add esp, 8
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00404a90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00404a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a90
mov eax, dword [ebp - 0x54]
jmp 0x439d4d
push 0
lea ecx, [ebp - 0x14]
push ecx
push str.__xml_version_1.0__encoding_gb2312____n
call fcn.00440430
add esp, 4
push eax
push str.__xml_version_1.0__encoding_gb2312____n
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x14]
push eax
push str._SETUP__n
call fcn.00440430
add esp, 4
push eax
push str._SETUP__n
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x2c]
call fcn.0040b180
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xe8]
mov eax, dword [edx + 0xc0]
push eax
push str._LANG__d__LANG_
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040bca0
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0xc8], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xd0], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
call fcn.00440430
add esp, 4
push eax
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x14]
push edx
push str._INSTALLPATH_
call fcn.00440430
add esp, 4
push eax
push str._INSTALLPATH_
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0xe8]
add ecx, 0xa0
call fcn.00409f80
push eax
call fcn.00440430
add esp, 4
push eax
mov ecx, dword [ebp - 0xe8]
add ecx, 0xa0
call fcn.00409f80
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x14]
push eax
push str.__INSTALLPATH__n__SETUP_
call fcn.00440430
add esp, 4
push eax
push str.__INSTALLPATH__n__SETUP_
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00404a90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00404a90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00404a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a90
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4