Function at 0x1002a360
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
mov eax, dword fs:[0]
push 0x10058c94
push eax
mov dword fs:[0], esp
mov eax, 0x1148
push ebx
call fcn.1003c6f0
push esi
push edi
push 0x30
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x14], ecx
push 0
push eax
mov dword [ebp - 0x74], 0
call fcn.1003d9f0
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [ebp - 0x20], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, dword [ebp - 0x1c]
mov ecx, 0x10000
mov edi, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x74], 1
nop
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x1c]
push edx
push ecx
mov ecx, dword [ebp - 0x14]
call eax
cmp eax, 0xc000000d
je 0x1002a7b5
cmp eax, 0xc0000022
je 0x1002a7b5
cmp eax, 0xc000010a
je 0x1002a7b5
test eax, eax
jne 0x1002a783
cmp dword [ebp - 0x90], 0x1000
jne 0x1002a783
mov eax, dword [ebp - 0xa0]
cmp eax, 1
je 0x1002a783
test eax, 0x100
jne 0x1002a783
mov ecx, dword [ebp - 0xa4]
cmp edi, dword [ebp - 0xa8]
jne 0x1002a475
cmp esi, ecx
je 0x1002a783
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
movups xmmword [ebp - 0x50], xmm0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1150]
push 0
mov dword [ebp - 4], 1
push 0x1000
mov eax, dword [eax]
push edx
mov edx, dword [ebp - 0xa8]
push ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x14]
push edx
call eax
test eax, eax
jne 0x1002a76f
mov eax, dword [ebp - 0x1114]
lea ecx, [ebp - 0x1150]
add eax, ecx
mov ecx, 0x5a4d
cmp word [ebp - 0x1150], cx
jne 0x1002a76f
cmp dword [eax], 0x4550
jne 0x1002a76f
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x1002a511
mov dword [ebp - 0x34], 0
jmp 0x1002a522
mov edx, 0x20b
cmp cx, dx
jne 0x1002a528
mov dword [ebp - 0x34], 1
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x14]
lea edi, [ebp - 0x1150]
mov ecx, dword [ebp - 0xa4]
xorps xmm0, xmm0
mov edx, dword [ebp - 0xa8]
push 0x1000
mov eax, dword [esi]
push edi
push 2
push ecx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x6c], ecx
mov ecx, esi
push edx
mov dword [ebp - 0x70], edx
movlpd qword [ebp - 0x30], xmm0
mov byte [ebp - 0x28], 0
call eax
test eax, eax
jne 0x1002a676
sub esp, 0x18
xorps xmm0, xmm0
cmp byte [esi + 0xe], 1
mov edx, esp
jne 0x1002a59d
mov esi, dword [ebp - 0x114c]
mov ecx, esi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], 7
movups xmmword [edx], xmm0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a590
jmp 0x1002a5cb
mov esi, dword [ebp - 0x1148]
mov ecx, esi
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
movups xmmword [edx], xmm0
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a5c0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.10001fa0
lea ecx, [ebp - 0xd0]
call fcn.10012cc0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x50]
cmp eax, esi
je 0x1002a61b
mov ecx, eax
call fcn.10001e00
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movups xmmword [esi], xmm0
lea ecx, [ebp - 0xd0]
call fcn.10001e00
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0xd0]
call fcn.10012770
mov esi, eax
lea eax, [ebp - 0x68]
cmp eax, esi
je 0x1002a669
mov ecx, eax
call fcn.10001e00
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x58], xmm0
xorps xmm0, xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movups xmmword [esi], xmm0
lea ecx, [ebp - 0xd0]
call fcn.10001e00
jmp 0x1002a6e6
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push 0
push eax
call fcn.1003d9f0
push dword [ebp - 0x6c]
lea eax, [ebp - 0x150]
push dword [ebp - 0x70]
push str.Unknown_0x_I64x
push eax
call 0x105361d3
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xb8]
call fcn.10015270
mov edx, eax
mov byte [ebp - 4], 2
mov esi, dword [ebx + 8]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x1002a72f
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 0x1002a738
push edx
push ecx
mov ecx, esi
call fcn.10025470
mov esi, dword [ebp - 0xb4]
test esi, esi
je 0x1002a763
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1002a763
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1002a763
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.10001e00
lea ecx, [ebp - 0x68]
call fcn.10001e00
mov ecx, dword [ebp - 0x98]
add ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x94]
adc edx, dword [ebp - 0xac]
cmp edx, 0x7fff
jb 0x1002a3f0
ja 0x1002a7b5
cmp ecx, 0xfffeffff
jb 0x1002a3f0
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