Function at 0x402ee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1b8
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x1b4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, edi
mov dword [esp + 0x24], edx
or eax, dword [ebp + 0xc]
je 0x403291
push 0x40
lea eax, [esp + 0x74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x108
lea eax, [esp + 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0x18
mov dword [esp + 0x54], eax
xorps xmm0, xmm0
lea eax, [esp + 0x70]
mov dword [esp + 0x50], edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cdq
push 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0x28
lea eax, [esp + 0x54]
movlpd qword [esp + 0x5c], xmm0
push eax
push 0x80862007
push esi
mov dword [esp + 0x60], 0x33
mov dword [esp + 0x64], 0
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], 0x40
mov dword [esp + 0x84], 0
mov dword [esp + 0x5c], 0
call edi
test eax, eax
je 0x403291
mov eax, 0x5a4d
cmp word [esp + 0x70], ax
jne 0x403291
mov eax, dword [esp + 0xac]
cdq
add eax, dword [ebp + 8]
mov ecx, eax
adc edx, dword [ebp + 0xc]
or ecx, edx
je 0x403291
mov dword [esp + 0x50], eax
xorps xmm0, xmm0
push 0
mov dword [esp + 0x58], edx
lea eax, [esp + 0xb4]
cdq
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0x28
lea eax, [esp + 0x54]
movlpd qword [esp + 0x5c], xmm0
push eax
push 0x80862007
push esi
mov dword [esp + 0x60], 0x33
mov dword [esp + 0x64], 0
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], 0x108
mov dword [esp + 0x84], 0
mov dword [esp + 0x5c], 0
call edi
test eax, eax
je 0x403291
cmp dword [esp + 0xb0], 0x4550
jne 0x403291
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x13c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
test eax, eax
je 0x403291
test ecx, ecx
je 0x403291
push 4
push 0x3000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0xc]
mov edi, eax
xor eax, eax
mov dword [esp + 0x3c], edi
add ecx, dword [ebp + 8]
mov edx, edi
push 0
push dword [esp + 0x18]
mov dword [esp + 0x18], eax
adc eax, dword [ebp + 0xc]
push eax
mov dword [esp + 0x24], ecx
push ecx
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.00402550
add esp, 0x10
test al, al
je 0x403283
mov edx, dword [edi + 0x24]
mov eax, edi
sub eax, dword [esp + 0xc]
xor esi, esi
mov ecx, dword [edi + 0x20]
add edx, eax
mov dword [esp + 0x30], edx
add ecx, eax
mov edx, dword [edi + 0x1c]
add edx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
cmp dword [edi + 0x18], esi
jbe 0x403283
mov edx, dword [ecx + esi*4]
xorps xmm0, xmm0
add edx, eax
movaps xmmword [esp + 0x40], xmm0
mov ecx, edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea eax, [ecx + 1]
mov dword [esp + 0x20], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403120
sub ecx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.00408b20
mov eax, dword [esp + 0x24]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x403144
mov ecx, dword [eax]
cmp dword [esp + 0x54], 0xf
lea eax, [esp + 0x40]
push ecx
cmova eax, dword [esp + 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x4031ae
mov ecx, dword [esp + 0x54]
cmp ecx, 0xf
jbe 0x403197
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40318d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403248
push ecx
push edx
call fcn.0040fe5c
add esp, 8
inc esi
cmp esi, dword [edi + 0x18]
jae 0x403283
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
jmp 0x4030f6
mov eax, dword [esp + 0x30]
movzx eax, word [eax + esi*2]
mov esi, dword [esp + 0x34]
mov esi, dword [esi + eax*4]
cmp esi, 0x1000
jbe 0x40320f
mov ecx, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp + 0xc]
add esi, ecx
adc edi, edx
cmp edi, dword [esp + 0x38]
jb 0x40324e
ja 0x4031df
cmp esi, dword [esp + 0x18]
jb 0x40324e
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x14]
adc dword [esp + 0x10], 0
add eax, ecx
mov ecx, dword [esp + 0x10]
adc ecx, edx
cmp edi, ecx
ja 0x40324e
jb 0x4031fe
cmp esi, eax
ja 0x40324e
push 0x8000
push 0
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
cmp ecx, 0xf
jbe 0x40326b
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403261
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403261
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x8000
push 0
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x403220
push ecx
push edx
call fcn.0040fe5c
add esp, 8
mov eax, esi
mov edx, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0x1bc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
xor edx, edx
call fcn.0040fd39
mov esp, ebp
pop ebp
ret