Function at 0x1007ef20
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
push 0xffffffffffffffff
push 0x1013fb57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x10f8
push ebx
call fcn.1013b6d0
push esi
push edi
push 0x30
lea eax, [ebp - 0x60]
mov dword [ebp - 0x24], 0
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x1c], edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [ebp - 0x18], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
mov ecx, 0x10000
mov esi, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi]
lea esi, [ebp - 0x60]
push esi
push edx
push ecx
mov eax, dword [eax + 0x18]
mov ecx, edi
call eax
mov esi, dword [ebp - 0x14]
cmp eax, 0xc000000d
je 0x1007f3d7
cmp eax, 0xc0000022
je 0x1007f3d7
cmp eax, 0xc000010a
je 0x1007f3d7
test eax, eax
jne 0x1007f3b1
cmp dword [ebp - 0x40], 0x1000
jne 0x1007f3b1
cmp dword [ebp - 0x38], 0x1000000
jne 0x1007f3b1
mov edi, dword [ebp - 0x58]
cmp esi, edi
mov esi, dword [ebp - 0x54]
jne 0x1007f01c
cmp dword [ebp - 0x20], esi
je 0x1007f3ae
push 0x1000
lea eax, [ebp - 0x1100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x900]
add esp, 0xc
mov eax, dword [eax]
push 0x800
push ecx
push 2
mov eax, dword [eax + 0x14]
push esi
push edi
mov edi, dword [ebp - 0x1c]
mov ecx, edi
call eax
test eax, eax
js 0x1007f3a0
xor eax, eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
push 0
push 0x800
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1100]
mov eax, dword [edi]
push ecx
push dword [ebp - 0x54]
mov ecx, edi
push dword [ebp - 0x58]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x1007f0d9
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.1005e040
jmp 0x1007f3b1
mov eax, dword [ebp - 0x10c4]
lea ecx, [ebp - 0x1100]
add eax, ecx
mov ecx, 0x5a4d
cmp word [ebp - 0x1100], cx
jne 0x1007f145
cmp dword [eax], 0x4550
jne 0x1007f145
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x1007f123
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0
jmp 0x1007f1d7
mov edx, 0x20b
cmp cx, dx
jne 0x1007f0c5
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 1
jmp 0x1007f1d7
push 0x30
lea eax, [ebp - 0x100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov ecx, dword [ebp - 0x58]
cmp edx, 0x7fff
ja 0x1007f1cd
jb 0x1007f170
cmp ecx, 0xfffeffff
jae 0x1007f1cd
mov eax, dword [edi]
lea esi, [ebp - 0x100]
push esi
push edx
push ecx
mov eax, dword [eax + 0x18]
mov ecx, edi
call eax
test eax, eax
js 0x1007f1be
cmp dword [ebp - 0xd8], 0x1000000
jne 0x1007f1be
mov ecx, dword [ebp - 0xe8]
add ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0xe4]
adc edx, dword [ebp - 0xfc]
cmp edx, 0x7fff
jb 0x1007f170
ja 0x1007f1cd
cmp ecx, 0xfffeffff
jb 0x1007f170
jmp 0x1007f1cd
mov eax, dword [ebp - 0x100]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 3
sub esp, 0x18
cmp byte [edi + 0xe], 1
mov edx, esp
jne 0x1007f20e
mov esi, dword [ebp - 0x8fc]
mov ecx, esi
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007f201
jmp 0x1007f23b
mov esi, dword [ebp - 0x8f8]
mov ecx, esi
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007f230
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.100512a0
lea ecx, [ebp - 0x78]
call fcn.10065f30
add esp, 0x18
lea ecx, [ebp - 0xa8]
push eax
call fcn.10062210
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x1007f299
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f28f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f3ef
push ecx
push edx
call fcn.1013b151
add esp, 8
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x78]
call fcn.10065780
push eax
lea ecx, [ebp - 0xc0]
call fcn.10062210
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x1007f2ed
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f2e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f3ef
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0xc8]
mov eax, dword [ebp - 0x58]
xorps xmm0, xmm0
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc8], eax
movlpd qword [ebp - 0x88], xmm0
mov byte [ebp - 0x80], 0
call fcn.10068a50
mov edx, eax
mov byte [ebp - 4], 2
mov esi, dword [ebx + 8]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x1007f35a
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add dword [esi + 4], 8
jmp 0x1007f363
push edx
push ecx
mov ecx, esi
call fcn.1007a2f0
mov esi, dword [ebp - 0xcc]
test esi, esi
je 0x1007f38e
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1007f38e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1007f38e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.1005e040
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], esi
jmp 0x1007f3b1
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x44]
adc edx, dword [ebp - 0x5c]
cmp edx, 0x7fff
ja 0x1007f3d7
jb 0x1007efb4
cmp ecx, 0xfffeffff
jb 0x1007efb4
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3