Function at 0xf96a40
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x558
push esi
push edi
push 0x4d0
lea eax, [ebp - 0x550]
push 0
push eax
call fcn.00f92690
mov esi, 0x5a4d
mov dword [ebp - 0x520], 0x100002
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
cmp word [0x1009a18], si
je 0xf96aad
push 0x60800
push 0x1009a18
push 0x10
push str.NtQuerySystemInformation
call fcn.00f927c0
add esp, 0x10
push 0xf98f74
call fcn.00f92930
mov edi, eax
add esp, 4
mov eax, edx
mov dword [ebp - 0x30], edi
mov ecx, edi
mov dword [ebp - 0x14], eax
or ecx, eax
je 0xf96d81
cmp word [0x1009a18], si
jne 0xf96d81
mov eax, dword [0x1009a54]
cmp dword [eax + 0x1009a18], 0x4550
lea esi, [eax + 0x1009a18]
mov dword [ebp - 0x28], esi
jne 0xf96d81
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00f92260
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00f92260
add esp, 0x18
mov dword [ebp - 0x78], 0x44
cmp dword [0x106ab44], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
je 0xf96b39
push 0x800000c
jmp 0xf96b3b
push 4
push 0
push 0
push 0
push dword [ebx + 8]
push 0
call dword [0xf9809c]
test eax, eax
je 0xf96d81
lea eax, [ebp - 0x550]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push edi
call fcn.00f970f0
add esp, 0x10
test eax, eax
je 0xf96d66
mov ecx, dword [ebp - 0x4c8]
lea eax, [ebp - 0x24]
push eax
push 8
lea eax, [ebp - 0x20]
add ecx, 0x10
push eax
mov eax, dword [ebp - 0x4c4]
adc eax, 0
push eax
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call fcn.00f97150
add esp, 0x20
test eax, eax
je 0xf96d66
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 0x30]
cmp edx, dword [eax + 4]
jb 0xf96be5
mov ecx, dword [ebp - 0x20]
ja 0xf96bbb
cmp ecx, dword [eax]
jb 0xf96be5
mov edi, dword [esi + 0x50]
xor eax, eax
add edi, dword [esi + 0x30]
adc eax, dword [esi + 0x34]
cmp edx, eax
ja 0xf96be2
jb 0xf96bd0
cmp ecx, edi
ja 0xf96be2
push edx
push ecx
push dword [ebp - 0x10]
call fcn.00f97e10
test eax, eax
jne 0xf96d66
lea eax, [esi + 0x30]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [eax]
push dword [ebp - 0x10]
call fcn.00f97f20
mov ecx, eax
mov dword [ebp - 0x24], eax
or ecx, edx
mov dword [ebp - 0x1c], edx
je 0xf96d66
lea ecx, [ebp - 0x2c]
push ecx
push dword [esi + 0x54]
push 0x1009a18
push edx
push eax
push dword [ebp - 0x10]
call 0xf98020
test eax, eax
je 0xf96d66
movzx eax, word [esi + 0x14]
xor ecx, ecx
xor edi, edi
cmp cx, word [esi + 6]
jae 0xf96c7e
add esi, 0x2c
add esi, eax
nop word [eax + eax]
mov ecx, dword [esi - 8]
lea eax, [ebp - 0x2c]
push eax
push dword [esi - 4]
mov eax, dword [esi]
add eax, 0x1009a18
push eax
xor eax, eax
add ecx, dword [ebp - 0x24]
adc eax, dword [ebp - 0x1c]
push eax
push ecx
push dword [ebp - 0x10]
call 0xf98020
test eax, eax
je 0xf96d66
mov eax, dword [ebp - 0x28]
inc edi
add esi, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
jl 0xf96c40
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x4c8]
lea eax, [ebp - 0x2c]
push eax
push 8
lea eax, [esi + 0x30]
add ecx, 0x10
push eax
mov eax, dword [ebp - 0x4c4]
adc eax, 0
push eax
push ecx
push dword [ebp - 0x10]
call 0xf98020
test eax, eax
je 0xf96d66
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov edi, dword [ebp - 0x24]
add eax, edi
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x550]
adc ecx, dword [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x4cc], ecx
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call fcn.00f97200
add esp, 0x10
test eax, eax
je 0xf96d66
push dword [ebp - 0xc]
call fcn.00f97e90
test eax, eax
je 0xf96d66
push 0x1388
call dword [0xf98064]
push 4
push 0x3000
push 0x138
push 0
call dword [0xf9803c]
mov esi, eax
test esi, esi
je 0xf96d4a
push 0x138
push 0
push esi
call fcn.00f92690
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push 0x138
push esi
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x10]
call 0xf98020
push 0x8000
push 0
push esi
call dword [0xf98040]
push dword [ebp - 0xc]
mov esi, dword [0xf98098]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push dword [ebp - 0x10]
call dword [0xf98084]
push dword [ebp - 0xc]
mov esi, dword [0xf98098]
call esi
push dword [ebp - 0x10]
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret