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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4688e6
push eax
mov eax, 0x8044
mov dword fs:[0], esp
call fcn.004349d0
push ebx
push ebp
or ebx, 0xffffffff
push esi
push edi
mov dword [esp + 0x14], ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x805c], ebp
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], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
call fcn.0045a7e0
mov esi, eax
add esp, 0x10
cmp esi, ebp
je 0x45a20e
lea ecx, [esp + 0x10]
mov byte [esp + 0x805c], 0
call fcn.004058f3
lea ecx, [esp + 0x14]
mov dword [esp + 0x805c], ebx
call fcn.004058f3
jmp 0x45a4b5
mov ecx, dword [esp + 0x8064]
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
call fcn.0040316b
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x45a24b
lea ecx, [esp + 0x14]
call fcn.004058f3
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x45a286
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, ebx
je 0x45a270
cmp esi, ebp
je 0x45a270
push eax
call esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x45a27f
cmp esi, ebp
je 0x45a27f
push eax
call esi
mov eax, edi
jmp 0x45a4b7
mov ecx, dword [esp + 0x8068]
push ebp
push 0x80
push 2
push ebp
push 3
push 0x40000000
call fcn.0040316b
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x45a2c6
cmp eax, ebx
je 0x45a2c0
test ebp, ebp
je 0x45a2c0
push eax
call ebp
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x45a2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x45a2e5
test ebp, ebp
je 0x45a2e5
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x45a4b5
test ebp, ebp
je 0x45a4b5
jmp 0x45a4b2
mov ebx, 0x4000
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 0
push edx
lea eax, [esp + 0x5c]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45a3c4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x26
jne 0x45a3da
call esi
cmp eax, 0x103
je 0x45a3da
xor edi, edi
lea edx, [esp + 0x54]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x4054]
push edi
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
call fcn.0045adc0
add esp, 8
cmp eax, 0xfffffffe
je 0x45a410
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov esi, ebx
push 0
sub esi, edx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x405c]
push esi
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45a478
cmp dword [esp + 0x18], esi
jne 0x45a478
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45a34b
cmp edi, 4
je 0x45a43f
jmp 0x45a303
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x45a341
mov edi, 4
jmp 0x45a343
call esi
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45a3f6
test ebp, ebp
je 0x45a3f6
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45a4b5
test ebp, ebp
je 0x45a4b5
jmp 0x45a4b2
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45a428
test ebp, ebp
je 0x45a428
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45a438
test ebp, ebp
je 0x45a438
push eax
call ebp
mov eax, 0xfffffffe
jmp 0x45a4b7
lea edx, [esp + 0x1c]
push edx
call fcn.0045b730
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0xffffffff
je 0x45a464
test ebp, ebp
je 0x45a464
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45a474
test ebp, ebp
je 0x45a474
push eax
call ebp
xor eax, eax
jmp 0x45a4b7
lea eax, [esp + 0x1c]
push eax
call fcn.0045b730
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45a4a5
test ebp, ebp
je 0x45a4a5
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45a4b5
test ebp, ebp
je 0x45a4b5
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