Function at 0x1001fb50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e244a
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xdc], esi
mov eax, dword [ebp + 8]
mov ecx, 0x101080e7
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xe0], edi
call fcn.100de193
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [edi + 0x10], 0
jb 0x1001fbb2
mov eax, dword [edi]
xor ecx, ecx
xorps xmm0, xmm0
mov word [eax], cx
lea eax, [ebp - 0xc8]
push 0x5c
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
mov byte [esi], cl
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0xc8]
push eax
call fcn.100ddbf0
push 4
mov dword [ebp - 0x68], 0
call fcn.100dcb76
mov dword [ebp - 0xd0], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
add esp, 4
lea ecx, [ebp - 0x68]
push dword [ebp - 0xd8]
call fcn.10030400
test al, al
je 0x1001fd63
lea eax, [ebp - 0xd4]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x68]
movlpd qword [ebp - 0xd4], xmm0
call fcn.10030550
mov eax, dword [ebp - 0xd4]
or eax, dword [ebp - 0xd0]
je 0x1001fd63
push 0x10105ef0
push 0x1000
mov dword [ebp - 0x6c], 0
call fcn.100dcf2b
mov edi, eax
add esp, 8
test edi, edi
je 0x1001fd63
mov esi, dword [ebp - 0x68]
nop
test esi, esi
je 0x1001fcd4
cmp dword [esi], 0xffffffff
je 0x1001fcd4
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push 0x1000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001fcd4
mov eax, dword [ebp - 0xdc]
cmp byte [eax], 0
jne 0x1001fcd4
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x1001fcd4
push eax
lea eax, [ebp - 0xc8]
push edi
push eax
call fcn.100ddc30
add esp, 0xc
mov dword [ebp - 0x6c], 0
jmp 0x1001fc80
lea ecx, [ebp - 0x68]
call fcn.10030510
push edi
call fcn.100dcb71
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100ddad0
push 0x42
lea eax, [ebp - 0x64]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea esi, [ebp - 0x64]
xor edi, edi
nop word [eax + eax]
movzx eax, byte [ebp + edi - 0x20]
push eax
push str._02X
push 3
push esi
call fcn.1001fa80
inc edi
add esp, 0x10
add esi, 4
cmp edi, 0x10
jb 0x1001fd10
mov esi, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001fd40
sub edx, ecx
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0xe0]
sar edx, 1
push edx
push eax
call fcn.10004bd0
mov al, 1
jmp 0x1001fd68
mov esi, dword [ebp - 0x68]
xor al, al
mov byte [ebp - 0xc9], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1001fda9
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001fd91
test eax, eax
je 0x1001fd91
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.100dcba6
mov al, byte [ebp - 0xc9]
add esp, 8
mov dword [ebp - 0x68], 0
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.100dcb60
mov esp, ebp
pop ebp
ret 8