Function at 0x1004fdd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9af6
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x1004fe2f
mov dword [ebp - 4], eax
jmp 0x10050043
push 2
push 0
push 0xffffffffffffffff
push 0xffffffffffffffe0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10050035
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 0x30], 0
push eax
push 0x20
lea eax, [ebp - 0x30]
mov dword [ebp - 0x17], 0
xorps xmm0, xmm0
mov word [ebp - 0x13], 0
push eax
push esi
movups xmmword [ebp - 0x2f], xmm0
mov byte [ebp - 0x11], 0
movq qword [ebp - 0x1f], xmm0
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10050035
lea eax, [ebp - 0x30]
cmp dword [eax], 0x54455041
jne 0x10050035
cmp dword [eax + 4], 0x58454741
jne 0x10050035
mov edi, dword [ebp - 0x24]
xor eax, eax
push 2
push 0
mov dword [ebp - 0x3c], edi
lea ecx, [edi + 0x20]
neg ecx
adc eax, eax
neg eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10050035
lea eax, [edi + 1]
push 0x100dd790
push eax
mov dword [ebp - 0x40], eax
call fcn.1007bfcf
mov edi, eax
add esp, 8
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x1004ff10
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], al
call fcn.10020530
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.100229a0
mov eax, 0x8007000e
jmp 0x1005004c
push dword [ebp - 0x40]
push 0
push edi
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x44]
push 0
push eax
push dword [ebp - 0x3c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10050018
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x44], eax
jne 0x10050018
cmp dword [edi], 0x54455041
jne 0x10050018
cmp dword [edi + 4], 0x58454741
jne 0x10050018
mov eax, dword [edi + 0x10]
xor edx, edx
mov dword [ebp - 0x3c], eax
mov esi, 0x20
test eax, eax
je 0x10050018
mov eax, dword [esi + edi]
add edi, esi
mov dword [ebp - 0x40], eax
lea ecx, [edi + 8]
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004ff82
sub ecx, dword [ebp - 0x48]
cmp ecx, 8
jne 0x1004ffa3
cmp dword [edi + 8], 0x73657543
jne 0x1004ffa3
cmp dword [edi + 0xc], 0x74656568
je 0x1004ffb8
mov eax, dword [ebp - 0x40]
add esi, 9
add eax, ecx
inc edx
add esi, eax
cmp edx, dword [ebp - 0x3c]
jae 0x10050018
mov edi, dword [ebp - 0x38]
jmp 0x1004ff71
add edi, 0x11
cmp edx, dword [ebp - 0x3c]
jae 0x10050018
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea eax, [ecx + 0x2c]
mov dword [ebp - 0x60], eax
lea eax, [ecx + 0x350]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x40]
push eax
push edi
call fcn.10053c70
neg eax
sbb esi, esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.10020530
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.100229a0
lea eax, [esi + 1]
jmp 0x1005004c
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.10020530
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.100229a0
jmp 0x1005004a
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4