Function at 0x100010d0
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
push esi
cmp edx, 0x40
jb 0x1000135f
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1000135f
mov esi, dword [ecx + 0x3c]
lea eax, [esi + 0xf8]
cmp edx, eax
jl 0x1000135f
add esi, ecx
cmp dword [esi], 0x4550
jne 0x1000135f
mov eax, 0x2000
test word [esi + 0x16], ax
jne 0x1000135f
mov eax, 0xe0
cmp word [esi + 0x14], ax
jne 0x1000135f
lea eax, [esi + 0xf8]
push eax
push esi
call fcn.10001030
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x1000135f
push edi
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x10]
mov edi, eax
mov dword [ebp - 0xc], edi
mov dword [ecx], edi
test edi, edi
je 0x10001354
movzx edx, word [esi + 6]
mov ecx, dword [esi + 0x54]
push ebx
xor ebx, ebx
test edx, edx
je 0x1000128a
cmp edx, 8
jb 0x1000128a
cmp dword [0x1009297c], 2
jl 0x1000128a
movups xmm6, xmmword [0x10019ca0]
mov eax, edx
and eax, 0xfffffff8
movd xmm0, ecx
mov dword [ebp - 8], eax
lea eax, [esi + 0x15c]
mov ecx, dword [ebp - 8]
pshufd xmm4, xmm0, 0
movaps xmm5, xmm4
nop word [eax + eax]
movd xmm2, dword [eax + 0x28]
lea eax, [eax + 0x140]
movd xmm0, dword [eax - 0x140]
add ebx, 8
movd xmm1, dword [eax - 0x168]
movd xmm3, dword [eax - 0x190]
punpckldq xmm3, xmm0
movaps xmm0, xmm4
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x78]
punpckldq xmm3, xmm1
xorps xmm1, xmm1
pcmpeqd xmm1, xmm3
pandn xmm1, xmm6
pminud xmm0, xmm3
movd xmm3, dword [eax - 0xf0]
pand xmm0, xmm1
pandn xmm1, xmm4
por xmm0, xmm1
movd xmm1, dword [eax - 0xc8]
punpckldq xmm1, xmm2
movaps xmm4, xmm0
movd xmm0, dword [eax - 0xa0]
punpckldq xmm3, xmm0
movaps xmm0, xmm5
punpckldq xmm3, xmm1
xorps xmm1, xmm1
pcmpeqd xmm1, xmm3
pandn xmm1, xmm6
pminud xmm0, xmm3
pand xmm0, xmm1
pandn xmm1, xmm5
por xmm0, xmm1
movaps xmm5, xmm0
cmp ebx, ecx
jl 0x100011c0
pminud xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
pminud xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
pminud xmm4, xmm0
movd ecx, xmm4
cmp ebx, edx
jge 0x100012b3
lea eax, [ebx + ebx*4]
lea esi, [esi + eax*8]
add esi, 0x10c
sub edx, ebx
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x100012ab
cmp eax, ecx
cmovb ecx, eax
add esi, 0x28
sub edx, 1
jne 0x100012a0
push ecx
push dword [ebp - 4]
push edi
call fcn.100055d0
mov eax, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [edi + 0x3c]
add ebx, edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx + 0x38]
lea esi, [ebx + 0xf8]
mov ecx, dword [ebx + 0x54]
mov dword [eax], esi
call fcn.10001010
xor edx, edx
mov dword [0x10093350], edx
lea ecx, [edi + eax]
xor eax, eax
cmp ax, word [ebx + 6]
jae 0x10001353
add esi, 0x10
mov eax, dword [esi - 4]
add edi, eax
test eax, eax
mov eax, dword [esi]
cmove edi, ecx
test eax, eax
je 0x10001328
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp - 4]
push eax
push edi
call fcn.100055d0
mov ecx, dword [esi]
add esp, 0xc
cmp dword [esi - 8], ecx
mov edx, dword [0x10093350]
cmovae ecx, dword [esi - 8]
jmp 0x1000132b
mov ecx, dword [esi - 8]
mov eax, dword [ebx + 0x38]
inc edx
mov dword [0x10093350], edx
add esi, 0x28
mov edx, eax
call fcn.10001010
mov edx, dword [0x10093350]
lea ecx, [edi + eax]
movzx eax, word [ebx + 6]
mov edi, dword [ebp - 0xc]
cmp edx, eax
jl 0x100012f6
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret