Function at 0x1004f0b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100ad7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100de040]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov byte [esp + 0x30], 0
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov word [esp + 0x39], ax
mov byte [esp + 0x3b], al
test ecx, ecx
je 0x1004f19f
mov edx, dword [esi + 0x358]
mov eax, dword [esi + 0x35c]
sub edx, 0xc
sbb eax, 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov ebx, dword [ecx + 0x10c]
mov edi, dword [ecx + 0x108]
mov dword [esp + 0x18], 0xc
cmp eax, ebx
ja 0x1004f1eb
jb 0x1004f147
cmp edx, edi
jae 0x1004f1eb
mov ebp, edx
add ebp, 0xc
mov edi, eax
adc edi, 0
cmp edi, ebx
jb 0x1004f169
ja 0x1004f15f
cmp ebp, dword [ecx + 0x108]
jbe 0x1004f169
mov ebx, dword [ecx + 0x108]
sub ebx, edx
jmp 0x1004f16d
mov ebx, dword [esp + 0x18]
mov ebp, dword [ecx + 0xa8]
push ecx
push 0x1000fdb0
lea edi, [ecx + 0xa8]
push ebx
lea ecx, [esp + 0x3c]
push ecx
push eax
push edx
mov edx, dword [ebp + 4]
push edi
call edx
test eax, eax
jl 0x1004f399
cmp eax, 1
jne 0x1004f1eb
jmp 0x1004f399
push 2
lea edx, [esp + 0x28]
push edx
or ecx, 0xffffffff
push ecx
mov eax, 0xfffffff4
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1004f1c8
call fcn.10002d30
jmp 0x1004f399
mov eax, dword [esi + 0xc]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0xc
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004f1eb
cmp dword [esp + 0x18], 0xc
je 0x1004f1be
cmp dword [esp + 0x30], 0x3552454e
jne 0x1004f204
lea eax, [esp + 0x34]
call fcn.10003d90
mov dword [esp + 0x20], edx
jmp 0x1004f227
cmp dword [esp + 0x34], 0x4f52454e
jne 0x1004f394
lea eax, [esp + 0x38]
call fcn.1005da10
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ebp, eax
cmp ecx, edx
ja 0x1004f245
jb 0x1004f23b
cmp edi, ebp
jae 0x1004f245
mov eax, 0x80004005
jmp 0x1004f399
sub edi, ebp
push 0x100e33b4
push edi
mov dword [esi + 0x358], ebp
mov dword [esi + 0x35c], edx
call fcn.100628bb
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], 0
test ebx, ebx
jne 0x1004f27d
mov eax, 0x8007000e
jmp 0x1004f399
push edi
push 0
push ebx
call fcn.10064e10
mov ecx, dword [esi + 0x10]
add esp, 0xc
push 0
test ecx, ecx
je 0x1004f2bb
mov edx, dword [esp + 0x24]
push ebx
push edx
push ebp
mov edx, edi
call fcn.1000fd20
mov ebp, eax
test ebp, ebp
jl 0x1004f2ab
cmp ebp, 1
jne 0x1004f30d
lea esi, [esp + 0x18]
call fcn.10008990
mov eax, ebp
jmp 0x1004f399
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1004f2e8
call fcn.10002d30
lea esi, [esp + 0x18]
mov edi, eax
call fcn.10008990
mov eax, edi
jmp 0x1004f399
mov eax, dword [esi + 0xc]
push 0
lea edx, [esp + 0x20]
push edx
push edi
push ebx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004f30d
cmp dword [esp + 0x1c], edi
je 0x1004f2d1
xor ecx, ecx
test edi, edi
jbe 0x1004f364
mov edx, dword [ecx + ebx]
lea eax, [ecx + ebx]
cmp edx, 0x21444e45
je 0x1004f364
cmp edx, 0x494f4144
je 0x1004f37e
cmp edx, 0x584f4144
je 0x1004f37e
movzx edx, byte [eax + 7]
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1c], dl
movzx edx, byte [eax + 6]
mov byte [esp + 0x1d], dl
movzx edx, byte [eax + 5]
mov al, byte [eax + 4]
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], al
mov edx, dword [esp + 0x1c]
lea ecx, [ecx + edx + 8]
cmp ecx, edi
jb 0x1004f313
mov eax, dword [esi + 0xc]
push eax
mov ecx, esi
call fcn.100502b0
lea esi, [esp + 0x18]
mov edi, eax
call fcn.10008990
mov eax, edi
jmp 0x1004f399
mov ecx, esi
call fcn.1004f3c0
lea esi, [esp + 0x18]
mov edi, eax
call fcn.10008990
mov eax, edi
jmp 0x1004f399
mov eax, 0xe003200b
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10062448
add esp, 0x38
ret