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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ad4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], ebx
add esi, 0xb4
jmp 0x1002c5b0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002c69d
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x1002c69d
test ecx, ecx
je 0x1002c5db
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1002c5e1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
lea ecx, [ebx*4]
mov edi, dword [eax + ecx]
add eax, ecx
test edi, edi
mov dword [esp + 0x3c], edi
je 0x1002c600
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov dword [esp + 0x78], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002c61b
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x1002c621
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x10]
mov ebx, dword [esi + 4]
add eax, eax
add eax, eax
mov ecx, dword [ebx + eax]
add ebx, eax
test ecx, ecx
je 0x1002c642
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebx], 0
test edi, edi
je 0x1002c67a
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x60]
test ebx, ebx
je 0x1002c66f
push 1
push ecx
mov eax, esp
mov dword [eax], edi
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
mov dword [esp + 0x40], esp
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xb8]
mov ecx, ebx
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
xor edi, edi
test edi, edi
mov dword [esp + 0x78], 0xffffffff
je 0x1002c68f
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
add dword [esp + 0x10], 1
mov ebx, dword [esp + 0x10]
jmp 0x1002c5b0
mov edi, dword [esi + 8]
cmp ecx, edi
jbe 0x1002c6aa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x1002c6b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push esi
push ebx
push esi
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.10055080
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x20]
test ebx, ebx
mov dword [esp + 0x3c], ebx
je 0x1002c6dd
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
test ebx, ebx
mov eax, 1
mov dword [esp + 0x78], eax
je 0x1002cbb4
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], esi
je 0x1002c70d
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test esi, esi
mov byte [esp + 0x78], 2
je 0x1002c728
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
mov ecx, esi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edi
je 0x1002c747
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
test edi, edi
mov byte [esp + 0x78], 3
je 0x1002c7b2
cmp byte [ebp + 0xc], 0
je 0x1002c7b2
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
call edx
call fcn.10091770
test al, al
je 0x1002c7b2
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x48]
test esi, esi
mov dword [esp + 0x34], esi
je 0x1002c787
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
test esi, esi
mov byte [esp + 0x78], 4
je 0x1002c7a0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1002c7a0
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
push 1
call eax
test esi, esi
mov byte [esp + 0x78], 3
je 0x1002c7b2
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x28]
test esi, esi
mov dword [esp + 0x34], esi
je 0x1002c7c8
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
test esi, esi
mov byte [esp + 0x78], 5
je 0x1002cb78
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x70]
test ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
je 0x1002c7f6
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov byte [esp + 0x78], 6
mov edi, dword [esi + 0x74]
test edi, edi
mov dword [esp + 0x18], edi
je 0x1002c80e
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
test edi, edi
mov byte [esp + 0x78], 7
mov dword [esp + 0x14], 0
je 0x1002cac2
xor esi, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x4c]
mov byte [esp + 0x78], 8
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
push eax
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov eax, dword [ebp + 8]
mov byte [esp + 0x78], 9
mov ebx, dword [eax + 0x60]
cmp ebx, esi
mov dword [esp + 0x20], ebx
je 0x1002c870
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp ebx, esi
mov byte [esp + 0x78], 0xa
je 0x1002c8fc
mov edx, dword [ebx]
mov edx, dword [edx + 0xe0]
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
mov dword [esp + 0x2c], eax
jbe 0x1002c8ac
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
lea ebx, [esp + 0x5c]
mov dword [esp + 0x30], ecx
jbe 0x1002c8be
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x50], edi
lea esi, [esp + 0x5c]
jbe 0x1002c8d2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
push ebx
push edx
push esi
push edi
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x5c]
push eax
lea esi, [esp + 0x68]
call fcn.10039220
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
xor esi, esi
mov ecx, dword [esp + 0x50]
cmp ecx, esi
je 0x1002ca12
mov eax, dword [esp + 0x54]
mov edx, eax
sub edx, ecx
sar edx, 2
je 0x1002ca12
xor esi, esi
jmp 0x1002c920
test ecx, ecx
je 0x1002c9af
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x1002c9af
mov ecx, dword [ecx + esi*4]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
push ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call edx
mov byte [esp + 0x78], 0xb
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1002c987
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x60]
test edi, edi
je 0x1002c987
push 1
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x38], esp
je 0x1002c977
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xb8]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov byte [esp + 0x78], 0xa
je 0x1002c997
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
add esi, 1
jmp 0x1002c920
cmp dword [esp + 0x14], 0x32
ja 0x1002ca69
add dword [esp + 0x14], 1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp ebx, esi
mov byte [esp + 0x78], 9
je 0x1002c9db
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x1002c9ec
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
je 0x1002c823
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1002c823
cmp ebx, esi
mov byte [esp + 0x78], 9
je 0x1002ca28
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x1002ca3d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x54]
add esp, 4
cmp ecx, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov byte [esp + 0x78], 7
je 0x1002ca5b
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
jmp 0x1002cac2
test ebx, ebx
mov byte [esp + 0x78], 9
je 0x1002ca7f
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1002ca94
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x54]
add esp, 4
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x78], 7
je 0x1002cab4
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x54]
test esi, esi
mov dword [esp + 0x30], esi
je 0x1002cad8
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
test esi, esi
mov byte [esp + 0x78], 0xc
je 0x1002caee
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
push 0
push 0
mov ecx, esi
call eax
mov edi, dword [ebp + 8]
call fcn.10031270
test esi, esi
mov byte [esp + 0x78], 7
je 0x1002cb08
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0x78], 6
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1002cb1c
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 5
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1002cb30
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 3
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov byte [esp + 0x78], 2
je 0x1002cb54
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov byte [esp + 0x78], 1
je 0x1002cb68
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
jmp 0x1002cbad
test edi, edi
mov byte [esp + 0x78], 2
je 0x1002cb8a
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
cmp dword [esp + 0x1c], 0
mov byte [esp + 0x78], 1
je 0x1002cba1
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
mov edx, dword [ebx]
mov ecx, ebx
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8