Function at 0x1000d500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1003200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
push 0x3000
lea eax, [ebp - 0x10]
mov dword [ebp - 0x3c], edx
push eax
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0x800
push eax
push 0xffffffffffffffff
movlpd qword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x800
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
call fcn.1000ee9f
add esp, 0x18
test eax, eax
je 0x1000d579
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f090
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, edx
mov eax, dword [ebp + 0xc]
add ecx, 0x800
mov edi, dword [ebp - 0x24]
adc eax, 0
mov dword [ebp - 0x2c], edi
test eax, eax
ja 0x1000d5a6
jb 0x1000d59b
cmp ecx, 0xffffffff
jae 0x1000d5a6
mov ecx, 0x200
mov esi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x1000d5bf
push 0
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push dword [ebp - 0x2c]
call [0x1002f484]
add esp, 0x18
cmp dword [ebp - 0x24], 0
je 0x1000d62f
mov eax, dword [ebp - 0x24]
mov ecx, 0x5a4d
mov dword [ebp - 0xc], eax
cmp word [eax], cx
jne 0x1000d62f
mov esi, dword [eax + 0x3c]
add esi, eax
xor eax, eax
cmp dword [esi], 0x4550
jne 0x1000d631
xor edi, edi
cmp ax, word [esi + 6]
jae 0x1000d62f
xor ebx, ebx
nop
movzx edx, word [esi + 0x14]
add edx, 0x18
add edx, ebx
add edx, esi
mov ecx, edx
mov dword [ebp - 0x30], edx
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d606
sub ecx, dword [ebp - 0x2c]
dec ecx
call fcn.10004a60
not eax
cmp eax, 0xa21c1ea3
je 0x1000d6bc
movzx eax, word [esi + 6]
inc edi
add ebx, 0x28
cmp edi, eax
jb 0x1000d5f0
xor eax, eax
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x1000d75a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000d75a
test esi, esi
je 0x1000d75a
cdq
mov ebx, eax
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0x24]
mov ecx, edx
cdq
push 4
sub ebx, eax
lea eax, [ebp - 8]
push 0x3000
push eax
sbb ecx, edx
lea eax, [ebp - 0x28]
add ebx, dword [ebp + 8]
push 0
adc ecx, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
call fcn.1000ee9f
add esp, 0x18
test eax, eax
jne 0x1000d75a
mov ecx, dword [ebp - 8]
mov edx, ecx
mov edi, dword [ebp - 0x28]
add edx, ebx
mov dword [ebp - 0xc], ecx
adc eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
test eax, eax
ja 0x1000d6d5
jb 0x1000d6af
cmp edx, 0xffffffff
jae 0x1000d6d5
push ecx
push ebx
push edi
call fcn.100138b0
add esp, 0xc
jmp 0x1000d6ee
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, 1
jmp 0x1000d634
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x2c]
call [0x1002f484]
add esp, 0x18
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x28]
test edi, edi
je 0x1000d707
test al, 0xf
je 0x1000d707
add eax, 0x10
and eax, 0xfffffff0
add esi, 0xfffffff0
jmp 0x1000d70a
add esi, 0xfffffffd
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx]
lea ecx, [eax + esi]
test edi, edi
je 0x1000d72e
cmp eax, ecx
jae 0x1000d73c
nop dword [eax + eax]
cmp dx, word [eax]
je 0x1000d73e
add eax, 0x10
cmp eax, ecx
jb 0x1000d720
jmp 0x1000d73c
cmp eax, ecx
jae 0x1000d73c
cmp dx, word [eax]
je 0x1000d73e
inc eax
cmp eax, ecx
jb 0x1000d732
xor eax, eax
test eax, eax
je 0x1000d75a
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 0x28]
cdq
sub ecx, eax
sbb esi, edx
add ecx, ebx
mov dword [ebp - 0x38], ecx
adc esi, dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x24], 0
je 0x1000d777
push 0x8000
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
call fcn.1000eeaa
add esp, 0x10
cmp dword [ebp - 0x28], 0
je 0x1000d794
push 0x8000
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
call fcn.1000eeaa
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
xor ecx, ebp
mov edx, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
call fcn.1000f090
mov esp, ebp
pop ebp
ret