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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x475ae6
push eax
mov eax, 0x8044
mov dword fs:[0], esp
call fcn.00455140
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.00466df0
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x4665cd
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 0x46688a
mov edx, dword [esp + 0x8064]
mov eax, dword [edx + 8]
cmp eax, ebx
jne 0x4665e0
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 0x466611
lea ecx, [esp + 0x14]
call fcn.00405c03
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x46664c
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 0x466636
cmp esi, ebx
je 0x466636
push eax
call esi
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x466645
cmp esi, ebx
je 0x466645
push eax
call esi
mov eax, edi
jmp 0x46688c
mov eax, dword [esp + 0x8068]
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x46665f
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 0x466694
cmp eax, 0xffffffff
je 0x46668e
cmp ebp, ebx
je 0x46668e
push eax
call ebp
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4666d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4666b9
cmp ebp, ebx
je 0x4666b9
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46688a
cmp ebp, ebx
je 0x46688a
jmp 0x466887
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 0x466799
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x26
jne 0x4667af
call esi
cmp eax, 0x103
je 0x4667af
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.004673d0
add esp, 8
cmp eax, 0xfffffffe
je 0x4667e5
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 0x46684d
cmp dword [esp + 0x18], esi
jne 0x46684d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x466720
cmp edi, 4
je 0x466814
jmp 0x4666d8
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x466716
mov edi, 4
jmp 0x466718
call esi
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4667cb
test ebp, ebp
je 0x4667cb
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46688a
test ebp, ebp
je 0x46688a
jmp 0x466887
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4667fd
test ebp, ebp
je 0x4667fd
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46680d
test ebp, ebp
je 0x46680d
push eax
call ebp
mov eax, 0xfffffffe
jmp 0x46688c
lea ecx, [esp + 0x1c]
push ecx
call fcn.00467d40
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0xffffffff
je 0x466839
test ebp, ebp
je 0x466839
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x466849
test ebp, ebp
je 0x466849
push eax
call ebp
xor eax, eax
jmp 0x46688c
lea edx, [esp + 0x1c]
push edx
call fcn.00467d40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x46687a
test ebp, ebp
je 0x46687a
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46688a
test ebp, ebp
je 0x46688a
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