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

Disassembly:
sub esp, 0x7c
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x32e8c]
cmp dword [ebp + 0x32e88], eax
je 0x1002ede9
lea ecx, [eax + eax*4 + 5]
mov edx, dword [ebp + ecx*8 + 0x10]
lea ecx, [ebp + ecx*8]
sub edx, eax
mov eax, dword [esp + 0x8c]
mov dword [eax], edx
mov edx, dword [ecx + 0x14]
mov eax, dword [esp + 0x88]
mov dword [eax], edx
mov ecx, dword [ecx + 0x10]
mov dword [ebp + 0x32e8c], ecx
xor eax, eax
pop ebp
add esp, 0x7c
ret 0xc
mov al, byte [ebp + 0x32e90]
push esi
xor esi, esi
test al, al
mov dword [ebp + 0x32e88], esi
mov dword [ebp + 0x32e8c], esi
jne 0x1002ee1f
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.1002e280
cmp eax, esi
je 0x1002ee3a
pop esi
pop ebp
add esp, 0x7c
ret 0xc
mov ecx, dword [ebp + 0x32e7c]
mov edx, dword [ebp + 0x32e80]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov byte [ebp + 0x32e90], 0
mov eax, dword [ebp + 0x28028]
mov ecx, dword [eax]
push ebx
push edi
push eax
call dword [ecx + 0x24]
mov edi, eax
mov eax, dword [ebp + 0x28028]
mov edx, dword [eax]
push eax
dec edi
call dword [edx + 0x20]
mov ebx, eax
inc ebx
cmp ebx, 2
mov dword [esp + 0x2c], ebx
jb 0x1002efb8
cmp ebx, 0x111
jbe 0x1002ee78
mov ebx, 0x111
mov dword [esp + 0x2c], ebx
xor esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x40], esi
lea eax, [ebp + 0x14]
lea esp, [esp]
mov ecx, dword [eax]
mov dword [esp + esi + 0x6c], ecx
inc ecx
mov edx, edi
sub edx, ecx
mov cl, byte [edi]
cmp cl, byte [edx]
jne 0x1002eedf
mov cl, byte [edi + 1]
cmp cl, byte [edx + 1]
jne 0x1002eedf
mov ecx, 2
cmp ebx, ecx
jbe 0x1002eec3
mov bl, byte [ecx + edi]
cmp bl, byte [edx + ecx]
mov ebx, dword [esp + 0x2c]
jne 0x1002eec3
inc ecx
cmp ecx, ebx
jb 0x1002eeb2
mov edx, dword [esp + 0x40]
mov dword [esp + esi + 0x7c], ecx
cmp ecx, dword [esp + edx + 0x7c]
jbe 0x1002eee7
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], esi
jmp 0x1002eee7
mov dword [esp + esi + 0x7c], 0
mov edx, dword [esp + 0x28]
inc edx
add esi, 4
add eax, 4
cmp esi, 0x10
mov dword [esp + 0x28], edx
jb 0x1002ee90
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + ecx*4 + 0x7c]
mov eax, dword [ebp + 0x32e78]
cmp esi, eax
jb 0x1002ef48
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov dword [edx], ecx
mov dword [eax], esi
lea eax, [esi - 1]
test eax, eax
je 0x1002ff85
add dword [ebp + 0x32e84], eax
mov ebp, dword [ebp + 0x28028]
mov ecx, dword [ebp]
push eax
push ebp
call dword [ecx + 0x38]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x7c
ret 0xc
mov edx, dword [esp + 0x24]
cmp edx, eax
jb 0x1002ef99
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + eax*4 + 0x325e0]
mov eax, dword [esp + 0x94]
add ecx, 4
mov dword [eax], ecx
mov ecx, dword [esp + 0x98]
lea eax, [edx - 1]
test eax, eax
mov dword [ecx], edx
je 0x1002ff85
add dword [ebp + 0x32e84], eax
mov ebp, dword [ebp + 0x28028]
mov edx, dword [ebp]
push eax
push ebp
call dword [edx + 0x38]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x7c
ret 0xc
mov al, byte [edi]
sub edi, dword [esp + 0x6c]
cmp edx, 2
mov cl, byte [edi - 1]
mov byte [esp + 0x40], al
mov byte [esp + 0x3c], cl
jae 0x1002efde
cmp al, cl
je 0x1002efde
cmp esi, 2
jae 0x1002efde
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
pop edi
pop ebx
mov dword [eax], 0xffffffff
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebp
add esp, 0x7c
ret 0xc
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x40]
mov bl, byte [ebp + 0x10]
mov edi, dword [ebp + 0x33ae0]
mov ecx, dword [esp + 0x3c]
push eax
and edi, edx
cmp bl, 7
sbb al, al
inc al
push ecx
xor ecx, ecx
mov byte [ebp + 0x28], bl
mov edx, dword [ebp + 0x325d4]
mov cl, 8
sub cl, dl
push eax
movzx eax, byte [ebp + 0x11]
shr eax, cl
mov ecx, dword [ebp + 0x325dc]
and ecx, dword [esp + 0x9c]
mov dword [esp + 0x64], ecx
mov ecx, edx
mov edx, dword [esp + 0x64]
shl edx, cl
add eax, edx
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x325d0]
shl ecx, 0xa
add ecx, eax
call fcn.1002d9e0
movzx ecx, bl
shl ecx, 4
add ecx, edi
mov edx, dword [ebp + ecx*4 + 0x28070]
shr edx, 2
add eax, dword [edx*4 + 0x10096248]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x64], 0xffffffff
mov byte [ebp + 0x51], 0
movzx eax, byte [ebp + 0x10]
mov ecx, eax
shl ecx, 4
add ecx, edi
mov ebx, dword [ebp + ecx*4 + 0x28070]
mov edx, 0x800
sub edx, ebx
mov ebx, dword [ebp + eax*4 + 0x28370]
mov al, byte [esp + 0x40]
shr edx, 2
mov ecx, dword [edx*4 + 0x10096248]
mov edx, 0x800
sub edx, ebx
shr edx, 2
mov ebx, dword [edx*4 + 0x10096248]
add ebx, ecx
mov dword [esp + 0x50], ecx
cmp byte [esp + 0x3c], al
mov dword [esp + 0x58], ebx
jne 0x1002f0e0
xor ecx, ecx
mov cl, byte [ebp + 0x10]
push edi
push ecx
mov ecx, ebp
call fcn.1002c260
mov ecx, dword [ebp + 0x5c]
add eax, ebx
cmp eax, ecx
jae 0x1002f0e0
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x64], 0
mov byte [ebp + 0x51], 0
mov eax, dword [esp + 0x24]
cmp eax, esi
jb 0x1002f0ee
mov dword [esp + 0x18], eax
jmp 0x1002f0f4
mov dword [esp + 0x18], esi
mov eax, esi
cmp eax, 2
jae 0x1002f11e
mov edx, dword [ebp + 0x64]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
pop edi
pop ebx
mov dword [eax], edx
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebp
add esp, 0x7c
ret 0xc
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x40], edx
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x44], ecx
mov ecx, dword [esp + 0x78]
mov dword [ebp + 0x48], edx
lea edx, [eax + eax*4]
mov dword [ebp + 0x4c], ecx
lea ecx, [ebp + edx*8 + 0x34]
mov dword [ecx], 0xfffffff
dec eax
sub ecx, 0x28
cmp eax, 2
jae 0x1002f146
mov esi, dword [esp + ebx*4 + 0x7c]
cmp esi, 2
jb 0x1002f1b6
xor eax, eax
mov al, byte [ebp + 0x10]
push edi
mov ecx, ebp
push eax
push ebx
call fcn.1002c2a0
add eax, dword [esp + 0x58]
mov ecx, edi
imul ecx, ecx, 0x110
add ecx, esi
mov dword [esp + 0x54], eax
lea edx, [esi + esi*4]
lea eax, [ebp + ecx*4 + 0x2e184]
lea ecx, [ebp + edx*8 + 0x34]
lea ecx, [ecx]
mov edx, dword [eax]
add edx, dword [esp + 0x54]
cmp edx, dword [ecx]
jae 0x1002f1aa
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [ecx + 8], ebx
mov byte [ecx - 0xb], 0
dec esi
sub eax, 4
sub ecx, 0x28
cmp esi, 2
jae 0x1002f190
inc ebx
cmp ebx, 4
jb 0x1002f155
movzx eax, byte [ebp + 0x10]
mov ecx, dword [ebp + eax*4 + 0x28370]
mov edx, dword [esp + 0x50]
shr ecx, 2
mov eax, dword [ecx*4 + 0x10096248]
add eax, edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x7c]
cmp eax, 2
lea ebx, [eax + 1]
jae 0x1002f1ec
mov ebx, 2
cmp ebx, dword [esp + 0x24]
ja 0x1002f28e
mov ecx, dword [ebp + 0x325e4]
xor eax, eax
cmp ebx, ecx
mov dword [esp + 0x24], eax
jbe 0x1002f222
jmp 0x1002f210
mov ecx, dword [ebp + eax*4 + 0x325ec]
add eax, 2
cmp ebx, ecx
ja 0x1002f210
mov dword [esp + 0x24], eax
lea edx, [ebx + ebx*4]
lea esi, [ebp + edx*8 + 0x34]
lea esp, [esp]
mov eax, dword [esp + 0x24]
mov eax, dword [ebp + eax*4 + 0x325e8]
push edi
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x60], eax
call fcn.1002b000
mov edx, dword [esp + 0x58]
mov ecx, dword [esi]
add eax, edx
cmp eax, ecx
jae 0x1002f26c
mov ecx, dword [esp + 0x54]
add ecx, 4
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], ecx
mov byte [esi - 0xb], 0
mov eax, dword [esp + 0x24]
cmp ebx, dword [ebp + eax*4 + 0x325e4]
jne 0x1002f288
mov ecx, dword [esp + 0x20]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x24], eax
je 0x1002f28e
inc ebx
add esi, 0x28
jmp 0x1002f230
mov eax, dword [esp + 0x18]
mov ebx, 1
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x1002ff6c
jmp 0x1002f2b0
mov eax, dword [ebp + 0x28028]
mov edx, dword [eax]
lea edi, [ebp + 0x325e0]
push edi
xor esi, esi
push eax
mov dword [esp + 0x30], esi
call dword [edx + 0x34]
test eax, eax
jne 0x1002ff87
mov edi, dword [edi]
test edi, edi
mov dword [esp + 0x58], edi
jbe 0x1002f314
mov esi, dword [ebp + edi*4 + 0x325dc]
cmp esi, dword [ebp + 0x32e78]
mov dword [esp + 0x28], esi
jne 0x1002f314
mov eax, dword [ebp + 0x28028]
mov ecx, dword [eax]
mov edx, 0x111
sub edx, esi
push edx
mov edx, dword [ebp + edi*4 + 0x325e0]
push edx
lea edx, [esi - 1]
push edx
push eax
call dword [ecx + 0x1c]
add esi, eax
mov dword [esp + 0x28], esi
mov ecx, dword [ebp + 0x32e84]
mov eax, dword [ebp + 0x32e78]
inc ecx
cmp esi, eax
mov dword [ebp + 0x32e84], ecx
jae 0x1002ff59
mov edx, dword [esp + 0x90]
lea eax, [ebx + ebx*4 + 5]
mov bl, byte [ebp + eax*8 + 1]
lea eax, [ebp + eax*8]
inc edx
test bl, bl
mov dword [esp + 0x90], edx
mov edx, dword [eax + 0x10]
je 0x1002f3a4
mov cl, byte [eax + 2]
dec edx
test cl, cl
je 0x1002f391
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
inc ecx
cmp esi, 4
lea ecx, [ecx + ecx*4]
mov cl, byte [ebp + ecx*8]
movzx ecx, cl
jae 0x1002f380
mov cl, byte [ecx + 0x100482f4]
movzx ecx, cl
mov cl, byte [ecx + 0x100482dc]
jmp 0x1002f3ac
mov cl, byte [ecx + 0x100482e8]
movzx ecx, cl
mov cl, byte [ecx + 0x100482dc]
jmp 0x1002f3ac
lea ecx, [edx + edx*4 + 5]
mov cl, byte [ebp + ecx*8]
movzx ecx, cl
mov cl, byte [ecx + 0x100482dc]
jmp 0x1002f3ac
lea ecx, [edx + edx*4 + 5]
mov cl, byte [ebp + ecx*8]
mov esi, dword [esp + 0x14]
dec esi
cmp edx, esi
jne 0x1002f3dd
mov edx, dword [eax + 0x14]
test edx, edx
movzx edx, cl
jne 0x1002f3ce
mov cl, byte [edx + 0x10048300]
mov byte [esp + 0x1c], cl
jmp 0x1002f482
mov cl, byte [edx + 0x100482dc]
mov byte [esp + 0x1c], cl
jmp 0x1002f482
test bl, bl
je 0x1002f3fd
mov bl, byte [eax + 2]
test bl, bl
je 0x1002f3fd
mov edi, dword [eax + 8]
mov edx, dword [eax + 4]
movzx ecx, cl
mov cl, byte [ecx + 0x100482f4]
mov dword [esp + 0x24], edi
jmp 0x1002f41c
mov esi, dword [eax + 0x14]
cmp esi, 4
mov dword [esp + 0x24], esi
mov edi, esi
movzx ecx, cl
jae 0x1002f416
mov cl, byte [ecx + 0x100482f4]
jmp 0x1002f41c
mov cl, byte [ecx + 0x100482e8]
cmp edi, 4
lea edx, [edx + edx*4 + 5]
mov byte [esp + 0x1c], cl
lea ebx, [ebp + edx*8]
jae 0x1002f466
mov ecx, dword [ebx + edi*4 + 0x18]
mov edx, 1
cmp edi, edx
mov dword [esp + 0x6c], ecx
jb 0x1002f453
mov edx, dword [esp + 0x24]
mov ecx, edi
inc edx
cmp edx, 4
lea esi, [ebx + 0x18]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
jae 0x1002f482
mov ecx, 4
lea edi, [esp + edx*4 + 0x6c]
lea esi, [ebx + edx*4 + 0x18]
sub ecx, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x1002f482
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 0x20]
add edi, 0xfffffffc
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov cl, byte [esp + 0x1c]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov byte [eax], cl
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 0x18], esi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x28028]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov ebx, eax
mov dl, byte [ebx - 1]
dec ebx
mov eax, ebx
sub eax, esi
mov cl, byte [eax - 1]
mov eax, dword [esp + 0x90]
mov esi, dword [ebp + 0x33ae0]
and esi, eax
mov al, byte [esp + 0x1c]
mov byte [esp + 0x34], cl
movzx ecx, al
mov dword [esp + 0x24], ecx
shl ecx, 4
lea edi, [ecx + esi]
cmp al, 7
sbb al, al
inc al
mov byte [esp + 0x30], dl
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x325d4]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
xor ecx, ecx
push eax
movzx eax, byte [ebx - 1]
mov cl, 8
sub cl, dl
shr eax, cl
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x48], esi
mov esi, dword [ebp + 0x325dc]
and esi, ecx
mov ecx, edx
shl esi, cl
add eax, esi
mov esi, dword [ebp + 0x325d0]
lea ecx, [eax + eax*2]
shl ecx, 0xa
add ecx, esi
call fcn.1002d9e0
mov ecx, dword [ebp + edi*4 + 0x28070]
mov edx, dword [esp + 0x40]
mov esi, eax
shr ecx, 2
add esi, dword [ecx*4 + 0x10096248]
mov eax, dword [esp + 0x14]
add esi, edx
lea edx, [eax + eax*4 + 0xa]
mov ecx, dword [ebp + edx*8 + 0xc]
cmp esi, ecx
lea eax, [ebp + edx*8]
mov byte [esp + 0x13], 0
jae 0x1002f587
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0xffffffff
mov byte [eax + 1], 0
mov byte [esp + 0x13], 1
mov ecx, dword [ebp + edi*4 + 0x28070]
mov edx, 0x800
sub edx, ecx
shr edx, 2
mov ecx, dword [edx*4 + 0x10096248]
add ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x54], ecx
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x28370]
shr ecx, 2
mov edx, dword [ecx*4 + 0x10096248]
add edx, dword [esp + 0x54]
mov cl, byte [esp + 0x30]
cmp byte [esp + 0x34], cl
mov dword [esp + 0x5c], edx
jne 0x1002f62a
mov ecx, dword [esp + 0x14]
cmp dword [eax + 0x10], ecx
jae 0x1002f5e3
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1002f62a
mov ecx, dword [ebp + edi*4 + 0x28430]
mov edi, dword [esp + 0x24]
mov edi, dword [ebp + edi*4 + 0x283a0]
shr ecx, 2
mov ecx, dword [ecx*4 + 0x10096248]
shr edi, 2
add ecx, dword [edi*4 + 0x10096248]
add ecx, edx
cmp ecx, dword [eax + 0xc]
ja 0x1002f62a
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov byte [eax + 1], 0
mov byte [esp + 0x13], 1
mov eax, dword [ebp + 0x28028]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov edi, dword [esp + 0x14]
mov ecx, 0xfff
inc eax
sub ecx, edi
cmp ecx, eax
mov dword [esp + 0x40], eax
jae 0x1002f650
mov eax, ecx
mov dword [esp + 0x40], eax
cmp eax, 2
mov dword [esp + 0x38], eax
jb 0x1002ff40
mov edi, dword [ebp + 0x32e78]
cmp eax, edi
jbe 0x1002f66b
mov dword [esp + 0x38], edi
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x1002f7d3
mov dl, byte [esp + 0x30]
cmp byte [esp + 0x34], dl
je 0x1002f7d3
mov edx, dword [esp + 0x6c]
lea ecx, [edi + 1]
inc edx
cmp eax, ecx
jb 0x1002f693
mov eax, ecx
mov ecx, 1
cmp eax, ecx
jbe 0x1002f6ad
mov edi, ebx
sub edi, edx
mov dl, byte [ecx + ebx]
cmp dl, byte [edi + ecx]
jne 0x1002f6ad
inc ecx
cmp ecx, eax
jb 0x1002f6a0
dec ecx
cmp ecx, 2
mov dword [esp + 0x2c], ecx
jb 0x1002f7d3
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x100482dc]
mov eax, dword [esp + 0x90]
mov edx, dword [ebp + 0x33ae0]
inc eax
and eax, edx
movzx edx, cl
mov ecx, edx
mov dword [esp + 0x48], edx
shl ecx, 4
mov edi, 0x800
sub edi, dword [ebp + edx*4 + 0x28370]
add ecx, eax
mov edx, 0x800
sub edx, dword [ebp + ecx*4 + 0x28070]
shr edi, 2
shr edx, 2
mov dword [esp + 0x50], edx
mov edx, dword [edi*4 + 0x10096248]
mov edi, dword [esp + 0x50]
add edx, dword [edi*4 + 0x10096248]
mov edi, dword [esp + 0x2c]
add edx, esi
mov esi, dword [esp + 0x14]
lea edi, [edi + esi + 1]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov dword [esp + 0x4c], ecx
jae 0x1002f760
lea ecx, [esi + esi*4]
lea ecx, [ebp + ecx*8 + 0x34]
mov dword [esp + 0x50], ecx
mov ecx, edi
sub ecx, esi
add esi, ecx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x50]
lea ebx, [ebx]
add esi, 0x28
dec ecx
mov dword [esi], 0xfffffff
jne 0x1002f750
mov ecx, dword [esp + 0x4c]
mov esi, 0x800
imul eax, eax, 0x110
sub esi, dword [ebp + ecx*4 + 0x28430]
mov ecx, dword [esp + 0x48]
mov ecx, dword [ebp + ecx*4 + 0x283a0]
shr ecx, 2
shr esi, 2
mov dword [esp + 0x50], ecx
mov ecx, dword [esi*4 + 0x10096248]
mov esi, dword [esp + 0x50]
add ecx, dword [esi*4 + 0x10096248]
add eax, dword [esp + 0x2c]
add ecx, dword [ebp + eax*4 + 0x2e184]
mov esi, dword [esp + 0x18]
add ecx, edx
lea edx, [edi + edi*4 + 5]
lea eax, [ebp + edx*8]
cmp ecx, dword [eax + 0xc]
jae 0x1002f7d7
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0
mov byte [eax + 1], 1
mov byte [eax + 2], 0
jmp 0x1002f7d7
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], 2
jmp 0x1002f7f1
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + eax*4 + 0x6c]
mov dl, byte [ebx]
inc ecx
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x44], ecx
cmp dl, byte [eax]
jne 0x1002faf9
mov cl, byte [ebx + 1]
cmp cl, byte [eax + 1]
jne 0x1002faf9
mov ecx, dword [esp + 0x38]
mov edi, 2
cmp ecx, edi
jbe 0x1002f82e
mov dl, byte [edi + ebx]
cmp dl, byte [edi + eax]
jne 0x1002f82e
inc edi
cmp edi, ecx
jb 0x1002f821
mov eax, dword [esp + 0x14]
add eax, edi
cmp esi, eax
jae 0x1002f85c
lea ecx, [esi + esi*4]
sub eax, esi
add esi, eax
lea ecx, [ebp + ecx*8 + 0x34]
mov dword [esp + 0x18], esi
jmp 0x1002f850
add ecx, 0x28
dec eax
mov dword [ecx], 0xfffffff
jne 0x1002f850
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
mov ecx, ebp
mov esi, edi
call fcn.1002c2a0
add eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
imul ecx, ecx, 0x110
lea edx, [edi + ecx]
mov dword [esp + 0x60], ecx
lea ecx, [ebp + edx*4 + 0x2e184]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
lea ecx, [edi + edx]
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x68], eax
lea ecx, [ebp + ecx*8 + 0x34]
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
add edx, eax
cmp edx, dword [ecx]
jae 0x1002f8c6
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 8], edx
mov byte [ecx - 0xb], 0
mov edx, dword [esp + 0x2c]
dec edi
sub edx, 4
sub ecx, 0x28
cmp edi, 2
mov dword [esp + 0x2c], edx
jae 0x1002f8a6
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1002f8e9
lea eax, [esi + 1]
mov dword [esp + 0x50], eax
mov ecx, dword [ebp + 0x32e78]
mov edx, dword [esp + 0x40]
lea eax, [esi + 1]
add ecx, eax
cmp edx, ecx
jae 0x1002f8fe
mov ecx, edx
cmp eax, ecx
jae 0x1002f91d
mov edx, dword [esp + 0x44]
mov edi, eax
sub edi, edx
add edi, ebx
lea esp, [esp]
mov dl, byte [eax + ebx]
cmp dl, byte [edi]
jne 0x1002f91d
inc eax
inc edi
cmp eax, ecx
jb 0x1002f910
or ecx, 0xffffffff
sub ecx, esi
add eax, ecx
cmp eax, 2
mov dword [esp + 0x4c], eax
jb 0x1002faf9
mov edx, dword [esp + 0x24]
mov cl, byte [edx + 0x100482f4]
mov eax, dword [ebp + 0x33ae0]
mov edx, dword [esp + 0x90]
movzx edi, cl
mov ecx, eax
add edx, esi
and ecx, edx
mov edx, edi
shl edx, 4
add ecx, edx
mov ecx, dword [ebp + ecx*4 + 0x28070]
shr ecx, 2
mov edx, dword [ecx*4 + 0x10096248]
mov cl, byte [edi + 0x100482dc]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x90]
lea edi, [esi + edx + 1]
and edi, eax
movzx eax, cl
mov dword [esp + 0x48], eax
shl eax, 4
add eax, edi
mov edx, dword [ebp + 0x325d4]
mov dword [esp + 0x2c], eax
xor eax, eax
mov al, byte [esi + ebx]
mov ecx, esi
push eax
sub ecx, dword [esp + 0x48]
xor eax, eax
mov al, byte [ecx + ebx]
xor ecx, ecx
mov cl, 8
sub cl, dl
mov edx, dword [ebp + 0x325dc]
push eax
movzx eax, byte [ebx + esi - 1]
shr eax, cl
mov ecx, dword [esp + 0x98]
add ecx, esi
and edx, ecx
mov ecx, dword [ebp + 0x325d4]
shl edx, cl
push 1
add eax, edx
mov edx, dword [ebp + 0x325d0]
lea ecx, [eax + eax*2]
shl ecx, 0xa
add ecx, edx
call fcn.1002d9e0
mov ecx, dword [esp + 0x48]
mov edx, 0x800
sub edx, dword [ebp + ecx*4 + 0x28370]
shr edx, 2
add eax, dword [edx*4 + 0x10096248]
mov ecx, dword [esp + 0x2c]
mov edx, 0x800
sub edx, dword [ebp + ecx*4 + 0x28070]
shr edx, 2
mov ecx, dword [edx*4 + 0x10096248]
mov edx, dword [esp + 0x60]
add eax, ecx
lea ecx, [esi + edx]
mov edx, dword [ebp + ecx*4 + 0x2e184]
mov ecx, dword [esp + 0x68]
add eax, edx
add eax, dword [esp + 0x64]
mov edx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x14]
add edx, esi
lea ecx, [edx + ecx + 1]
mov edx, dword [esp + 0x18]
cmp edx, ecx
mov dword [esp + 0x64], ecx
jae 0x1002fa7c
lea edx, [edx + edx*4]
lea edx, [ebp + edx*8 + 0x34]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x18]
sub ecx, edx
add edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x68]
lea ebx, [ebx]
add edx, 0x28
dec ecx
mov dword [edx], 0xfffffff
jne 0x1002fa70
mov edx, dword [esp + 0x2c]
imul edi, edi, 0x110
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x28430]
mov edx, dword [esp + 0x48]
mov edx, dword [ebp + edx*4 + 0x283a0]
shr ecx, 2
mov ecx, dword [ecx*4 + 0x10096248]
shr edx, 2
add ecx, dword [edx*4 + 0x10096248]
add edi, dword [esp + 0x4c]
add ecx, dword [ebp + edi*4 + 0x2e184]
add ecx, eax
mov eax, dword [esp + 0x64]
lea eax, [eax + eax*4 + 5]
mov edx, dword [ebp + eax*8 + 0xc]
cmp ecx, edx
lea eax, [ebp + eax*8]
jae 0x1002faf9
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + ecx + 1]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov byte [eax + 1], 1
mov byte [eax + 2], 1
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 4
mov dword [esp + 0x20], eax
jb 0x1002f7ed
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
cmp eax, edx
jbe 0x1002fb4c
mov esi, dword [ebp + 0x325e4]
xor ecx, ecx
cmp edx, esi
mov eax, edx
jbe 0x1002fb3e
jmp 0x1002fb30
mov esi, dword [ebp + ecx*4 + 0x325ec]
add ecx, 2
cmp edx, esi
ja 0x1002fb30
mov dword [ebp + ecx*4 + 0x325e4], edx
add ecx, 2
mov dword [esp + 0x58], ecx
mov esi, dword [esp + 0x50]
cmp eax, esi
jb 0x1002ff40
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + edx*4 + 0x28370]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
shr ecx, 2
mov ecx, dword [ecx*4 + 0x10096248]
add ecx, edi
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x18]
add eax, edx
cmp ecx, eax
jae 0x1002fba0
lea edx, [ecx + ecx*4]
sub eax, ecx
add ecx, eax
lea edx, [ebp + edx*8 + 0x34]
mov dword [esp + 0x18], ecx
add edx, 0x28
dec eax
mov dword [edx], 0xfffffff
jne 0x1002fb94
mov ecx, dword [ebp + 0x325e4]
xor eax, eax
cmp esi, ecx
mov dword [esp + 0x28], eax
jbe 0x1002fbc2
mov ecx, dword [ebp + eax*4 + 0x325ec]
add eax, 2
cmp esi, ecx
ja 0x1002fbb0
mov dword [esp + 0x28], eax
shl eax, 2
mov dword [esp + 0x50], eax
mov eax, dword [eax + ebp + 0x325e8]
cmp eax, 0x20000
mov dword [esp + 0x2c], eax
jae 0x1002fbea
shr eax, 6
movzx eax, byte [eax + 0x10095a40]
add eax, 0xc
jmp 0x1002fc0d
cmp eax, 0x8000000
jae 0x1002fc00
shr eax, 0x10
movzx eax, byte [eax + 0x10095a40]
add eax, 0x20
jmp 0x1002fc0d
shr eax, 0x1a
movzx eax, byte [eax + 0x10095a40]
add eax, 0x34
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
imul eax, eax, 0x110
add eax, esi
lea eax, [ebp + eax*4 + 0x29538]
mov dword [esp + 0x3c], eax
lea eax, [esi + ecx]
lea edx, [eax + eax*4]
lea ecx, [ebp + edx*8 + 0x34]
lea edi, [esi + 1]
mov dword [esp + 0x38], ecx
lea ecx, [ecx]
lea eax, [edi - 3]
cmp eax, 4
jb 0x1002fc4d
mov eax, 3
mov esi, dword [esp + 0x2c]
cmp esi, 0x80
jae 0x1002fc67
shl eax, 7
add eax, esi
mov eax, dword [ebp + eax*4 + 0x33294]
jmp 0x1002fc83
mov edx, dword [esp + 0x20]
shl eax, 6
add eax, edx
mov eax, dword [ebp + eax*4 + 0x32e94]
mov edx, esi
and edx, 0xf
add eax, dword [ebp + edx*4 + 0x33a94]
add eax, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
add eax, dword [edx]
cmp eax, dword [ecx]
mov dword [esp + 0x5c], eax
jae 0x1002fca8
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
add esi, 4
mov dword [ecx + 4], eax
mov dword [ecx + 8], esi
mov byte [ecx - 0xb], 0
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + ebp + 0x325e4]
lea eax, [edi - 1]
cmp eax, edx
jne 0x1002ff24
mov eax, dword [ebp + 0x32e78]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
inc edx
add eax, edi
cmp ecx, eax
mov dword [esp + 0x68], edx
mov esi, edi
jae 0x1002fcdb
mov eax, ecx
cmp edi, eax
jae 0x1002fcf2
mov ecx, ebx
sub ecx, edx
add ecx, edi
mov dl, byte [esi + ebx]
cmp dl, byte [ecx]
jne 0x1002fcf2
inc esi
inc ecx
cmp esi, eax
jb 0x1002fce5
or ecx, 0xffffffff
lea eax, [edi - 1]
sub ecx, eax
add esi, ecx
cmp esi, 2
mov dword [esp + 0x48], esi
jb 0x1002febb
mov ecx, dword [ebp + 0x33ae0]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x24]
mov dl, byte [edx + 0x100482e8]
lea esi, [eax + edi - 1]
mov eax, ecx
and eax, esi
mov dword [esp + 0x64], esi
movzx esi, dl
mov edx, esi
shl edx, 4
add edx, eax
mov edx, dword [ebp + edx*4 + 0x28070]
shr edx, 2
mov edx, dword [edx*4 + 0x10096248]
mov dword [esp + 0x60], edx
mov dl, byte [esi + 0x100482dc]
lea esi, [eax + 1]
movzx eax, dl
mov edx, dword [esp + 0x68]
and esi, ecx
mov dword [esp + 0x4c], eax
shl eax, 4
add eax, esi
mov dword [esp + 0x50], eax
xor eax, eax
mov al, byte [ebx + edi - 1]
mov ecx, ebx
sub ecx, edx
xor edx, edx
mov dl, byte [ecx + edi - 1]
xor ecx, ecx
mov cl, 8
push eax
movzx eax, byte [ebx + edi - 2]
push edx
sub cl, byte [ebp + 0x325d4]
mov edx, dword [ebp + 0x325dc]
shr eax, cl
and edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x325d4]
shl edx, cl
push 1
add eax, edx
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x325d0]
shl ecx, 0xa
add ecx, eax
call fcn.1002d9e0
mov edx, dword [esp + 0x4c]
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x28370]
shr ecx, 2
add eax, dword [ecx*4 + 0x10096248]
mov edx, dword [esp + 0x50]
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x28070]
shr ecx, 2
mov edx, dword [ecx*4 + 0x10096248]
mov ecx, dword [esp + 0x5c]
add eax, edx
add eax, dword [esp + 0x60]
add eax, ecx
mov ecx, dword [esp + 0x48]
lea edx, [ecx + edi - 1]
mov ecx, dword [esp + 0x14]
lea ecx, [edx + ecx + 1]
mov edx, dword [esp + 0x18]
cmp edx, ecx
mov dword [esp + 0x64], ecx
jae 0x1002fe3c
lea edx, [edx + edx*4]
lea edx, [ebp + edx*8 + 0x34]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x18]
sub ecx, edx
add edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x68]
lea ecx, [ecx]
add edx, 0x28
dec ecx
mov dword [edx], 0xfffffff
jne 0x1002fe30
mov edx, dword [esp + 0x50]
imul esi, esi, 0x110
mov ecx, 0x800
sub ecx, dword [ebp + edx*4 + 0x28430]
mov edx, dword [esp + 0x4c]
mov edx, dword [ebp + edx*4 + 0x283a0]
shr ecx, 2
mov ecx, dword [ecx*4 + 0x10096248]
shr edx, 2
add ecx, dword [edx*4 + 0x10096248]
add esi, dword [esp + 0x48]
add ecx, dword [ebp + esi*4 + 0x2e184]
add ecx, eax
mov eax, dword [esp + 0x64]
lea eax, [eax + eax*4 + 5]
mov edx, dword [ebp + eax*8 + 0xc]
cmp ecx, edx
lea eax, [ebp + eax*8]
jae 0x1002febb
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
lea edx, [edi + ecx]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
add ecx, 4
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov byte [eax + 1], 1
mov byte [eax + 2], 1
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x28], eax
je 0x1002ff40
shl eax, 2
mov dword [esp + 0x50], eax
mov eax, dword [eax + ebp + 0x325e8]
cmp eax, 0x80
mov dword [esp + 0x2c], eax
jb 0x1002ff24
cmp eax, 0x20000
jae 0x1002fefd
shr eax, 6
movzx eax, byte [eax + 0x10095a40]
add eax, 0xc
jmp 0x1002ff20
cmp eax, 0x8000000
jae 0x1002ff13
shr eax, 0x10
movzx eax, byte [eax + 0x10095a40]
add eax, 0x20
jmp 0x1002ff20
shr eax, 0x1a
movzx eax, byte [eax + 0x10095a40]
add eax, 0x34
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add edx, 4
add ecx, 0x28
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
inc edi
jmp 0x1002fc40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
mov ebx, eax
jne 0x1002f2b0
jmp 0x1002ff6c
mov dword [ebp + 0x32e80], edi
mov dword [ebp + 0x32e7c], esi
mov byte [ebp + 0x32e90], 1
mov edx, dword [esp + 0x94]
push ebx
mov ecx, ebp
push edx
call fcn.1002bc40
mov ecx, dword [esp + 0x98]
mov dword [ecx], eax
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x7c
ret 0xc