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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x102d4008]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x74]
mov edx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add edx, edx
mul edx
shr edx, 1
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
nop dword [eax]
cmp dword [esi + 0x14], 0
jge 0x10081709
mov ecx, esi
call fcn.10079be0
test eax, eax
jne 0x100818d2
mov edx, dword [esp + 0x10]
mov al, byte [esi + 0xc]
test al, al
jne 0x10081719
cmp dword [esi + 0x14], edx
jle 0x100818d2
movsx ecx, byte [ebx + 0x44]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x10081757
test al, al
je 0x100818d2
lea edx, [ebx + 0x7c]
mov ecx, esi
call fcn.10081510
mov edi, eax
test edi, edi
jne 0x100818d2
mov edx, dword [esp + 0x10]
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x46], eax
mov dword [ebx + 0x78], esi
mov esi, dword [ebx + 0x7c]
mov dword [ebx + 0x74], esi
jmp 0x100816f0
mov edi, dword [ebx + ecx*4 + 0x74]
movzx eax, word [ebx + ecx*2 + 0x46]
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x10081785
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x10081785
cmp dword [edx + 0x60], 0
je 0x100817ba
call fcn.10072f40
jmp 0x100817ae
mov eax, dword [edx + 0x28]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1008185c
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x100817a9
call fcn.10074850
jmp 0x100817ae
call fcn.10074620
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1008185c
cmp dword [edi + 0x14], 0
jge 0x100817d3
mov ecx, edi
call fcn.10079be0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1008185c
cmp byte [esi + 3], 0
je 0x10081810
cmp byte [esi + 0xc], 1
jne 0x10081810
mov ax, word [esi + 0x1c]
cmp ax, word [esi + 0x18]
jne 0x10081810
cmp dword [edi + 4], 1
je 0x10081810
movzx eax, word [edi + 0x18]
cmp eax, dword [esp + 0x18]
jne 0x10081810
lea eax, [esp + 0x24]
mov edx, esi
push eax
mov ecx, edi
call fcn.1007fd70
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x1008185c
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0x24]
call fcn.1006ef20
movzx ecx, byte [ebx + 3]
mov edx, dword [esp + 0x18]
and ecx, 1
push ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], 1
sete cl
push ecx
push eax
mov ecx, edi
call fcn.100800c0
mov dword [esp + 0x18], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10081854
mov ecx, eax
call fcn.1006f030
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x48]
mov byte [esi + 0xc], 0
test byte [edx + 0x1c], 0x20
je 0x100818a8
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10181160
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100818af
mov ecx, edx
call fcn.1006ea70
mov cl, byte [ebx + 0x44]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
movsx esi, cl
lea eax, [ecx - 1]
mov byte [ebx + 0x44], al
mov esi, dword [ebx + esi*4 + 0x74]
mov dword [ebx + 0x74], esi
test edi, edi
je 0x100816f0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100818df
call fcn.1006f030
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret