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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4ac
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x4096d7
test eax, eax
je 0x4096d7
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x494], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4096c7
test eax, eax
je 0x4096c7
cld
xor eax, eax
lea edi, [ebp - 0x38]
mov ecx, 7
lea esi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov word [edi], 0
mov ecx, 0xb
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
mov word [edi], 0
mov ecx, 5
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov word [edi], 0
mov eax, 0xa
lea edi, [ebp - 0x48c]
mov word [ebp - 0x82], ax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2e]
mov dword [esp], eax
mov dword [ebp - 0x38], 0x4034b50
mov word [ebp - 0x34], 0xa
mov word [ebp - 0x32], 0
mov word [ebp - 0x80], 0
mov word [ebp - 0x30], 0
mov word [ebp - 0x7e], 0
call fcn.00409160
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
mov word [ebp - 0x7c], ax
mov eax, dword [ebp - 0x2c]
mov word [ebp - 0x7a], ax
call fcn.00409200
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x78], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x26], eax
sub esp, 8
mov dword [ebp - 0x74], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x22], eax
sub esp, 8
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov word [ebp - 0x1c], 0
mov edx, dword [ebp - 0x494]
mov word [ebp - 0x6a], 0
mov dword [ebp - 0x5e], 0
sub esp, 4
mov dword [esp], edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov word [ebp - 0x1e], ax
mov word [ebp - 0x6c], ax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x1e
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 0x10]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edx, dword [ebp - 0x494]
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x488]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 0x10]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
sub esp, 4
lea esi, [eax + 0x1e]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
sub esp, 0x10
lea esi, [esi]
mov dword [esp + 0x10], 0
xor eax, eax
lea edx, [ebp - 0x48c]
mov dword [ebp - 0x48c], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x400
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
test eax, eax
je 0x409596
mov edx, dword [ebp - 0x48c]
test edx, edx
je 0x409596
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x490]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x494]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp - 0x48c]
sub esp, 0x14
add esi, eax
jmp 0x409520
mov dword [ebp - 0x48], esi
lea edx, [ebp - 0x48c]
mov eax, 0x2014b50
mov dword [esp + 0xc], edx
lea edi, [ebp - 0x48c]
add esi, 0x2e
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x494]
mov eax, 0x14
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x88]
mov dword [esp], edx
mov word [ebp - 0x64], 0
mov dword [ebp - 0x62], 0x20
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x2e
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 0x10]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edx, dword [ebp + 0x10]
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x494]
mov dword [esp + 4], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, dword [ebp + 0x10]
sub esp, 0x14
mov dword [esp], edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov dword [ebp - 0x58], 0x6054b50
mov edx, dword [ebp - 0x494]
mov word [ebp - 0x54], 0
mov word [ebp - 0x52], 0
add esi, eax
sub esp, 4
mov dword [esp], edx
mov eax, dword [ebp - 0x48]
mov word [ebp - 0x50], 1
mov word [ebp - 0x4e], 1
sub esi, eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x44], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x16
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp - 0x494]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 2
jmp 0x4096bc
mov eax, 1
jmp 0x4096bf