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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x474b06
push eax
mov eax, 0x8044
mov dword fs:[0], esp
call fcn.004545d0
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 0x493244
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.00465f80
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x46597d
lea ecx, [esp + 0x10]
mov byte [esp + 0x805c], bl
call fcn.00405c0a
lea ecx, [esp + 0x14]
mov dword [esp + 0x805c], ebp
call fcn.00405c0a
jmp 0x465c3a
mov edx, dword [esp + 0x8064]
mov eax, dword [edx + 8]
cmp eax, ebx
jne 0x465990
mov eax, 0x475650
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 0x4659c1
lea ecx, [esp + 0x14]
call fcn.00405c0a
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x4659fc
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 0x4659e6
cmp esi, ebx
je 0x4659e6
push eax
call esi
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4659f5
cmp esi, ebx
je 0x4659f5
push eax
call esi
mov eax, edi
jmp 0x465c3c
mov eax, dword [esp + 0x8068]
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x465a0f
mov eax, 0x475650
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 0x465a44
cmp eax, 0xffffffff
je 0x465a3e
cmp ebp, ebx
je 0x465a3e
push eax
call ebp
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x465a83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x465a69
cmp ebp, ebx
je 0x465a69
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x465c3a
cmp ebp, ebx
je 0x465c3a
jmp 0x465c37
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 0x465b49
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x26
jne 0x465b5f
call esi
cmp eax, 0x103
je 0x465b5f
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.00466560
add esp, 8
cmp eax, 0xfffffffe
je 0x465b95
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 0x465bfd
cmp dword [esp + 0x18], esi
jne 0x465bfd
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x465ad0
cmp edi, 4
je 0x465bc4
jmp 0x465a88
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x465ac6
mov edi, 4
jmp 0x465ac8
call esi
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x465b7b
test ebp, ebp
je 0x465b7b
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x465c3a
test ebp, ebp
je 0x465c3a
jmp 0x465c37
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x465bad
test ebp, ebp
je 0x465bad
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x465bbd
test ebp, ebp
je 0x465bbd
push eax
call ebp
mov eax, 0xfffffffe
jmp 0x465c3c
lea ecx, [esp + 0x1c]
push ecx
call fcn.00466ed0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0xffffffff
je 0x465be9
test ebp, ebp
je 0x465be9
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x465bf9
test ebp, ebp
je 0x465bf9
push eax
call ebp
xor eax, eax
jmp 0x465c3c
lea edx, [esp + 0x1c]
push edx
call fcn.00466ed0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x465c2a
test ebp, ebp
je 0x465c2a
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x465c3a
test ebp, ebp
je 0x465c3a
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