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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016f841
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101bd92c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x101bd92c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
mov dword [esp + 0x50], esi
sar ebx, 5
mov dword [esp + 0x14], ebx
test eax, eax
je 0x1002cf9f
cmp eax, ebx
jle 0x1002cfa2
mov dword [ecx + 0x40], ebx
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x1002cfad
cmp eax, ebx
jge 0x1002cfb0
mov dword [ecx + 0x44], ebx
xor eax, eax
push eax
push 0x10199228
lea ecx, [esp + 0x78]
mov edi, 1
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
call fcn.100048b0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], 0
mov esi, dword [esi]
cmp esi, dword [eax + 4]
je 0x1002d034
mov ebx, eax
lea esp, [esp]
movzx eax, word [esi]
push eax
push 1
lea ecx, [esp + 0x78]
call fcn.1001a510
movzx eax, word [esi + 4]
push eax
push 1
lea ecx, [esp + 0x78]
call fcn.1001a510
xor eax, eax
cmp dword [esi + 4], 0x64
cmove edi, eax
add esi, 0x20
cmp esi, dword [ebx + 4]
jne 0x1002d000
mov ebx, dword [esp + 0x14]
mov eax, dword [0x101ed6c0]
test eax, eax
jne 0x1002d06f
push 4
call fcn.10092352
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x98], 1
test eax, eax
je 0x1002d060
mov ecx, eax
call fcn.100b81e0
jmp 0x1002d062
xor eax, eax
mov byte [esp + 0x98], 0
mov dword [0x101ed6c0], eax
push edi
push ebx
mov ecx, eax
call fcn.100b9340
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xf0]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [edx + 0xec]
sar ecx, 5
mov edi, dword [eax]
mov dword [esp + 0x14], ecx
cmp edi, dword [eax + 4]
je 0x1002d16f
nop
xor eax, eax
push eax
push 0x10199228
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
call fcn.100048b0
mov byte [esp + 0x98], 2
mov esi, dword [edi]
xor ebx, ebx
cmp esi, dword [edi + 4]
je 0x1002d112
mov eax, dword [esp + 0x14]
jmp 0x1002d0e0
cmp ebx, eax
jge 0x1002d0e7
inc ebx
jmp 0x1002d10a
movzx eax, word [esi]
push eax
push 1
lea ecx, [esp + 0x60]
call fcn.1001a510
movzx eax, word [esi + 4]
push eax
push 1
lea ecx, [esp + 0x60]
call fcn.1001a510
mov eax, dword [esp + 0x14]
add esi, 0x20
cmp esi, dword [edi + 4]
jne 0x1002d0e0
cmp dword [esp + 0x84], 8
push dword [esp + 0x80]
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push eax
push dword [esp + 0x70]
lea ecx, [esp + 0x64]
push 0
call fcn.10009c10
test eax, eax
je 0x1002d198
mov byte [esp + 0x98], 0
cmp dword [esp + 0x6c], 8
jb 0x1002d159
push dword [esp + 0x58]
call fcn.10091747
add esp, 4
mov eax, dword [esp + 0x28]
add edi, 0xc
mov eax, dword [eax + 0xec]
cmp edi, dword [eax + 4]
jne 0x1002d0a0
xor edx, edx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xec]
mov edi, dword [eax]
cmp edi, dword [eax + 4]
je 0x1002d31c
jmp 0x1002d1c8
cmp dword [esp + 0x6c], 8
jb 0x1002d6ad
push dword [esp + 0x58]
call fcn.10091747
add esp, 4
jmp 0x1002d6ad
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x98], 4
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x1002d20a
nop
push esi
lea ecx, [esp + 0x30]
call fcn.10039460
add esi, 0x20
cmp esi, dword [edi + 4]
jne 0x1002d1f0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
cmp eax, ebx
jae 0x1002d25e
cmp edx, eax
ja 0x1002d25e
mov ecx, eax
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ebx, dword [esp + 0x20]
jne 0x1002d23e
push ecx
lea ecx, [esp + 0x1c]
call fcn.10039990
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea eax, [esi + esi*2]
mov dword [esp + 0x14], ebx
lea eax, [ecx + eax*4]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x98], 5
test ebx, ebx
je 0x1002d290
jmp 0x1002d288
cmp ebx, ecx
jne 0x1002d270
push ecx
lea ecx, [esp + 0x1c]
call fcn.10039990
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x98], 6
test ebx, ebx
je 0x1002d290
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.1003a130
mov eax, dword [esp + 0x2c]
add ebx, 0xc
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x1002d306
cmp eax, dword [esp + 0x30]
je 0x1002d2e5
mov ecx, dword [esp + 0x30]
lea esi, [eax + 0x1c]
lea esp, [esp]
cmp dword [esi], 8
jb 0x1002d2c4
push dword [esi - 0x14]
call fcn.10091747
mov ecx, dword [esp + 0x34]
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], 0
mov word [esi - 0x14], ax
add esi, 0x20
lea eax, [esi - 0x1c]
cmp eax, ecx
jne 0x1002d2b0
mov eax, dword [esp + 0x2c]
push eax
call fcn.10091747
add esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x28]
add edi, 0xc
mov eax, dword [eax + 0xec]
cmp edi, dword [eax + 4]
jne 0x1002d1c0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov edi, dword [esp + 0x28]
mov byte [esp + 0x98], 7
mov eax, dword [edi + 0xf0]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x1002d368
lea ecx, [ecx]
push esi
lea ecx, [esp + 0x48]
call fcn.10039460
mov eax, dword [edi + 0xf0]
add esi, 0x20
cmp esi, dword [eax + 4]
jne 0x1002d350
mov edi, dword [esp + 0x50]
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x1002d385
push esi
lea ecx, [esp + 0x48]
call fcn.10039460
add esi, 0x20
cmp esi, dword [edi + 4]
jne 0x1002d373
lea eax, [esp + 0x44]
cmp eax, ebx
jae 0x1002d3ed
mov edi, dword [esp + 0x18]
cmp edi, eax
ja 0x1002d3ed
mov ecx, eax
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ebx, dword [esp + 0x20]
jne 0x1002d3c1
push ecx
lea ecx, [esp + 0x1c]
call fcn.10039990
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea eax, [esi + esi*2]
mov dword [esp + 0x24], ebx
lea eax, [edi + eax*4]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x98], 8
test ebx, ebx
je 0x1002d3e3
push eax
mov ecx, ebx
call fcn.1003a130
mov byte [esp + 0x98], 7
jmp 0x1002d42d
cmp ebx, dword [esp + 0x20]
jne 0x1002d401
push ecx
lea ecx, [esp + 0x1c]
call fcn.10039990
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x98], 9
test ebx, ebx
je 0x1002d421
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.1003a130
mov byte [esp + 0x98], 7
mov edi, dword [esp + 0x18]
add ebx, 0xc
mov dword [esp + 0x1c], ebx
cmp edi, ebx
je 0x1002d4a3
mov ecx, ebx
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x58], 0
lea eax, [ecx + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], eax
mov byte [esp + 0x98], 0xa
push dword [esp + 0x24]
mov edx, ebx
push eax
push ecx
mov ecx, edi
call fcn.1003a250
add esp, 0xc
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], 7
call fcn.1003a0c0
mov eax, dword [esp + 0x28]
push dword [esp + 0x24]
mov esi, dword [eax + 0xec]
lea eax, [esp + 0x5b]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.10039fb0
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
add esp, 0x10
mov dword [esi + 4], eax
cmp ecx, ebx
je 0x1002d641
jmp 0x1002d4e0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x98], 0xb
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x1002d522
jmp 0x1002d510
push esi
lea ecx, [esp + 0x3c]
call fcn.10039460
add esi, 0x20
cmp esi, dword [edi + 4]
jne 0x1002d510
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x38]
mov esi, dword [eax + 0xec]
mov eax, dword [esi + 4]
cmp ecx, eax
jae 0x1002d589
mov edx, dword [esi]
cmp edx, ecx
ja 0x1002d589
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esi + 4]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
cmp ecx, dword [esi + 8]
jne 0x1002d568
push 1
mov ecx, esi
call fcn.100398f0
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [esi]
lea eax, [eax + ecx*4]
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ecx
mov byte [esp + 0x98], 0xc
test ecx, ecx
je 0x1002d5b8
jmp 0x1002d5b2
cmp eax, dword [esi + 8]
jne 0x1002d597
push 1
mov ecx, esi
call fcn.100398f0
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ecx
mov byte [esp + 0x98], 0xd
test ecx, ecx
je 0x1002d5b8
lea eax, [esp + 0x38]
push eax
call fcn.1003a130
add dword [esi + 4], 0xc
mov byte [esp + 0x98], 7
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1002d636
cmp eax, dword [esp + 0x3c]
je 0x1002d615
mov ecx, dword [esp + 0x3c]
lea esi, [eax + 0x1c]
lea esp, [esp]
cmp dword [esi], 8
jb 0x1002d5f4
push dword [esi - 0x14]
call fcn.10091747
mov ecx, dword [esp + 0x40]
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], 0
mov word [esi - 0x14], ax
add esi, 0x20
lea eax, [esi - 0x1c]
cmp eax, ecx
jne 0x1002d5e0
mov eax, dword [esp + 0x38]
push eax
call fcn.10091747
add esp, 4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add edi, 0xc
cmp edi, ebx
jne 0x1002d4e0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1002d68e
mov edi, dword [esp + 0x48]
cmp eax, edi
je 0x1002d685
lea esi, [eax + 0x1c]
cmp dword [esi], 8
jb 0x1002d664
push dword [esi - 0x14]
call fcn.10091747
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], 0
mov word [esi - 0x14], ax
add esi, 0x20
lea eax, [esi - 0x1c]
cmp eax, edi
jne 0x1002d654
mov eax, dword [esp + 0x44]
push eax
call fcn.10091747
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1002d6ad
push dword [esp + 0x24]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.1003a030
push esi
call fcn.10091747
add esp, 0xc
cmp dword [esp + 0x84], 8
jb 0x1002d6c3
push dword [esp + 0x70]
call fcn.10091747
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1009174c
mov esp, ebp
pop ebp
ret 4