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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b035f
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
push esi
call fcn.1002cc90
mov dword [esp + 0xc8], 0
mov edi, dword [esi + 0x20]
test edi, edi
mov dword [esp + 0x1c], edi
je 0x1002b5eb
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov byte [esp + 0xc8], 1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1002b90f
test edi, edi
je 0x1002b90f
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
je 0x1002b626
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test ebx, ebx
mov byte [esp + 0xc8], 2
jne 0x1002b657
mov byte [esp + 0xc8], 0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov dword [esp + 0xc8], 0xffffffff
mov ecx, dword [esp + 0x14]
jmp 0x1002b933
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], esi
je 0x1002b676
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
test esi, esi
mov byte [esp + 0xc8], 3
jne 0x1002b695
mov byte [esp + 0xc8], 1
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
jmp 0x1002b632
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
cmp eax, 2
je 0x1002b6d7
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
test al, al
jne 0x1002b6d7
mov byte [esp + 0xc8], 2
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0xc8], 1
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
jmp 0x1002b632
xor eax, eax
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], eax
mov word [esp + 0x84], ax
mov byte [esp + 0xc8], 4
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x8c]
call eax
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
jbe 0x1002b8ba
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x94]
push eax
call edx
mov esi, eax
test esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
je 0x1002b747
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test esi, esi
mov byte [esp + 0xc8], 5
je 0x1002b88c
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call edx
mov byte [esp + 0xc8], 6
cmp dword [esp + 0x78], 0
je 0x1002b865
lea eax, [esp + 0x64]
push eax
lea edi, [esp + 0xa0]
call fcn.10087920
add esp, 4
mov eax, edi
mov byte [esp + 0xc8], 7
call fcn.10087c70
test al, al
jne 0x1002b7ae
mov eax, edi
call fcn.10087ca0
test al, al
je 0x1002b855
mov eax, dword [esp + 0x68]
mov ecx, 8
cmp dword [esp + 0x7c], ecx
jae 0x1002b7c1
lea eax, [esp + 0x68]
cmp dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x84]
jae 0x1002b7d8
lea ecx, [esp + 0x84]
call fcn.1007f770
test eax, eax
jne 0x1002b855
push 0xa
lea esi, [esp + 0x68]
call fcn.10037950
lea ebx, [esp + 0x54]
mov edi, esi
call fcn.10036f70
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x48], ecx
call fcn.10036f20
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ebx, [esp + 0x5c]
lea edi, [esp + 0x80]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.10036f70
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push esi
push edx
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax]
push edx
push ecx
push edx
mov eax, ecx
mov ecx, dword [esp + 0x54]
push eax
push ecx
mov esi, edi
call fcn.1003a1a0
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x9c]
call fcn.10002160
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x7c], 8
jb 0x1002b879
mov edx, dword [esp + 0x68]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], eax
mov word [esp + 0x68], ax
test esi, esi
mov byte [esp + 0xc8], 4
je 0x1002b8a1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jb 0x1002b71e
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
mov ecx, ebx
call edx
cmp dword [esp + 0x98], 8
jb 0x1002b8ee
mov eax, dword [esp + 0x84]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], eax
mov word [esp + 0x84], ax
jmp 0x1002b6b0
test edi, edi
mov byte [esp + 0xc8], 0
je 0x1002b928
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc8], 0xffffffff
test ecx, ecx
je 0x1002b93e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100a4489
mov esp, ebp
pop ebp
ret