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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10061723
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x1007a010]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x1007a010]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov dword [esp + 0x40], eax
mov esi, edx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], eax
mov word [esp + 0x74], cx
mov dword [esp + 0xd8], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, ebx
call fcn.1002ce90
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
xor ecx, ecx
mov dword [eax + 8], eax
mov dword [ebx + 8], ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ecx
jb 0x1002a94d
mov eax, dword [esi]
jmp 0x1002a94f
mov eax, esi
xor edx, edx
mov word [eax], dx
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ecx
mov word [esp + 0x58], ax
mov dword [esp + 0x28], ecx
mov byte [esp + 0xd8], 1
mov ecx, dword [edi + 0xd8]
sub ecx, dword [edi + 0xd4]
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x1002aa7f
mov dword [esp + 0x24], 0
jmp 0x1002a9a6
mov edi, dword [esp + 0x10]
mov edi, dword [edi + 0xd4]
add edi, dword [esp + 0x24]
cmp dword [edi + 0x20], 3
mov dword [esp + 0x20], edi
jne 0x1002aba7
cmp dword [edi + 0x34], 0
je 0x1002ae0f
lea esi, [edi + 0x24]
mov edi, dword [esp + 0x10]
push esi
lea eax, [edi + 0x149c]
call fcn.1002e860
mov dword [esp + 0x1c], eax
cmp eax, dword [edi + 0x14a0]
je 0x1002aa0a
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x1002a9f5
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x10]
mov ecx, esi
call fcn.1000fd20
test eax, eax
js 0x1002aa0a
lea eax, [esp + 0x1c]
jmp 0x1002aa1c
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x14a0]
mov dword [esp + 0x44], edx
lea eax, [esp + 0x44]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x14a0]
je 0x1002ab58
push 0xffffffffffffffff
add eax, 0x28
push 0
push eax
lea ecx, [esp + 0x80]
call fcn.10008cb0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xd8]
sub ecx, dword [eax + 0xd4]
mov edi, dword [esp + 0x28]
add dword [esp + 0x24], 0x7c
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
mov dword [esp + 0x28], edi
cmp edi, ecx
jb 0x1002a9a2
lea edx, [esp + 0x74]
cmp edx, esi
je 0x1002aaeb
mov ebx, dword [esi]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x74], ebx
mov ebx, dword [esi + 4]
mov dword [esp + 0x78], ebx
mov ebx, dword [esi + 8]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esi + 0xc]
mov dword [esi], eax
mov eax, dword [esp + 0x84]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edi
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x88]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esi + 0x14], eax
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x1002ab03
mov eax, dword [esp + 0x58]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], cx
cmp dword [esp + 0x88], esi
jb 0x1002ab30
mov edx, dword [esp + 0x74]
push edx
call fcn.10046e92
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.1004677e
mov esp, ebp
pop ebp
ret 8
push esi
mov eax, ebx
call fcn.1002e860
mov dword [esp + 0x1c], eax
cmp eax, dword [ebx + 4]
je 0x1002ab8c
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x1002ab77
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x10]
mov ecx, esi
call fcn.1000fd20
test eax, eax
js 0x1002ab8c
lea eax, [esp + 0x1c]
jmp 0x1002ab97
mov edx, dword [ebx + 4]
mov dword [esp + 0x34], edx
lea eax, [esp + 0x34]
mov eax, dword [eax]
cmp eax, dword [ebx + 4]
je 0x1002aa42
jmp 0x1002aa2e
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], 0
jae 0x1002abbe
lea eax, [esp + 0x58]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi]
dec eax
cmp eax, 4
ja case.default.0x1002abcf
jmp dword [eax*4 + 0x1002aea4]
push 0xffffffffffffffff
push 0
add edi, 4
push edi
lea ecx, [esp + 0x80]
call fcn.10008cb0
jmp 0x1002aa46
lea edx, [esp + 0x2c]
lea esi, [edi + 0x24]
push edx
call fcn.1002c0b0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
add edi, 0x40
cmp ecx, dword [ebx + 4]
je 0x1002ac1e
push 0xffffffffffffffff
push 0
add ecx, 0x28
push edi
call fcn.100083c0
jmp 0x1002aa42
lea eax, [esp + 0x90]
push edi
push eax
mov ecx, esi
call fcn.1002f930
add esp, 8
push eax
mov ecx, ebx
mov byte [esp + 0xdc], 2
call fcn.100312c0
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
call fcn.10030220
lea esi, [esp + 0x90]
mov byte [esp + 0xd8], 1
call fcn.10025120
mov ebx, dword [esp + 0x18]
jmp 0x1002aa42
mov edx, dword [edi + 0x5c]
mov ecx, dword [esp + 0x10]
push edx
lea edi, [esp + 0x5c]
call fcn.1002ba40
mov edi, dword [esp + 0x20]
jmp case.default.0x1002abcf
mov eax, dword [edi + 0x5c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea ebx, [esp + 0x60]
call fcn.10020300
jmp 0x1002ad20
mov ebx, dword [esp + 0x40]
lea edx, [esp + 0x38]
lea esi, [edi + 0x60]
push edx
call fcn.1002c050
mov eax, dword [ebx + 4]
mov ebx, dword [esp + 0x38]
cmp ebx, eax
je 0x1002ad1c
mov ecx, dword [ebx + 0x48]
sub ecx, dword [ebx + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002ad1c
mov ecx, dword [ebx + 0x48]
sub ecx, dword [ebx + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea esi, [edx + ecx - 1]
mov edx, dword [esp + 0x10]
add edx, 0xe4
push edx
xor ecx, ecx
call fcn.100098a0
mov edx, dword [ebx + 0x44]
lea ecx, [eax*8]
sub ecx, eax
push 0xffffffffffffffff
lea eax, [edx + ecx*4]
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.100083c0
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp dword [edi + 0x20], 2
jne 0x1002adeb
cmp dword [edi + 0x34], 0
je 0x1002ae5b
lea eax, [edi + 0x24]
mov dword [esp + 0x1c], eax
push eax
mov eax, ebx
call fcn.1002e860
mov dword [esp + 0x3c], eax
cmp eax, dword [ebx + 4]
je 0x1002ad79
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x1002ad5e
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ecx + 0x10]
call fcn.1000fd20
mov edi, dword [esp + 0x20]
test eax, eax
js 0x1002ad79
lea eax, [esp + 0x3c]
jmp 0x1002ad84
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov eax, dword [eax]
cmp eax, dword [ebx + 4]
je 0x1002ad9e
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x60]
lea ecx, [eax + 0x28]
push edx
call fcn.100083c0
jmp 0x1002adeb
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.1002f930
add esp, 8
push eax
mov ecx, ebx
mov byte [esp + 0xdc], 3
call fcn.100312c0
push eax
lea edx, [esp + 0x54]
push edx
push ebx
call fcn.10030220
lea esi, [esp + 0x90]
mov byte [esp + 0xd8], 1
call fcn.10025120
mov esi, dword [esp + 0x14]
cmp dword [edi + 0x20], 1
jne 0x1002aa46
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x80]
call fcn.10008cb0
jmp 0x1002aa46
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x1002ae27
mov edx, dword [esp + 0x58]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp dword [esp + 0x88], esi
jb 0x1002ae54
mov ecx, dword [esp + 0x74]
push ecx
call fcn.10046e92
add esp, 4
xor al, al
jmp 0x1002ab32
cmp dword [esp + 0x6c], 8
jb 0x1002ae6f
mov edx, dword [esp + 0x58]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
cmp dword [esp + 0x88], 8
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
jb 0x1002ae54
mov ecx, dword [esp + 0x74]
push ecx
call fcn.10046e92
add esp, 4
xor al, al
jmp 0x1002ab32