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

Disassembly:
push 0xffffffffffffffff
push 0x100404b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1005a690]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1005a690]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0x24], eax
mov edx, ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x20], esi
lea edi, [eax + 0x20]
cmp ecx, dword [esp + 0x70]
jne 0x1002cf6c
mov dword [edx], ecx
mov eax, edx
jmp 0x1002d480
mov edx, dword [esi + 0xc]
mov bl, byte [esp + 0x78]
xor ebp, ebp
mov dword [esp + 0x1c], edx
cmp dword [eax + 8], ebp
jbe 0x1002d058
cmp word [edi], 0
mov esi, ecx
mov dword [esp + 0x14], esi
jne 0x1002cfd0
movzx eax, word [ecx]
test bl, bl
je 0x1002cfa9
mov edx, dword [edx]
mov ecx, eax
mov edx, dword [edx]
call fcn.1003d250
mov ecx, dword [esp + 0x6c]
movzx edx, ax
jmp 0x1002cfab
mov edx, eax
movzx eax, word [edi]
cmp dx, ax
je 0x1002d0cb
test ax, ax
jne 0x1002d042
add edi, 2
cmp word [edi], 0
je 0x1002cfc0
jmp 0x1002d042
cmp esi, dword [esp + 0x70]
je 0x1002d02c
movzx eax, word [esi]
test bl, bl
je 0x1002cfef
mov edx, dword [edx]
mov ecx, eax
mov edx, dword [edx]
call fcn.1003d250
mov edx, dword [esp + 0x1c]
movzx eax, ax
cmp ax, word [edi]
jne 0x1002d02c
add edi, 2
add esi, 2
cmp word [edi], 0
mov dword [esp + 0x14], esi
jne 0x1002cfd0
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x1c], 0
jne 0x1002d021
mov eax, dword [esp + 0x6c]
cmp esi, eax
jne 0x1002d0eb
add eax, 2
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
mov eax, dword [eax]
jmp 0x1002d478
cmp word [edi], 0
je 0x1002d004
add edi, 2
cmp word [edi], 0
jne 0x1002d032
mov ecx, dword [esp + 0x6c]
add edi, 2
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
inc ebp
cmp ebp, dword [eax + 8]
jb 0x1002cf82
mov esi, dword [esp + 0x20]
movzx eax, word [ecx]
mov ecx, eax
test bl, bl
je 0x1002d06d
mov edx, dword [edx]
mov edx, dword [edx]
call fcn.1003d250
movzx ecx, ax
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1002d085
cmp dword [ebp + 0x10], eax
je 0x1002d405
xor edx, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], dx
mov dword [esp + 0x64], edx
test eax, eax
je 0x1002d28b
xor eax, eax
test dword [esi + 0x14], 0x200000
jne 0x1002d0f6
mov edx, 1
mov word [esp + 0x28], cx
mov dword [esp + 0x38], edx
mov word [esp + 0x2a], ax
jmp 0x1002d16d
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x1c], 0
jne 0x1002d0e0
cmp esi, ecx
jne 0x1002d0eb
add ecx, 2
mov dword [esp + 0x6c], ecx
lea eax, [esp + 0x6c]
mov eax, dword [eax]
jmp 0x1002d478
lea eax, [esp + 0x14]
mov eax, dword [eax]
jmp 0x1002d478
mov word [esp + 0x16], ax
lea eax, [esp + 0x16]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x48]
mov word [esp + 0x1c], cx
mov ecx, dword [esp + 0x24]
push eax
call fcn.1003b9a0
mov esi, eax
lea eax, [esp + 0x28]
cmp eax, esi
je 0x1002d156
cmp dword [esp + 0x3c], 8
jb 0x1002d135
push dword [esp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.1000a660
cmp dword [esp + 0x54], 8
jb 0x1002d169
push dword [esp + 0x40]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x38]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jbe 0x1002d28b
xor eax, eax
cmp ax, word [edi]
jne 0x1002d1a0
test edx, edx
je 0x1002d1d0
cmp edx, 1
jne 0x1002d19c
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
cmp word [eax], 0
je 0x1002d1d0
xor ecx, ecx
jmp 0x1002d1b4
mov ecx, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d1a5
sub ecx, esi
sar ecx, 1
push ecx
push edi
push edx
push 0
lea ecx, [esp + 0x38]
call fcn.1000c780
test eax, eax
js 0x1002d264
mov edx, dword [esp + 0x38]
mov edi, edi
add edi, 2
cmp word [edi], 0
jne 0x1002d1d0
add edi, 2
xor eax, eax
cmp ax, word [edi]
jne 0x1002d204
test edx, edx
je 0x1002d231
cmp edx, 1
jne 0x1002d200
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
cmp word [eax], 0
je 0x1002d231
xor ecx, ecx
jmp 0x1002d21f
mov ecx, edi
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d210
sub ecx, esi
sar ecx, 1
push ecx
push edi
push edx
push 0
lea ecx, [esp + 0x38]
call fcn.1000c780
test eax, eax
jg 0x1002d270
cmp byte [ebp + 0x1c], 0
mov eax, dword [esp + 0x6c]
jne 0x1002d242
add eax, 2
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x3c], 8
mov edi, dword [esp + 0x18]
mov dword [edi], eax
jb 0x1002d47e
push dword [esp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1002d47e
add edi, 2
cmp word [edi], 0
jne 0x1002d264
add edi, 2
add edi, 2
cmp word [edi], 0
jne 0x1002d270
inc ebx
add edi, 2
cmp ebx, dword [ebp + 0xc]
jae 0x1002d28b
mov edx, dword [esp + 0x38]
jmp 0x1002d178
cmp dword [ebp + 0x10], 0
je 0x1002d3d3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x14], ax
xor eax, eax
mov word [esp + 0x16], ax
lea eax, [esp + 0x16]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.1003ba00
mov esi, eax
lea eax, [esp + 0x28]
cmp eax, esi
je 0x1002d33e
cmp dword [esp + 0x3c], 8
jb 0x1002d2da
push dword [esp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x1002d311
mov eax, dword [esi + 0x10]
inc eax
je 0x1002d31d
add eax, eax
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x1002d31d
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [esp + 0x54], 8
jb 0x1002d351
push dword [esp + 0x40]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x1002d3d3
jmp 0x1002d360
mov edx, dword [esp + 0x38]
xor eax, eax
cmp ax, word [edi]
jne 0x1002d398
test edx, edx
je 0x1002d428
cmp edx, 1
jne 0x1002d394
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp esi, 8
lea eax, [esp + 0x28]
cmovae eax, ecx
cmp word [eax], 0
je 0x1002d430
xor ecx, ecx
jmp 0x1002d3af
mov ecx, edi
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d3a0
sub ecx, esi
sar ecx, 1
push ecx
push edi
push edx
push 0
lea ecx, [esp + 0x38]
call fcn.1000c780
test eax, eax
je 0x1002d428
add edi, 2
cmp word [edi], 0
jne 0x1002d3c1
inc ebx
add edi, 2
cmp ebx, dword [ebp + 0x10]
jb 0x1002d360
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x64], 0xffffffff
jb 0x1002d3ee
push dword [esp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
push dword [ebp + 0x14]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push ebx
mov ecx, esi
call fcn.10034550
cmp al, 1
jne 0x1002d457
cmp byte [ebp + 0x1c], 0
mov eax, dword [esp + 0x6c]
jne 0x1002d478
jmp 0x1002d475
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp byte [ebp + 0x1c], 0
mov eax, dword [esp + 0x6c]
jne 0x1002d441
add eax, 2
mov dword [esp + 0x6c], eax
mov edi, dword [esp + 0x18]
mov dword [edi], eax
cmp esi, 8
jb 0x1002d47e
push ecx
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1002d47e
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1002d46b
push eax
push ebx
mov ecx, esi
call fcn.10034550
test al, al
je 0x1002d41c
cmp byte [ebp + 0x1c], 0
mov eax, dword [esp + 0x6c]
je 0x1002d478
add eax, 2
mov edi, dword [esp + 0x18]
mov dword [edi], eax
mov eax, edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1003e328
add esp, 0x54
ret 0x10