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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov edi, edx
mov eax, dword [0x1019914c]
mov edx, dword fs:[0x2c]
mov esi, ecx
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0xac]
cmp eax, 1
jne 0x100186a5
mov ebx, dword [0x1019914c]
mov eax, dword fs:[0x2c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 0xb0]
test eax, eax
mov dword [esp + 0x4c], eax
je 0x10018392
lea ebx, [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0
jmp 0x100183b1
mov eax, dword [0x1019914c]
mov ebx, dword fs:[0x2c]
mov eax, dword [ebx + eax*4]
mov dword [eax + 0xb0], 0xffffffff
lea ebx, [eax + 0xb4]
mov eax, dword [ebp + 8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 4], ebx
lea ebx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x78], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x78]
mov dword [esp + 0x88], eax
lea eax, [esp + 4]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x10], eax
movzx eax, byte [esi + 0xe]
mov dword [esp + 0x14], 0x1011f7fc
mov byte [esp + 0x18], al
push edi
push ebx
call fcn.100186e0
add esp, 8
test al, al
je 0x10018584
cmp byte [esi + 0xf], 0
je 0x1001865b
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x38]
movsd xmm0, qword [eax + 8]
lea eax, [esp + 8]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x1011f8b8
mov dword [esp + 0x60], 3
mov dword [esp + 0x6c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x100f04c0
mov dword [esp + 0x30], ebx
lea ebx, [esp + 0x28]
mov dword [esp + 0x34], 0x1001a560
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 2
movsd qword [esp + 0x18], xmm0
call fcn.10001130
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x3c]
lea edx, [esp + 0x74]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
add ecx, 8
mov dword [esp + 0x74], ecx
lea ecx, [esp + 8]
push eax
push edi
call fcn.1001a4b0
add esp, 8
cmp byte [esp + 8], 4
je 0x10018573
movsd xmm0, qword [esp + 8]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x10], 0x1011f93c
mov dword [esp + 0x14], 2
mov dword [esp + 0x20], 0
mov dword [esp + 0x60], 0x100e6640
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
movsd qword [esp + 0x28], xmm0
call fcn.100e9420
cmp byte [esp + 0x28], 3
jne 0x10018573
mov esi, dword [esp + 0x2c]
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x10018546
push ecx
mov dword [esp + 0x48], ecx
call eax
mov ecx, dword [esp + 0x48]
add esp, 4
cmp dword [ebx + 4], 0
je 0x10018564
cmp dword [ebx + 8], 9
jb 0x10018555
mov ecx, dword [ecx - 4]
push ecx
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0x48], 0
je 0x1001865b
push edi
jmp 0x1001864d
mov eax, dword [esi + 8]
lea ecx, [esp + 0x38]
lea edx, [esp + 8]
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
push dword [eax + 8]
push dword [eax + 4]
call fcn.1001a4b0
add esp, 8
cmp byte [esi + 0xf], 0
movzx eax, byte [esp + 0x38]
je 0x10018611
cmp al, 4
je 0x10018611
movsd xmm0, qword [esp + 0x38]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x1011f870
mov dword [esp + 0x14], 2
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], 0x100e6640
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
movsd qword [esp + 0x28], xmm0
call fcn.100e9420
cmp byte [esp + 0x28], 3
jne 0x1001865b
mov esi, dword [esp + 0x2c]
jmp 0x1001861d
cmp al, 4
je 0x1001865b
cmp al, 3
jne 0x1001865b
mov esi, dword [esp + 0x3c]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x1001862e
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x1001864c
cmp dword [ebx + 8], 9
jb 0x1001863d
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 4]
cmp dword [esp + 0x4c], 0
mov dword [eax + 8], 0
je 0x10018688
cmp dword [esp + 0x50], 0
je 0x1001869d
push dword [esp + 0x54]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1001869d
mov eax, dword [0x1019914c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
inc dword [eax + 0xb0]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
jne 0x100186b3
call fcn.1010dd00
jmp 0x10018351
lea eax, [esp + 0x10]
mov ecx, 0x1018d5b0
mov edx, 0x46
push 0x1018d648
push 0x1018d4ec
push eax
call fcn.1010d2e0
int3