Function at 0x1000d510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1000d7b0
cmp byte [eax], 0x31
jne 0x1000d7b0
cmp edx, 0x38
jne 0x1000d7b0
test esi, esi
je 0x1000d7a0
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test eax, eax
je 0x1000d7a0
mov edx, dword [esi + 0x24]
test edx, edx
je 0x1000d7a0
mov ecx, dword [esp + 0x18]
mov edx, 6
cmp ecx, 0xffffffff
cmovne edx, ecx
mov dword [esp + 0x18], edx
test edi, edi
js 0x1000d790
mov edx, 1
cmp edi, 0xf
jg 0x1000d780
mov ecx, dword [esp + 0x14]
sub ecx, 1
cmp ecx, 8
ja 0x1000d7a0
lea ecx, [edi - 8]
cmp ecx, 7
ja 0x1000d7a0
cmp ebx, 8
jne 0x1000d7a0
cmp dword [esp + 0x18], 9
ja 0x1000d7a0
cmp dword [esp + 0x10], 4
ja 0x1000d7a0
cmp edi, 8
jne 0x1000d5f1
cmp edx, 1
jne 0x1000d7a0
cmp edi, 8
mov ecx, 9
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x16c4
cmove edi, ecx
mov dword [esp + 4], 1
mov ecx, dword [esi + 0x28]
mov dword [esp], ecx
call eax
mov ebx, eax
test eax, eax
je 0x1000d7de
mov edx, dword [esp + 0xc]
mov dword [esi + 0x1c], eax
mov ecx, edi
mov dword [eax + 0x30], edi
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], 0x2a
mov dword [eax + 0x1c], 0
mov eax, 1
shl eax, cl
lea ecx, [edx + 7]
add edx, 9
mov dword [ebx + 0x2c], eax
mov edi, eax
lea eax, [eax - 1]
mov dword [ebx + 0x34], eax
mov eax, 1
shl eax, cl
mov dword [ebx + 0x50], ecx
mov ecx, 0xaaaaaaab
mov dword [ebx + 0x4c], eax
sub eax, 1
mov dword [ebx + 0x54], eax
mov eax, edx
mul ecx
shr edx, 1
mov dword [ebx + 0x58], edx
mov dword [esp + 8], 2
mov dword [esp + 4], edi
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x40], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x16c0], 0
mov dword [ebx + 0x44], eax
mov eax, 1
lea ecx, [edx + 6]
shl eax, cl
mov dword [ebx + 0x169c], eax
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [ebx + 0x169c]
mov dword [ebx + 8], eax
lea ecx, [edx*4]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x1000d7c0
mov edi, dword [ebx + 0x40]
test edi, edi
je 0x1000d7c0
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x1000d7c0
test eax, eax
je 0x1000d7c0
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x10]
add eax, edx
mov byte [ebx + 0x24], 8
mov dword [ebx + 0x1698], eax
lea eax, [edx + edx*2 - 3]
mov dword [ebx + 0x16a4], eax
punpckldq xmm0, xmm1
movq qword [ebx + 0x84], xmm0
mov dword [ebp + 8], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.1000bdb0
sub edi, 0x10
mov edx, 2
jmp 0x1000d5a8
cmp edi, 0xfffffff1
jl 0x1000d7a0
neg edi
xor edx, edx
jmp 0x1000d5a8
mov eax, 0xfffffffe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffffa
jmp 0x1000d7a5
mov eax, dword [str.insufficient_memory]
mov dword [ebx + 4], 0x29a
mov dword [esi + 0x18], eax
mov dword [esp], esi
call fcn.1000d440
mov eax, 0xfffffffc
jmp 0x1000d7a5
mov eax, 0xfffffffc
jmp 0x1000d7a5