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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp byte [eax + 0x3c], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x1002d95c
push 0x60
call fcn.1006c980
mov ecx, dword [0x1010a958]
add esp, 4
test ecx, ecx
je 0x1002d93e
inc dword [ecx + 0xb0]
test eax, eax
je 0x1002d94b
mov ecx, eax
call fcn.100305e0
jmp 0x1002d94d
xor eax, eax
mov dword [ebp - 8], eax
lea ecx, [ebx + 0x3c]
lea eax, [ebp - 8]
push eax
call fcn.10020ec0
mov esi, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x58]
cmp esi, ecx
jne 0x1002d9f3
inc esi
test ecx, ecx
je 0x1002d97a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1002d97f
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1002d9f3
mov eax, esi
shl eax, 4
sub eax, esi
shl eax, 3
push eax
call fcn.1006c980
mov dword [ebp - 8], eax
add esp, 4
mov eax, dword [0x1010a958]
lea edi, [eax + 0xb0]
test eax, eax
je 0x1002d9af
inc dword [edi]
mov edx, dword [ebx + 0x5c]
test edx, edx
je 0x1002d9ea
mov ecx, dword [ebx + 0x54]
shl ecx, 4
sub ecx, dword [ebx + 0x54]
shl ecx, 3
push ecx
push edx
push dword [ebp - 8]
call fcn.100600d0
mov eax, dword [ebx + 0x5c]
add esp, 0xc
test eax, eax
je 0x1002d9e1
cmp dword [0x1010a958], 0
je 0x1002d9e1
dec dword [edi]
push eax
call fcn.100678b0
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x58], esi
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebp + 8]
mov esi, edx
shl ecx, 4
sub ecx, dword [ebx + 0x54]
lea edi, [eax + ecx*8]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x54]
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x5c]
shl ecx, 4
sub ecx, dword [ebx + 0x54]
cmp dword [eax + ecx*8 - 4], 0
lea edi, [eax + ecx*8]
jne 0x1002da34
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi - 4], eax
cmp byte [edi - 0x70], 0
jne 0x1002da72
push dword [edi - 0x74]
call fcn.1006c980
mov ecx, dword [0x1010a958]
add esp, 4
mov edx, eax
test ecx, ecx
je 0x1002da57
inc dword [ecx + 0xb0]
mov eax, dword [ebp + 8]
push dword [edi - 0x74]
mov dword [edi - 0x78], edx
mov byte [edi - 0x70], 1
push dword [eax]
push edx
call fcn.100600d0
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [edi - 4]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x1002da88
mov ax, word [edx + 0x48]
mov word [ecx + 0x3c], ax
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebx + 0x5c]
shl ecx, 4
sub ecx, dword [ebx + 0x54]
lea esi, [edx + ecx*8]
cmp edx, esi
je 0x1002dabe
nop dword [eax + eax]
cmp byte [edx + 0x3c], 0
mov ecx, dword [edx + 0x74]
lea eax, [ecx + 0x38]
jne 0x1002dab4
mov dword [ecx + 0x34], edx
xor ecx, ecx
mov word [eax], cx
inc word [eax]
add edx, 0x78
cmp edx, esi
jne 0x1002daa0
mov ecx, dword [ebx + 0x1c]
lea esi, [ebx + 0x1c]
mov byte [ebx + 0x18], 0
test ecx, ecx
je 0x1002dae7
mov eax, dword [0x1010a958]
test eax, eax
je 0x1002dade
dec dword [eax + 0xb0]
lea esi, [ebx + 0x1c]
push ecx
call fcn.100678b0
add esp, 4
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1002db06
mov eax, dword [0x1010a958]
test eax, eax
je 0x1002dafd
dec dword [eax + 0xb0]
push ecx
call fcn.100678b0
add esp, 4
mov dword [esi], 0
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x19], 0
mov eax, dword [edi - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4