Function at 0x422d54
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
mov esi, dword [edx + 4]
xor edi, edi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x20
call fcn.0045b410
or esi, eax
or edi, edx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x80], esi
mov dword [ecx + 0x84], edi
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov al, byte [edx + 0x61]
test eax, eax
je 0x422dd6
push 0x64
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0x67c]
call fcn.00425ad0
push 0x60bde8
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x67c]
call fcn.0058517d
jmp 0x422dde
mov ecx, dword [ebp - 0x2c]
call fcn.00422569
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov cl, byte [eax + 0x61]
test ecx, ecx
jne 0x422e4d
mov edx, dword [ebp - 0x2c]
add edx, 0x80
mov eax, dword [ebp - 0x2c]
add eax, 0x78
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x422e19
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
je 0x422e4d
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0xffffffff
je 0x422e4d
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov al, byte [edx + 0x60]
test eax, eax
jne 0x422e4d
mov ecx, dword [ebp - 0x2c]
add ecx, 0x80
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp dword [edx + 4], 0
jg 0x422e5a
jl 0x422e4d
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
jae 0x422e5a
mov ecx, dword [ebp - 0x2c]
call fcn.00422360
jmp 0x422f5d
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x74
call fcn.00585ff1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x422e8e
jmp 0x422f5d
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], 9
mov ecx, 0x2000
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx], 5
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.00459fb0
add esp, 0xc
push 4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
add eax, 5
push eax
call fcn.00459fb0
add esp, 0xc
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
jbe 0x422f53
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x670]
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x674]
call fcn.0042aab2
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4