Function at 0x4fcf00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x64e2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe0], eax
test esi, esi
jne 0x4fcf41
mov eax, 0x80070057
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
push edi
push eax
call fcn.004fbad0
add esp, 4
push 0
push 0x8000000
push 3
push 0
push 1
push Ordinal_1
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
cmove edi, eax
mov dword [ebp - 0xfc], edi
test edi, edi
jne 0x4fcf9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4fd9c5
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
push 0x18
lea eax, [ebp - 0xd8]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x4fd04c
cmp dword [ebp - 0xcc], 0
jle 0x4fcfdd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x800700df
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xe4], eax
cmp eax, 0x80
jae 0x4fd00c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.005b4c50
add esp, 0xc
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push 0
push eax
push 0x94
lea eax, [ebp - 0x98]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fd07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4fd061
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x9c]
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
movlpd qword [ebp - 0xc0], xmm0
mov dword [ebp - 0xb8], 0
movlpd qword [ebp - 0xac], xmm0
mov dword [ebp - 0xa0], 0
push ebx
cmp ecx, 0x80
jae 0x4fd0c4
mov esi, 0x8007000d
jmp 0x4fd9bb
cmp dword [ebp - 0x98], 0x20534444
jne 0x4fd9b6
cmp dword [ebp - 0x94], 0x7c
jne 0x4fd9b6
cmp dword [ebp - 0x4c], 0x20
jne 0x4fd9b6
mov eax, dword [ebp - 0x7c]
mov edx, 1
mov ebx, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0xf0], edx
cmove eax, edx
test byte [ebp - 0x48], 4
mov dword [ebp - 0xb0], eax
je 0x4fd271
cmp dword [ebp - 0x44], 0x30315844
jne 0x4fd271
cmp ecx, 0x94
jb 0x4fd9b6
mov eax, dword [ebp - 0xc]
mov ebx, 0x10000
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x4fd0ba
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xa4], esi
lea eax, [esi - 1]
cmp eax, 0xbd
ja 0x4fd47d
push esi
call fcn.004fba40
add esp, 4
test al, al
jne 0x4fd47d
mov edx, dword [ebp - 0x10]
mov ecx, edx
mov eax, dword [ebp - 0x14]
and ecx, 0xfffffffb
mov dword [ebp - 0xac], ecx
sub eax, 2
je 0x4fd223
sub eax, 1
je 0x4fd1e3
sub eax, 1
jne 0x4fd0ba
test dword [ebp - 0x90], 0x800000
je 0x4fd0ba
cmp dword [ebp - 0xc], 1
ja 0x4fd47d
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa0], 4
mov dword [ebp - 0xa8], eax
jmp 0x4fd393
test dl, 4
je 0x4fd1ff
mov eax, dword [ebp - 0xc]
or ecx, 4
mov dword [ebp - 0xac], ecx
lea eax, [eax + eax*2]
add eax, eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa0], 3
jmp 0x4fd259
test byte [ebp - 0x90], 2
je 0x4fd239
cmp dword [ebp - 0x8c], 1
jne 0x4fd0ba
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xa0], 2
mov eax, dword [ebp - 8]
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xa8], eax
jmp 0x4fd393
test dword [ebp - 0x90], 0x800000
mov dword [ebp - 0xb4], edx
je 0x4fd2b0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xa0], 4
jmp 0x4fd303
mov eax, dword [ebp - 0x28]
test eax, 0x200
je 0x4fd2db
and eax, 0xfe00
cmp eax, 0xfe00
jne 0x4fd47d
or dword [ebp - 0xac], 4
mov dword [ebp - 0xb4], 6
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xa0], 3
lea eax, [ebp - 0xdc]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004fc530
mov esi, eax
add esp, 0x10
mov dword [ebp - 0xa4], esi
test esi, esi
je 0x4fd47d
test bl, 0x20
je 0x4fd38d
cmp esi, 0x31
je 0x4fd374
cmp esi, 0x38
je 0x4fd35b
cmp esi, 0x3d
jne 0x4fd38d
mov ebx, dword [ebp - 0xdc]
mov esi, 0x1c
mov dword [ebp - 0xa4], esi
or ebx, 0x40001
jmp 0x4fd393
mov ebx, dword [ebp - 0xdc]
mov esi, 0xb
mov dword [ebp - 0xa4], esi
or ebx, 0x80001
jmp 0x4fd393
mov ebx, dword [ebp - 0xdc]
mov esi, 0x1c
mov dword [ebp - 0xa4], esi
or ebx, 0x100001
jmp 0x4fd393
mov ebx, dword [ebp - 0xdc]
mov ecx, dword [ebp + 0xc]
test cl, 8
je case.0x4fd3a3.89
lea eax, [esi - 0x57]
cmp eax, 6
ja case.0x4fd3a3.89
jmp dword [eax*4 + 0x4fd9d8]
mov esi, 0x1c
or ebx, 4
jmp 0x4fd3de
mov esi, 0x1c
jmp 0x4fd3db
mov esi, 0x1b
or ebx, 4
jmp 0x4fd3de
mov esi, 0x1d
or ebx, 4
jmp 0x4fd3de
mov esi, 0x1b
jmp 0x4fd3db
mov esi, 0x1d
or ebx, 6
mov dword [ebp - 0xa4], esi
test cl, 0x10
je 0x4fd40f
mov eax, esi
sub eax, 0x55
je 0x4fd3fa
sub eax, 1
je 0x4fd3fa
sub eax, 0x1d
jne 0x4fd40f
cmp esi, 0x55
jne 0x4fd402
or ebx, 2
mov dword [ebp - 0xa4], 0x1c
or ebx, 1
test bl, 2
je 0x4fd422
mov eax, dword [ebp - 0xa8]
and eax, 0xfffffffb
or eax, 3
jmp 0x4fd436
test ebx, 0x20000
je 0x4fd43c
mov eax, dword [ebp - 0xa8]
and eax, 0xfffffffa
or eax, 2
mov dword [ebp - 0xa8], eax
test ecx, 0x1000000
jne 0x4fd487
cmp dword [ebp - 0xc0], 0x4000
ja 0x4fd47d
cmp dword [ebp - 0xbc], 0x4000
ja 0x4fd47d
cmp dword [ebp - 0xb0], 0xf
ja 0x4fd47d
cmp dword [ebp - 0xb4], 0x800
ja 0x4fd47d
cmp dword [ebp - 0xb8], 0x800
jbe 0x4fd487
mov esi, 0x80070032
jmp 0x4fd9bb
mov eax, 0x94
mov dword [ebp - 0xdc], eax
test ebx, 0x10000
jne 0x4fd4d9
push 0
push 0
push 0
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4fd4ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4fd9bb
movzx esi, si
or esi, 0x80070000
jmp 0x4fd9bb
mov eax, 0x80
mov dword [ebp - 0xdc], eax
xor esi, esi
mov dword [ebp - 0xf4], esi
test bl, 8
je 0x4fd55b
push 0x626080
push 0x400
call fcn.005b3706
mov esi, eax
mov dword [ebp - 0xf4], eax
add esp, 8
test esi, esi
je 0x4fd81c
push 0
lea eax, [ebp - 0x9c]
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fd540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4fd936
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4fd936
cmp dword [ebp - 0x9c], 0x400
jne 0x4fd8b5
mov eax, dword [ebp - 0xdc]
add eax, 0x400
sub dword [ebp - 0xe4], eax
je 0x4fd8b1
push 0
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xe0]
call fcn.004fb7b0
add esp, 0xc
mov dword [ebp - 0xe8], eax
test eax, eax
jns 0x4fd5b3
test esi, esi
je 0x4fd595
push esi
call fcn.005b301d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xe8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
test bl, 1
jne 0x4fd7e4
test byte [ebp + 0xc], 0x41
jne 0x4fd7e4
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xe8], ecx
cmp dword [ebp - 0xe4], ecx
jae 0x4fd610
push eax
call fcn.004fbad0
add esp, 4
test esi, esi
je 0x4fd5f3
push esi
call fcn.005b301d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 0x80070026
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp - 0x9c]
push edx
push ecx
push dword [eax + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fd654
push dword [ebp - 0xe0]
call fcn.004fbad0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4fd932
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4fd932
mov eax, dword [ebp - 0xe8]
cmp dword [ebp - 0x9c], eax
je 0x4fd675
push dword [ebp - 0xe0]
call fcn.004fbad0
add esp, 4
jmp 0x4fd8b1
test bl, 6
je 0x4fd967
mov edx, dword [ebp - 0xe0]
cmp dword [edx + 0x30], 0
jne 0x4fd69d
push edx
mov ebx, 0x80004005
call fcn.004fbad0
add esp, 4
jmp 0x4fd932
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4fd6bd
push edx
mov ebx, 0x80004005
call fcn.004fbad0
add esp, 4
jmp 0x4fd932
push dword [edx + 0x24]
call fcn.00506190
mov edx, dword [ebp - 0xe0]
add esp, 4
test al, al
je 0x4fd6e5
push edx
mov ebx, 0x80070032
call fcn.004fbad0
add esp, 4
jmp 0x4fd932
mov eax, ebx
mov dword [ebp - 0xe8], 0
shr eax, 1
and ebx, 4
and eax, 1
mov dword [ebp - 0xf0], ebx
mov ecx, eax
or ecx, 2
test ebx, ebx
cmove ecx, eax
cmp dword [edx], 0
mov dword [ebp - 0xe4], ecx
jbe 0x4fd967
mov ecx, dword [ebp - 0xec]
add ecx, 4
mov dword [ebp - 0xdc], ecx
nop word [eax + eax]
mov ebx, dword [ecx + 0x10]
test ebx, ebx
je 0x4fd7d1
cmp dword [ecx], 0
mov eax, dword [ecx + 8]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xec], 0
jbe 0x4fd7ae
mov esi, dword [ebp - 0xf0]
mov edi, eax
nop dword [eax + eax]
mov eax, dword [edx + 0x24]
push dword [ebp - 0xe4]
push eax
push edi
push ebx
push edi
push ebx
test esi, esi
je 0x4fd779
call fcn.0050cc40
jmp 0x4fd77e
call fcn.005066f0
mov ecx, dword [ebp - 0xec]
add esp, 0x18
mov eax, dword [ebp - 0xdc]
inc ecx
mov edx, dword [ebp - 0xe0]
add ebx, edi
mov dword [ebp - 0xec], ecx
cmp ecx, dword [eax]
jb 0x4fd760
mov esi, dword [ebp - 0xf4]
mov ecx, eax
mov edi, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xe8]
add ecx, 0x18
inc eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe8], eax
cmp eax, dword [edx]
jb 0x4fd730
jmp 0x4fd967
push edx
mov ebx, 0x80004003
call fcn.004fbad0
add esp, 4
jmp 0x4fd932
push 0x626080
push dword [ebp - 0xe4]
call fcn.005b3706
add esp, 8
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x4fd839
push dword [ebp - 0xe0]
call fcn.004fbad0
add esp, 4
test esi, esi
je 0x4fd81c
push esi
call fcn.005b301d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 0x8007000e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x9c]
push ecx
push dword [ebp - 0xe4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fd88a
push dword [ebp - 0xe0]
call fcn.004fbad0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4fd877
movzx ebx, bx
or ebx, 0x80070000
push dword [ebp - 0xdc]
call fcn.005b301d
add esp, 4
jmp 0x4fd932
mov edx, dword [ebp - 0xe4]
cmp dword [ebp - 0x9c], edx
je 0x4fd8db
push dword [ebp - 0xe0]
call fcn.004fbad0
push dword [ebp - 0xdc]
call fcn.005b301d
add esp, 8
test esi, esi
je 0x4fd8be
push esi
call fcn.005b301d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
xor eax, eax
test cl, 1
cmovne eax, dword [ebp - 0xf0]
test cl, 0x40
je 0x4fd8f4
or eax, 0x1000
push dword [ebp - 0xe0]
push esi
push ebx
push eax
lea eax, [ebp - 0xc0]
push eax
push edx
push dword [ebp - 0xdc]
call fcn.004fbda0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jns 0x4fd959
push dword [ebp - 0xe0]
call fcn.004fbad0
push dword [ebp - 0xdc]
call fcn.005b301d
add esp, 8
test esi, esi
je 0x4fd93f
push esi
call fcn.005b301d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xdc]
call fcn.005b301d
add esp, 4
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x4fd98f
movups xmm0, xmmword [ebp - 0xc0]
mov eax, dword [ebp - 0xa0]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
test esi, esi
je 0x4fd99c
push esi
call fcn.005b301d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret
mov esi, 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b26e6
mov esp, ebp
pop ebp
ret