Function at 0x478900
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
mov ecx, dword [esp + 0xc]
push 0x4bba68
push eax
mov dword fs:[0], esp
sub esp, 0x14
test ecx, ecx
push ebx
push ebp
push esi
push edi
je 0x478b7d
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x478b7d
push 0
push 0x80
mov dword [ecx], 0
push 3
mov dword [eax], 0
mov eax, dword [esp + 0x40]
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
mov dword [esp + 0x2c], 0
jne 0x478981
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000020
jmp 0x478b82
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.aLuZgUrU
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
neg eax
push 0
push eax
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4789bc
test esi, esi
je 0x478b3a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000022
jmp 0x478b82
lea ecx, [esp + 0x34]
push 0
push ecx
push str.aLuZgUrU
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x20]
push eax
push edx
push esi
call ebx
push str.aLuZgUrU
call edi
cmp dword [esp + 0x34], eax
je 0x4789ff
test esi, esi
je 0x478b1b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000021
jmp 0x478b82
lea eax, [esp + 0x18]
push str.aLuZgUrU
push eax
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x478a2d
test esi, esi
je 0x478a23
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000111
jmp 0x478b82
push str.aLuZgUrU
call edi
mov ecx, 0xfffffffc
push 2
sub ecx, eax
push 0
push ecx
push esi
call ebp
cmp eax, 0xffffffff
jne 0x478a61
test esi, esi
je 0x478b3a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000022
jmp 0x478b82
lea ecx, [esp + 0x34]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
call ebx
cmp dword [esp + 0x34], 4
je 0x478a92
test esi, esi
je 0x478b1b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000021
jmp 0x478b82
mov eax, dword [esp + 0x10]
push eax
call fcn.0049e01f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x478aba
test esi, esi
je 0x478ab0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000062
jmp 0x478b82
push str.aLuZgUrU
call edi
mov edx, dword [esp + 0x10]
mov edi, 0xfffffffc
sub edi, edx
push 2
sub edi, eax
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
jne 0x478af0
test esi, esi
je 0x478b3a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000022
jmp 0x478b82
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push 0
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x478b22
test esi, esi
je 0x478b1b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000021
jmp 0x478b82
push 2
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
jne 0x478b41
test esi, esi
je 0x478b3a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000022
jmp 0x478b82
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x478b5e
test esi, esi
je 0x478b57
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80000025
jmp 0x478b82
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov dword [ecx], ebx
mov dword [eax], edx
test esi, esi
je 0x478b79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x478b82
mov eax, 0x80000110
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc