Function at 0x10032810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x44], eax
xor esi, esi
mov eax, dword [0x14807b2c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], esi
push edi
mov edi, 1
cmp eax, 0xffffffff
je 0x10032936
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test edi, edi
je 0x10032978
inc esi
cmp esi, 0xa
jge 0x100328ae
push 0
lea ecx, [ebp - 0x30]
push ecx
push 4
lea ecx, [ebp - 0x38]
push ecx
push 4
lea ecx, [ebp - 0x40]
push ecx
push 0x81602060
push eax
call ebx
push 0x64
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x38], 0
jne 0x100328a1
mov eax, dword [0x14807b2c]
jmp 0x10032862
test edi, edi
je 0x10032978
mov eax, dword [0x14807b2c]
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0x28
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
push 0x81602058
push eax
call ebx
test eax, eax
je 0x10032978
mov eax, dword [0x14807b30]
test eax, eax
jne 0x100328ed
mov eax, dword [ebp - 0x18]
push eax
mov dword [0x14807b34], eax
call fcn.1003acd8
add esp, 4
mov dword [0x14807b30], eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 0x18]
push eax
push dword [0x14807b2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x30]
cmp esi, 0xa1
jae 0x1003294c
mov eax, dword [0x14807b30]
test eax, eax
je 0x10032936
push 1
push eax
call fcn.1003acca
add esp, 8
mov dword [0x14807b30], 0
mov dword [0x14807b34], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x1003299b
mov eax, dword [0x14807b30]
test eax, eax
je 0x10032978
push 1
push eax
call fcn.1003acca
add esp, 8
mov dword [0x14807b30], 0
mov dword [0x14807b34], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003293b
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x44]
lea eax, [ecx + 1]
lea eax, [eax + eax*2]
and eax, 0xfffc
imul eax, edx
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x47504a4d
jne 0x10032ad2
lea eax, [esi + 0x1c2]
push eax
call fcn.1003acd8
mov ecx, dword [ebp - 0x30]
add ecx, 0x1c2
mov dword [0x14807b3c], eax
push ecx
push 0
push eax
call fcn.1003d670
mov eax, dword [0x14807b30]
mov cx, word [eax]
mov eax, dword [0x14807b3c]
mov word [eax], cx
mov ecx, dword [0x14807b3c]
movups xmm0, xmmword [0x100e6600]
movups xmmword [ecx + 2], xmm0
mov ax, word [0x100e6610]
mov word [ecx + 0x12], ax
mov ecx, 0x27
mov esi, dword [0x14807b30]
mov edi, dword [0x14807b3c]
add esi, 2
add edi, 0x14
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x6c
movsb byte es:[edi], byte [esi]
mov edi, dword [0x14807b3c]
mov esi, 0x100e6618
add edi, 0xb1
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x30]
add eax, 0xffffff5f
push eax
mov eax, dword [0x14807b30]
add eax, 0x9d
push eax
mov eax, dword [0x14807b3c]
add eax, 0x261
push eax
call fcn.1003cc70
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
add eax, 0x1c0
push eax
push dword [0x14807b3c]
call fcn.100296e0
push 1
push dword [0x14807b3c]
call fcn.1003acca
mov eax, dword [ebp - 0x1c]
add esp, 0x30
cmp eax, 0x47504a4d
jne 0x10032acc
mov eax, dword [ebp - 0x34]
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x28]
mov dword [0x14807b40], 0
push eax
push dword [ebp - 0x3c]
call fcn.10031b00
push 1
push dword [ebp - 0x34]
call fcn.1003acca
add esp, 0x1c
jmp 0x10032ae6
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [0x14807b30]
push edx
push ecx
push eax
push dword [ebp - 0x3c]
call fcn.10031b00
add esp, 0x14
mov eax, dword [0x14807b30]
test eax, eax
je 0x10032b0e
push 1
push eax
call fcn.1003acca
add esp, 8
mov dword [0x14807b30], 0
mov dword [0x14807b34], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret