Function at 0x1004fd40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [0x10060008]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
xor ebx, ebx
mov dword [esp + 0x24], eax
push esi
lea eax, [ebp + 0xa0]
mov dword [esp + 0xc], ebp
push eax
mov dword [esp + 0x14], 0
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push ebx
push eax
push 0xc
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x50]
call esi
test eax, eax
jne 0x1004fdb7
lea esi, [ebx + 1]
jmp 0x1004ff23
cmp dword [esp + 0x10], ebx
jne 0x1004fdc7
mov esi, 7
jmp 0x1004ff23
movzx ecx, byte [esp + 0x3c]
push edi
cmp ecx, dword [ebp + 0x48]
jae 0x1004feff
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x1004feff
imul edi, ecx, 0x2c
add edi, eax
mov ebx, edi
je 0x1004ff01
mov eax, dword [edi + 0x1c]
mov ebx, dword [edi + 0x18]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push ebx
push dword [ebp + 0xb8]
mov dword [esp + 0x30], ebx
push dword [ebp + 0x50]
call esi
test eax, eax
jne 0x1004fe1d
lea esi, [eax + 1]
mov ebx, edi
jmp 0x1004ff22
cmp dword [esp + 0x14], 0
jne 0x1004fe30
mov esi, 7
mov ebx, edi
jmp 0x1004ff22
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0xbc]
mov edx, dword [ebp + 0xb8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
cmp ebx, ecx
je 0x1004fef0
xor esi, esi
lea edx, [edi + 0x24]
xor ebp, ebp
mov dword [esp + 0x28], edx
mov ebx, edi
cmp dword [esp + 0x18], esi
je 0x1004fecc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004fecc
cmp dword [esp + 0x1c], esi
je 0x1004fecc
test ecx, ecx
je 0x1004fecc
test edx, edx
je 0x1004fecc
test eax, eax
je 0x1004fecc
nop dword [eax]
cmp esi, ecx
jae 0x1004fecc
mov eax, dword [edx + 4]
dec eax
cmp esi, eax
ja 0x1004fead
mov eax, dword [esp + 0x28]
mov ecx, esi
and ecx, 7
mov dl, 1
shl dl, cl
mov ecx, esi
shr ecx, 3
mov eax, dword [eax]
mov al, byte [ecx + eax]
and al, dl
cmp al, dl
je 0x1004fead
xor al, al
jmp 0x1004feb6
mov eax, dword [esp + 0x18]
add eax, ebp
inc ebp
mov al, byte [eax]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov byte [esi + ecx], al
inc esi
mov ecx, dword [esp + 0x24]
cmp ebp, dword [esp + 0x20]
jb 0x1004fe80
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0xcc]
inc dword [ebp + 0xc8]
xor esi, esi
mov dword [ebp + 0xd0], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0xcc], eax
jmp 0x1004ff22
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebx, edi
jmp 0x1004fed0
xor ebx, ebx
push 0
push 0
push dword [esp + 0x40]
mov esi, 4
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov ecx, 7
cmove esi, ecx
pop edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004ff2d
mov dword [eax], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004ff46
movq xmm0, qword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100076a5
add esp, 0x38
ret 0x10