Function at 0x466090
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x475586
push eax
mov eax, 0x8044
mov dword fs:[0], esp
call fcn.00454c90
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x805c], ebx
mov eax, dword [ecx]
push 0x38
push 0x4944b4
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x806c], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00466940
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x46611d
lea ecx, [esp + 0x10]
mov byte [esp + 0x805c], bl
call fcn.00405c03
lea ecx, [esp + 0x14]
mov dword [esp + 0x805c], ebp
call fcn.00405c03
jmp 0x4663da
mov edx, dword [esp + 0x8064]
mov eax, dword [edx + 8]
cmp eax, ebx
jne 0x466130
mov eax, 0x476650
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x466161
lea ecx, [esp + 0x14]
call fcn.00405c03
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x46619c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x466186
cmp esi, ebx
je 0x466186
push eax
call esi
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x466195
cmp esi, ebx
je 0x466195
push eax
call esi
mov eax, edi
jmp 0x4663dc
mov eax, dword [esp + 0x8068]
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x4661af
mov eax, 0x476650
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4661e4
cmp eax, 0xffffffff
je 0x4661de
cmp ebp, ebx
je 0x4661de
push eax
call ebp
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x466223
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x466209
cmp ebp, ebx
je 0x466209
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4663da
cmp ebp, ebx
je 0x4663da
jmp 0x4663d7
mov ebx, 0x4000
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x5c]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4662e9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x26
jne 0x4662ff
call esi
cmp eax, 0x103
je 0x4662ff
xor edi, edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x4054]
push edi
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
call fcn.00466f20
add esp, 8
cmp eax, 0xfffffffe
je 0x466335
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov esi, ebx
push 0
sub esi, ecx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x405c]
push esi
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46639d
cmp dword [esp + 0x18], esi
jne 0x46639d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x466270
cmp edi, 4
je 0x466364
jmp 0x466228
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x466266
mov edi, 4
jmp 0x466268
call esi
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x46631b
test ebp, ebp
je 0x46631b
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4663da
test ebp, ebp
je 0x4663da
jmp 0x4663d7
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x46634d
test ebp, ebp
je 0x46634d
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46635d
test ebp, ebp
je 0x46635d
push eax
call ebp
mov eax, 0xfffffffe
jmp 0x4663dc
lea ecx, [esp + 0x1c]
push ecx
call fcn.00467890
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0xffffffff
je 0x466389
test ebp, ebp
je 0x466389
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x466399
test ebp, ebp
je 0x466399
push eax
call ebp
xor eax, eax
jmp 0x4663dc
lea edx, [esp + 0x1c]
push edx
call fcn.00467890
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4663ca
test ebp, ebp
je 0x4663ca
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4663da
test ebp, ebp
je 0x4663da
push eax
call ebp
mov eax, esi
mov ecx, dword [esp + 0x8054]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8050
ret 8