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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46a8e6
push eax
mov eax, 0x8044
mov dword fs:[0], esp
call fcn.00435c30
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 str.1.2.3
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.0045cbf0
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x45c5ed
lea ecx, [esp + 0x10]
mov byte [esp + 0x805c], bl
call fcn.004056bd
lea ecx, [esp + 0x14]
mov dword [esp + 0x805c], ebp
call fcn.004056bd
jmp 0x45c8aa
mov edx, dword [esp + 0x8064]
mov eax, dword [edx + 8]
cmp eax, ebx
jne 0x45c600
mov eax, 0x46b5e8
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x45c631
lea ecx, [esp + 0x14]
call fcn.004056bd
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x45c66c
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 0x45c656
cmp esi, ebx
je 0x45c656
push eax
call esi
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x45c665
cmp esi, ebx
je 0x45c665
push eax
call esi
mov eax, edi
jmp 0x45c8ac
mov eax, dword [esp + 0x8068]
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x45c67f
mov eax, 0x46b5e8
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 0x45c6b4
cmp eax, 0xffffffff
je 0x45c6ae
cmp ebp, ebx
je 0x45c6ae
push eax
call ebp
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x45c6f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45c6d9
cmp ebp, ebx
je 0x45c6d9
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45c8aa
cmp ebp, ebx
je 0x45c8aa
jmp 0x45c8a7
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 0x45c7b9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x26
jne 0x45c7cf
call esi
cmp eax, 0x103
je 0x45c7cf
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.0045d1d0
add esp, 8
cmp eax, 0xfffffffe
je 0x45c805
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 0x45c86d
cmp dword [esp + 0x18], esi
jne 0x45c86d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45c740
cmp edi, 4
je 0x45c834
jmp 0x45c6f8
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x45c736
mov edi, 4
jmp 0x45c738
call esi
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45c7eb
test ebp, ebp
je 0x45c7eb
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45c8aa
test ebp, ebp
je 0x45c8aa
jmp 0x45c8a7
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45c81d
test ebp, ebp
je 0x45c81d
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45c82d
test ebp, ebp
je 0x45c82d
push eax
call ebp
mov eax, 0xfffffffe
jmp 0x45c8ac
lea ecx, [esp + 0x1c]
push ecx
call fcn.0045db40
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0xffffffff
je 0x45c859
test ebp, ebp
je 0x45c859
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45c869
test ebp, ebp
je 0x45c869
push eax
call ebp
xor eax, eax
jmp 0x45c8ac
lea edx, [esp + 0x1c]
push edx
call fcn.0045db40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45c89a
test ebp, ebp
je 0x45c89a
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45c8aa
test ebp, ebp
je 0x45c8aa
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