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

Disassembly:
mov eax, 0x27c4
call fcn.100b9440
push ebx
mov ebx, dword [esp + 0x27d0]
push ebp
push esi
mov esi, ecx
xor edx, edx
cmp ebx, 8
push edi
mov dword [esi], edx
jb 0x10019d17
test bl, 1
jne 0x10019d17
mov eax, dword [esp + 0x27d8]
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x20], 0xffffffff
mov cx, word [eax]
mov di, word [eax + 2]
shl ecx, 0x10
or ecx, edi
lea edi, [eax + 4]
cmp ecx, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
jae 0x10019d17
add eax, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
xor eax, eax
lea ecx, [esi + 4]
inc eax
mov dword [ecx], eax
add ecx, 4
cmp eax, 4
jb 0x1001885f
xor eax, eax
lea ecx, [esi + 0x18]
inc eax
mov dword [ecx], eax
mov dword [ecx + 4], edx
add ecx, 8
cmp eax, 4
jb 0x1001886f
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
lea eax, [esi + 0x58]
mov ecx, 0x10
mov ebx, 0x55555555
mov dword [eax + 8], ebx
mov dword [eax], 0x30
mov dword [eax + 0xc], edx
add eax, 0x10
dec ecx
jne 0x10018890
lea eax, [esi + 0x158]
mov ecx, 0x20
mov dword [eax + 8], ebx
mov dword [eax], 0x30
mov dword [eax + 0xc], edx
add eax, 0x10
dec ecx
jne 0x100188ad
lea eax, [esi + 0x358]
lea edi, [esi + 0x40]
mov ebp, 3
mov dword [edi], edx
mov ecx, 0x40
mov dword [eax + 8], ebx
mov dword [eax], 0x30
mov dword [eax + 0xc], edx
add eax, 0x10
dec ecx
jne 0x100188d4
add edi, 4
dec ebp
jne 0x100188cd
lea eax, [esi + 0xf58]
lea edi, [esi + 0x4c]
mov ebp, 3
mov dword [edi], edx
mov ecx, 0x40
mov dword [eax + 8], ebx
mov dword [eax], 0x30
mov dword [eax + 0xc], edx
add eax, 0x10
dec ecx
jne 0x10018901
add edi, 4
dec ebp
jne 0x100188fa
lea ebp, [esi + 0x1b58]
mov ecx, 0x100
mov eax, 1
push 0xf
lea ebx, [ebp + 0x68c]
mov dword [ebp + 0x684], 0x400
mov edi, ebx
mov dword [ebp + 0x688], ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x688]
lea ecx, [esp + 0xe8]
push eax
push ecx
lea edx, [esp + 0x6e8]
mov ecx, ebx
call fcn.100290e0
mov edx, dword [ebp + 0x688]
lea eax, [esp + 0xe4]
push edx
push eax
mov ecx, ebp
call fcn.10019ff0
lea ebp, [esi + 0x3d2c]
mov ecx, 0x36
mov eax, 1
push 0xf
lea ebx, [ebp + 0x2f8]
mov dword [ebp + 0x2f0], 0x200
mov edi, ebx
mov dword [ebp + 0x2f4], ecx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x2f4]
lea edx, [esp + 0x40]
push ecx
push edx
lea edx, [esp + 0x1f0]
mov ecx, ebx
call fcn.100290e0
mov eax, dword [ebp + 0x2f4]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, ebp
call fcn.1001a150
lea ebp, [esi + 0x40fc]
mov ecx, 8
mov eax, 1
push 0xf
lea ebx, [ebp + 0x11c]
mov dword [ebp + 0x114], 0x200
mov edi, ebx
mov dword [ebp + 0x118], ecx
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0x118]
lea eax, [esp + 0x30]
push edx
push eax
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.100290e0
mov ecx, dword [ebp + 0x118]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, ebp
call fcn.1001a2b0
mov ecx, dword [esp + 0x27e4]
call fcn.10019d90
mov ebp, eax
cmp ebp, 2
jae 0x10018a3f
mov ebp, 2
lea ebx, [esi + 0x25e4]
test ebp, ebp
mov dword [ebx + 0xac4], 0x400
mov dword [ebx + 0xac8], ebp
jbe 0x10018a68
lea edi, [ebx + 0xacc]
mov ecx, ebp
mov eax, 1
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xac8]
push 0xf
lea ecx, [esp + 0x2c0]
push eax
push ecx
lea edx, [esp + 0xee8]
lea ecx, [ebx + 0xacc]
call fcn.100290e0
mov edx, dword [ebx + 0xac8]
lea eax, [esp + 0x2bc]
push edx
push eax
mov ecx, ebx
call fcn.10019ff0
lea ebx, [esi + 0x4238]
test ebp, ebp
mov dword [ebx + 0xac4], 0x400
mov dword [ebx + 0xac8], ebp
jbe 0x10018aca
lea edi, [ebx + 0xacc]
mov ecx, ebp
mov eax, 1
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xac8]
push 0xf
lea edx, [esp + 0x2c0]
push ecx
push edx
lea edx, [esp + 0xee8]
lea ecx, [ebx + 0xacc]
call fcn.100290e0
mov eax, dword [ebx + 0xac8]
lea ecx, [esp + 0x2bc]
push eax
push ecx
mov ecx, ebx
call fcn.10019ff0
mov edx, dword [esp + 0x27e4]
mov eax, dword [esi]
cmp eax, edx
mov dword [esp + 0x1c], 0
jae 0x10019cea
mov eax, dword [esi + 0x38]
mov ecx, eax
and eax, 7
shl ecx, 4
shl eax, 1
mov edx, dword [ecx + esi + 0x58]
lea edi, [ecx + esi + 0x58]
test edx, edx
mov ecx, eax
jne 0x10018b3e
mov edx, 1
jmp 0x10018b48
cmp edx, 0x40
jne 0x10018b48
mov edx, 0x3f
mov ebp, dword [esp + 0x20]
cmp ebp, 0xffff
ja 0x10018b7e
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
shl ebp, 0x10
mov dword [esp + 0x20], ebp
xor ebp, ebp
mov bp, word [eax]
shl ebx, 0x10
or ebx, ebp
mov ebp, dword [esp + 0x20]
add eax, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
jmp 0x10018b82
mov ebx, dword [esp + 0x24]
mov eax, ebp
shr eax, 6
imul eax, edx
cmp ebx, eax
jae 0x10018c23
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0xc]
mov ebx, dword [edi]
mov ecx, edx
shr ecx, 0x1f
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
add ebx, ecx
mov ecx, 1
mov dword [edi], ebx
call fcn.100b92c0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov ebx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
mov ecx, 9
mov ah, byte [ebx - 1]
mov dl, byte [ebx - 3]
mov al, byte [ebx - 2]
lea edi, [esi + 0x1b58]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x18]
sub ecx, edx
shr eax, cl
mov ecx, dword [edi + 0x24]
and eax, 0x7fff
cmp eax, ecx
jae 0x10018c82
shr eax, 6
xor ecx, ecx
mov cx, word [edi + eax*2 + 0x84]
mov eax, ecx
and eax, 0xf
add edx, eax
mov eax, edx
and edx, 7
shr eax, 3
sub ebx, eax
mov dword [esp + 0x18], edx
shr ecx, 4
mov dword [esp + 0x14], ebx
mov ebx, ecx
jmp 0x10018cd7
or ecx, 1
sub ebp, eax
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0xc]
mov ecx, edx
sub ebx, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x20], ebp
shr ecx, 0x1f
dec ecx
mov dword [esp + 0x24], ebx
add dword [edi], ecx
mov ecx, 1
call fcn.100b92c0
or al, 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x3c]
mov edx, eax
and eax, 0xf
shl edx, 4
shl eax, 1
mov ecx, dword [edx + esi + 0x158]
lea edi, [edx + esi + 0x158]
test ecx, ecx
jne 0x10018d82
mov ecx, 1
jmp 0x10018d8c
mov ecx, dword [edi + 0x28]
add edi, 0x28
cmp eax, ecx
mov ebp, 0xa
jb 0x10018c9e
mov ecx, edi
mov edi, dword [ecx + 4]
add ecx, 4
inc ebp
cmp eax, edi
jae 0x10018c93
add edx, ebp
lea edi, [esi + 0x1b58]
mov ecx, edx
and edx, 7
shr ecx, 3
sub ebx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + ebp*4 - 4]
sub eax, ecx
mov ecx, 0xf
sub ecx, ebp
shr eax, cl
mov ecx, dword [edi + ebp*4 + 0x44]
add eax, ecx
xor ebx, ebx
mov bx, word [edi + eax*2 + 0x484]
mov ecx, dword [esi + ebx*4 + 0x21e4]
inc ecx
mov dword [esi + ebx*4 + 0x21e4], ecx
mov eax, dword [esi + 0x21dc]
dec eax
mov dword [esi + 0x21dc], eax
jne 0x10018d54
mov edx, dword [edi + 0x688]
lea ebp, [edi + 0x68c]
push 0xf
lea eax, [esp + 0x5e0]
push edx
push eax
lea edx, [esp + 0xae8]
mov ecx, ebp
call fcn.100290e0
mov ecx, dword [edi + 0x688]
lea edx, [esp + 0x5dc]
push ecx
push edx
mov ecx, edi
call fcn.10019ff0
mov dword [edi + 0x684], 0x400
mov edi, dword [edi + 0x688]
test edi, edi
jbe 0x10018d54
mov eax, ebp
mov ecx, dword [eax]
add eax, 4
shr ecx, 1
inc ecx
dec edi
mov dword [eax - 4], ecx
jne 0x10018d46
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp eax, edx
jb 0x10019d17
mov eax, dword [esi]
mov ecx, dword [esp + 0x27e0]
mov dword [esp + 0x1c], 0
mov byte [eax + ecx], bl
mov eax, dword [esi]
inc eax
mov dword [esi], eax
jmp 0x10019cb2
cmp ecx, 0x40
jne 0x10018d8c
mov ecx, 0x3f
cmp ebp, 0xffff
ja 0x10018db4
mov edx, dword [esp + 0x28]
shl ebp, 0x10
mov dword [esp + 0x20], ebp
xor ebp, ebp
mov bp, word [edx]
shl ebx, 0x10
or ebx, ebp
add edx, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
mov ebp, dword [esp + 0x20]
shr ebp, 6
imul ebp, ecx
cmp ebx, ebp
jae 0x10018e0c
mov dword [esi + 0x3c], eax
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov ecx, edx
shr ecx, 0x1f
add dword [edi], ecx
mov ecx, 1
mov dword [esp + 0x20], ebp
call fcn.100b92c0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x40]
mov edx, eax
and eax, 0x1f
shl edx, 4
shl eax, 1
lea edi, [edx + esi + 0x358]
mov edx, dword [edx + esi + 0x358]
test edx, edx
jne 0x10018e76
mov edx, 1
jmp 0x10018e80
mov ecx, dword [esp + 0x20]
or al, 1
sub ecx, ebp
mov dword [esi + 0x3c], eax
mov edx, dword [edi + 0xc]
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 8]
mov ecx, edx
shr ecx, 0x1f
sub ebx, ebp
mov ebp, dword [edi]
dec ecx
mov dword [esp + 0x24], ebx
add ebp, ecx
mov ecx, 1
mov dword [edi], ebp
call fcn.100b92c0
or al, 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x4c]
mov ecx, eax
and eax, 0x1f
shl ecx, 4
shl eax, 1
mov edx, dword [ecx + esi + 0xf58]
lea edi, [ecx + esi + 0xf58]
test edx, edx
mov dword [esp + 0x10], edx
jne 0x100194f0
mov edx, 1
jmp 0x100194fa
cmp edx, 0x40
jne 0x10018e80
mov edx, 0x3f
cmp ebp, 0xffff
ja 0x10018ea8
mov ecx, dword [esp + 0x28]
shl ebp, 0x10
mov dword [esp + 0x20], ebp
xor ebp, ebp
mov bp, word [ecx]
shl ebx, 0x10
or ebx, ebp
add ecx, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
shr ecx, 6
imul ecx, edx
cmp ebx, ecx
jae 0x10018f4d
mov dword [esi + 0x40], eax
mov edx, dword [edi + 0xc]
mov ebx, dword [edi]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], ecx
mov ecx, edx
shr ecx, 0x1f
add ebx, ecx
mov ecx, 1
mov dword [edi], ebx
call fcn.100b92c0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov ebx, dword [esp + 0x14]
xor eax, eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov ah, byte [ebx - 1]
mov cl, byte [ebx - 3]
mov al, byte [ebx - 2]
lea ebp, [esi + 0x25e4]
shl eax, 8
or eax, ecx
mov ecx, 9
sub ecx, edx
shr eax, cl
and eax, 0x7fff
mov edi, eax
mov eax, dword [ebp + 0x24]
cmp edi, eax
jae 0x10018fac
shr edi, 6
xor eax, eax
mov ax, word [ebp + edi*2 + 0x84]
mov ecx, eax
and ecx, 0xf
add edx, ecx
mov ecx, edx
and edx, 7
shr ecx, 3
sub ebx, ecx
mov dword [esp + 0x18], edx
shr eax, 4
mov dword [esp + 0x14], ebx
mov ebx, eax
jmp 0x10018ffa
mov ebp, dword [esp + 0x20]
or al, 1
mov dword [esi + 0x40], eax
mov edx, dword [edi + 0xc]
sub ebp, ecx
sub ebx, ecx
mov eax, dword [edi + 8]
mov ecx, edx
shr ecx, 0x1f
dec ecx
mov dword [esp + 0x24], ebx
add dword [edi], ecx
mov ecx, 1
call fcn.100b92c0
or al, 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x44]
mov edx, eax
and eax, 0x1f
shl edx, 4
shl eax, 1
lea edi, [edx + esi + 0x758]
mov ecx, eax
mov edx, dword [edi]
test edx, edx
mov dword [esp + 0x10], edx
jne 0x1001911b
mov edx, 1
jmp 0x10019125
mov eax, dword [ebp + 0x28]
add ebp, 0x28
cmp edi, eax
mov ebx, 0xa
jb 0x10018fc8
mov eax, ebp
mov ecx, dword [eax + 4]
add eax, 4
inc ebx
cmp edi, ecx
jae 0x10018fbd
push ebx
lea ecx, [esp + 0x18]
call fcn.10019d30
mov ecx, dword [esi + ebx*4 + 0x25e0]
lea ebp, [esi + 0x25e4]
sub edi, ecx
mov ecx, 0xf
mov eax, dword [ebp + ebx*4 + 0x44]
sub ecx, ebx
shr edi, cl
add edi, eax
xor ebx, ebx
mov bx, word [ebp + edi*2 + 0x484]
mov ecx, dword [esi + ebx*4 + 0x30b0]
inc ecx
mov dword [esi + ebx*4 + 0x30b0], ecx
mov eax, dword [esi + 0x30a8]
dec eax
mov dword [esi + 0x30a8], eax
jne 0x10019077
mov edx, dword [ebp + 0xac8]
lea edi, [ebp + 0xacc]
push 0xf
lea eax, [esp + 0x2c0]
push edx
push eax
lea edx, [esp + 0xee8]
mov ecx, edi
call fcn.100290e0
mov ecx, dword [ebp + 0xac8]
lea edx, [esp + 0x2bc]
push ecx
push edx
mov ecx, ebp
call fcn.10019ff0
mov dword [ebp + 0xac4], 0x400
mov ebp, dword [ebp + 0xac8]
test ebp, ebp
jbe 0x10019077
mov eax, edi
mov ecx, dword [eax]
add eax, 4
shr ecx, 1
inc ecx
dec ebp
mov dword [eax - 4], ecx
jne 0x10019069
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp edi, eax
jb 0x10019d17
xor ecx, ecx
mov edx, edi
mov cl, byte [ebx + 0x100e3258]
mov ebx, dword [ebx*4 + 0x100e3650]
sub edx, eax
mov eax, ecx
shr eax, 3
cmp edx, eax
jb 0x10019d17
mov eax, dword [esp + 0x18]
mov edx, 1
mov edi, dword [edi - 4]
add eax, ecx
shl edx, cl
dec edx
cmp eax, 0x20
mov dword [esp + 0x10], edx
jbe 0x100190dd
mov ebp, dword [esp + 0x14]
mov cl, 0x28
xor edx, edx
sub cl, al
mov dl, byte [ebp - 5]
shr edx, cl
lea ecx, [eax - 0x20]
shl edi, cl
or edi, edx
mov edx, dword [esp + 0x10]
jmp 0x100190e6
mov ecx, 0x20
sub ecx, eax
shr edi, cl
mov ebp, dword [esp + 0x14]
mov ecx, eax
shr ecx, 3
and eax, 7
and edi, edx
mov edx, dword [esi + 0xc]
sub ebp, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
add ebx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
jmp 0x100192d3
cmp edx, 0x40
jne 0x10019129
mov edx, 0x3f
mov dword [esp + 0x10], edx
cmp ebp, 0xffff
ja 0x10019151
mov eax, dword [esp + 0x28]
xor edx, edx
shl ebx, 0x10
mov dx, word [eax]
shl ebp, 0x10
or ebx, edx
mov edx, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov eax, ebp
shr eax, 6
imul eax, edx
cmp ebx, eax
jae 0x1001919e
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 0xc]
mov ebx, dword [edi]
mov ecx, edx
shr ecx, 0x1f
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
add ebx, ecx
mov ecx, 1
mov dword [edi], ebx
call fcn.100b92c0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
cmp eax, 1
mov dword [edi + 0xc], edx
je 0x1001926b
mov ebx, dword [esi + 4]
mov dword [esp + 0x1c], ebx
jmp 0x100192d6
or ecx, 1
sub ebp, eax
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 0xc]
mov ecx, edx
sub ebx, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x24], ebx
shr ecx, 0x1f
dec ecx
add dword [edi], ecx
mov ecx, 1
call fcn.100b92c0
or al, 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x48]
mov ecx, eax
and eax, 0x1f
shl ecx, 4
shl eax, 1
mov edx, dword [ecx + esi + 0xb58]
lea edi, [ecx + esi + 0xb58]
test edx, edx
mov ecx, eax
mov dword [esp + 0x10], edx
jne 0x100191f8
mov edx, 1
jmp 0x10019202
cmp edx, 0x40
jne 0x10019206
mov edx, 0x3f
mov dword [esp + 0x10], edx
cmp ebp, 0xffff
ja 0x1001922e
mov eax, dword [esp + 0x28]
xor edx, edx
shl ebx, 0x10
mov dx, word [eax]
shl ebp, 0x10
or ebx, edx
mov edx, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov eax, ebp
shr eax, 6
imul eax, edx
cmp ebx, eax
jae 0x1001927a
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 0xc]
mov ebx, dword [edi]
mov ecx, edx
shr ecx, 0x1f
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
add ebx, ecx
mov ecx, 1
mov dword [edi], ebx
call fcn.100b92c0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
cmp eax, 1
mov dword [edi + 0xc], edx
je 0x100192a5
mov ebx, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [esp + 0x1c], ebx
mov dword [esi + 8], edx
jmp 0x100192d3
or ecx, 1
sub ebp, eax
sub ebx, eax
mov dword [esi + 0x48], ecx
push 1
mov ecx, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
call fcn.10019d50
cmp dword [esp + 0x1c], 1
je 0x100192ba
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
jmp 0x100192c7
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
jmp 0x100192d3
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x10], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
xor edx, edx
xor eax, eax
mov dh, byte [edi - 1]
mov al, byte [edi - 3]
mov dl, byte [edi - 2]
mov ecx, 9
shl edx, 8
or edx, eax
sub ecx, ebp
mov eax, dword [esi + 0x3d4c]
lea ebp, [esi + 0x3d2c]
shr edx, cl
and edx, 0x7fff
mov edi, edx
cmp edi, eax
jae 0x10019348
mov ecx, dword [esp + 0x18]
xor eax, eax
shr edi, 7
mov ax, word [ebp + edi*2 + 0x84]
mov edi, dword [esp + 0x14]
mov edx, eax
and edx, 0xf
add ecx, edx
mov edx, ecx
and ecx, 7
shr edx, 3
sub edi, edx
mov dword [esp + 0x18], ecx
shr eax, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
jmp 0x100193a7
mov eax, dword [ebp + 0x24]
add ebp, 0x24
mov ecx, 9
cmp edi, eax
mov dword [esp + 0x10], ecx
jb 0x1001936c
mov eax, ebp
mov edx, dword [eax + 4]
add eax, 4
inc ecx
cmp edi, edx
jae 0x1001935d
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.10019d30
mov eax, dword [esp + 0x10]
lea ebp, [esi + 0x3d2c]
mov ecx, dword [ebp + eax*4 - 4]
sub edi, ecx
mov ecx, 0xf
sub ecx, eax
shr edi, cl
mov ecx, dword [ebp + eax*4 + 0x44]
add edi, ecx
xor eax, eax
mov ax, word [ebp + edi*2 + 0x284]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + eax*4 + 0x4024]
inc ecx
mov dword [esi + eax*4 + 0x4024], ecx
mov eax, dword [esi + 0x401c]
dec eax
mov dword [esi + 0x401c], eax
jne 0x10019424
mov ecx, dword [ebp + 0x2f4]
push 0xf
lea edx, [esp + 0xb0]
lea edi, [ebp + 0x2f8]
push ecx
push edx
lea edx, [esp + 0x1f0]
mov ecx, edi
call fcn.100290e0
mov eax, dword [ebp + 0x2f4]
lea ecx, [esp + 0xac]
push eax
push ecx
mov ecx, ebp
call fcn.1001a150
mov dword [ebp + 0x2f0], 0x200
mov ebp, dword [ebp + 0x2f4]
test ebp, ebp
jbe 0x10019424
mov eax, edi
mov edx, dword [eax]
add eax, 4
shr edx, 1
inc edx
dec ebp
mov dword [eax - 4], edx
jne 0x10019416
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
cmp edx, ebp
jb 0x10019d17
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [edi*4 + 0x100e3578]
mov cl, byte [edi + 0x100c77cc]
mov dword [esp + 0x10], eax
mov eax, edx
mov edi, ecx
sub eax, ebp
shr edi, 3
cmp eax, edi
jb 0x10019d17
mov eax, dword [esp + 0x18]
mov ebp, 1
mov edi, dword [edx - 4]
add eax, ecx
shl ebp, cl
dec ebp
cmp eax, 0x20
jbe 0x1001948a
mov cl, 0x28
xor ebx, ebx
mov bl, byte [edx - 5]
sub cl, al
shr ebx, cl
lea ecx, [eax - 0x20]
shl edi, cl
or edi, ebx
mov ebx, dword [esp + 0x1c]
jmp 0x10019493
mov ecx, 0x20
sub ecx, eax
shr edi, cl
mov ecx, eax
and eax, 7
shr ecx, 3
sub edx, ecx
mov ecx, dword [esp + 0x27e4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
and edi, ebp
sub ecx, eax
add edx, edi
cmp edx, ecx
ja 0x10019d17
cmp ebx, eax
ja 0x10019d17
mov ecx, dword [esp + 0x27e0]
lea edi, [eax + ecx]
mov ecx, edi
sub ecx, ebx
add eax, edx
mov dword [esi], eax
mov al, byte [ecx]
mov byte [edi], al
inc edi
inc ecx
dec edx
jne 0x100194da
mov dword [esp + 0x1c], 1
jmp 0x10019cb2
cmp edx, 0x40
jne 0x100194fe
mov edx, 0x3f
mov dword [esp + 0x10], edx
mov ebp, dword [esp + 0x20]
cmp ebp, 0xffff
ja 0x1001952a
mov ecx, dword [esp + 0x28]
xor edx, edx
shl ebx, 0x10
mov dx, word [ecx]
shl ebp, 0x10
or ebx, edx
mov edx, dword [esp + 0x10]
add ecx, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov ecx, ebp
shr ecx, 6
imul ecx, edx
cmp ebx, ecx
jae 0x100195cb
mov dword [esi + 0x4c], eax
mov edx, dword [edi + 0xc]
mov ebx, dword [edi]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], ecx
mov ecx, edx
shr ecx, 0x1f
add ebx, ecx
mov ecx, 1
mov dword [edi], ebx
call fcn.100b92c0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov ebx, dword [esp + 0x14]
xor eax, eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov ah, byte [ebx - 1]
mov cl, byte [ebx - 3]
mov al, byte [ebx - 2]
lea ebp, [esi + 0x40fc]
shl eax, 8
or eax, ecx
mov ecx, 9
sub ecx, edx
shr eax, cl
and eax, 0x7fff
mov edi, eax
mov eax, dword [ebp + 0x18]
cmp edi, eax
jae 0x1001960f
shr edi, 9
xor eax, eax
mov ax, word [ebp + edi*2 + 0x84]
mov ecx, eax
and ecx, 0xf
add edx, ecx
mov ecx, edx
and edx, 7
shr ecx, 3
sub ebx, ecx
mov dword [esp + 0x18], edx
shr eax, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
jmp 0x10019661
sub ebp, ecx
sub ebx, ecx
or al, 1
push 1
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esi + 0x4c], eax
call fcn.10019d50
mov eax, dword [esi + 0x50]
mov edx, eax
and eax, 0x1f
shl edx, 4
shl eax, 1
lea edi, [edx + esi + 0x1358]
mov ecx, eax
mov edx, dword [edi]
test edx, edx
mov dword [esp + 0x10], edx
jne 0x100198d2
mov edx, 1
jmp 0x100198dc
mov eax, dword [ebp + 0x1c]
add ebp, 0x1c
cmp edi, eax
mov ebx, 7
jb 0x1001962b
mov eax, ebp
mov ecx, dword [eax + 4]
add eax, 4
inc ebx
cmp edi, ecx
jae 0x10019620
push ebx
lea ecx, [esp + 0x18]
call fcn.10019d30
mov ecx, dword [esi + ebx*4 + 0x40f8]
lea ebp, [esi + 0x40fc]
sub edi, ecx
mov ecx, 0xf
mov eax, dword [ebp + ebx*4 + 0x44]
sub ecx, ebx
shr edi, cl
add edi, eax
xor eax, eax
mov ax, word [ebp + edi*2 + 0x104]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + eax*4 + 0x4218]
inc ecx
mov dword [esi + eax*4 + 0x4218], ecx
mov eax, dword [esi + 0x4210]
dec eax
mov dword [esi + 0x4210], eax
jne 0x100196d5
mov edx, dword [ebp + 0x118]
lea edi, [ebp + 0x11c]
push 0xf
lea eax, [esp + 0x38]
push edx
push eax
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.100290e0
mov ecx, dword [ebp + 0x118]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebp
call fcn.1001a2b0
mov dword [ebp + 0x114], 0x200
mov ebp, dword [ebp + 0x118]
test ebp, ebp
jbe 0x100196d5
mov eax, edi
mov ecx, dword [eax]
add eax, 4
shr ecx, 1
inc ecx
dec ebp
mov dword [eax - 4], ecx
jne 0x100196c7
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp ebx, eax
jb 0x10019d17
xor eax, eax
xor edx, edx
mov ah, byte [ebx - 1]
mov dl, byte [ebx - 3]
mov al, byte [ebx - 2]
mov ecx, 9
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x18]
sub ecx, edx
lea edi, [esi + 0x4238]
shr eax, cl
mov ecx, dword [edi + 0x24]
and eax, 0x7fff
cmp eax, ecx
jae 0x10019743
shr eax, 6
xor ecx, ecx
mov cx, word [edi + eax*2 + 0x84]
mov eax, ecx
and eax, 0xf
add edx, eax
mov eax, edx
and edx, 7
shr eax, 3
sub ebx, eax
mov dword [esp + 0x18], edx
shr ecx, 4
mov dword [esp + 0x14], ebx
mov ebx, ecx
jmp 0x10019798
mov ecx, dword [edi + 0x28]
add edi, 0x28
cmp eax, ecx
mov ebp, 0xa
jb 0x1001975f
mov ecx, edi
mov edi, dword [ecx + 4]
add ecx, 4
inc ebp
cmp eax, edi
jae 0x10019754
add edx, ebp
lea edi, [esi + 0x4238]
mov ecx, edx
and edx, 7
shr ecx, 3
sub ebx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + ebp*4 - 4]
sub eax, ecx
mov ecx, 0xf
sub ecx, ebp
shr eax, cl
mov ecx, dword [edi + ebp*4 + 0x44]
add eax, ecx
xor ebx, ebx
mov bx, word [edi + eax*2 + 0x484]
mov ecx, dword [esi + ebx*4 + 0x4d04]
inc ecx
mov dword [esi + ebx*4 + 0x4d04], ecx
mov eax, dword [esi + 0x4cfc]
dec eax
mov dword [esi + 0x4cfc], eax
jne 0x10019815
mov edx, dword [edi + 0xac8]
lea ebp, [edi + 0xacc]
push 0xf
lea eax, [esp + 0x6e0]
push edx
push eax
lea edx, [esp + 0x1b64]
mov ecx, ebp
call fcn.100290e0
mov ecx, dword [edi + 0xac8]
lea edx, [esp + 0x6dc]
push ecx
push edx
mov ecx, edi
call fcn.10019ff0
mov dword [edi + 0xac4], 0x400
mov edi, dword [edi + 0xac8]
test edi, edi
jbe 0x10019815
mov eax, ebp
mov ecx, dword [eax]
add eax, 4
shr ecx, 1
inc ecx
dec edi
mov dword [eax - 4], ecx
jne 0x10019807
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp ebp, eax
jb 0x10019d17
xor ecx, ecx
mov edi, dword [ebx*4 + 0x100e3650]
mov cl, byte [ebx + 0x100e3258]
mov edx, ebp
sub edx, eax
mov eax, ecx
shr eax, 3
cmp edx, eax
jb 0x10019d17
mov edx, dword [esp + 0x18]
mov ebx, 1
shl ebx, cl
lea eax, [edx + ecx]
mov edx, dword [ebp - 4]
dec ebx
cmp eax, 0x20
mov dword [esp + 0x10], ebx
jbe 0x10019878
mov cl, 0x28
xor ebx, ebx
mov bl, byte [ebp - 5]
sub cl, al
shr ebx, cl
lea ecx, [eax - 0x20]
shl edx, cl
or edx, ebx
mov ebx, dword [esp + 0x10]
jmp 0x10019881
mov ecx, 0x20
sub ecx, eax
shr edx, cl
mov ecx, eax
and edx, ebx
shr ecx, 3
add edi, edx
mov edx, dword [esi + 0x28]
sub ebp, ecx
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x28], edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x1c]
xor edx, edx
xor ebx, ebx
and eax, 7
or edx, edi
or ecx, ebx
mov dword [esi + 0x18], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esi + 0x1c], ecx
jmp 0x10019aa1
cmp edx, 0x40
jne 0x100198e0
mov edx, 0x3f
mov dword [esp + 0x10], edx
cmp ebp, 0xffff
ja 0x10019908
mov eax, dword [esp + 0x28]
xor edx, edx
shl ebx, 0x10
mov dx, word [eax]
shl ebp, 0x10
or ebx, edx
mov edx, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov eax, ebp
shr eax, 6
imul eax, edx
cmp ebx, eax
jae 0x10019954
mov dword [esi + 0x50], ecx
mov edx, dword [edi + 0xc]
mov ebx, dword [edi]
mov ecx, edx
shr ecx, 0x1f
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
add ebx, ecx
mov ecx, 1
mov dword [edi], ebx
call fcn.100b92c0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
cmp eax, 2
mov dword [edi + 0xc], edx
jne 0x10019a83
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
jmp 0x10019a71
or ecx, 1
sub ebp, eax
mov dword [esi + 0x50], ecx
mov edx, dword [edi + 0xc]
mov ecx, edx
sub ebx, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x24], ebx
shr ecx, 0x1f
dec ecx
add dword [edi], ecx
mov ecx, 1
call fcn.100b92c0
or al, 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x54]
mov ecx, eax
and eax, 0x1f
shl ecx, 4
shl eax, 1
mov edx, dword [ecx + esi + 0x1758]
lea edi, [ecx + esi + 0x1758]
test edx, edx
mov ecx, eax
mov dword [esp + 0x10], edx
jne 0x100199ae
mov edx, 1
jmp 0x100199b8
cmp edx, 0x40
jne 0x100199bc
mov edx, 0x3f
mov dword [esp + 0x10], edx
cmp ebp, 0xffff
ja 0x100199e4
mov eax, dword [esp + 0x28]
xor edx, edx
shl ebx, 0x10
mov dx, word [eax]
shl ebp, 0x10
or ebx, edx
mov edx, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov eax, ebp
shr eax, 6
imul eax, edx
cmp ebx, eax
jae 0x10019a29
mov dword [esi + 0x54], ecx
mov edx, dword [edi + 0xc]
mov ebx, dword [edi]
mov ecx, edx
shr ecx, 0x1f
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
add ebx, ecx
mov ecx, 1
mov dword [edi], ebx
call fcn.100b92c0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
cmp eax, 2
mov dword [edi + 0xc], edx
je 0x10019a4b
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
jmp 0x10019a71
or ecx, 1
sub ebp, eax
sub ebx, eax
mov dword [esi + 0x54], ecx
push 1
mov ecx, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
call fcn.10019d50
cmp dword [esp + 0x1c], 2
je 0x10019a53
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
jmp 0x10019a65
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x34], edx
mov edx, dword [esi + 0x20]
mov dword [esi + 0x28], edx
mov edx, dword [esi + 0x24]
mov dword [esi + 0x2c], edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x1c], ecx
mov edi, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ecx, 0x20
mov eax, edi
call fcn.100b8c90
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dh, byte [ebp - 1]
lea ebx, [esi + 0x3d2c]
mov dl, byte [ebp - 2]
shl edi, cl
xor ecx, ecx
mov cl, byte [ebp - 3]
shl edx, 8
or edx, ecx
mov ecx, 9
sub ecx, eax
mov dword [esp + 0x2c], edi
shr edx, cl
mov ecx, dword [ebx + 0x20]
and edx, 0x7fff
mov edi, edx
cmp edi, ecx
jae 0x10019b08
shr edi, 7
xor ecx, ecx
mov cx, word [ebx + edi*2 + 0x84]
mov edx, ecx
and edx, 0xf
add eax, edx
mov edx, eax
and eax, 7
shr edx, 3
sub ebp, edx
mov dword [esp + 0x18], eax
shr ecx, 4
mov dword [esp + 0x14], ebp
mov ebp, ecx
jmp 0x10019b54
mov ecx, dword [ebx + 0x24]
lea eax, [ebx + 0x24]
cmp edi, ecx
mov ebp, 9
jb 0x10019b22
mov ecx, dword [eax + 4]
add eax, 4
inc ebp
cmp edi, ecx
jae 0x10019b17
push ebp
lea ecx, [esp + 0x18]
call fcn.10019d30
mov ecx, dword [esi + ebp*4 + 0x3d28]
lea ebx, [esi + 0x3d2c]
sub edi, ecx
mov ecx, 0xf
mov eax, dword [ebx + ebp*4 + 0x44]
sub ecx, ebp
shr edi, cl
add edi, eax
xor ebp, ebp
mov bp, word [ebx + edi*2 + 0x284]
mov ecx, dword [esi + ebp*4 + 0x4024]
inc ecx
mov dword [esi + ebp*4 + 0x4024], ecx
mov eax, dword [esi + 0x401c]
dec eax
mov dword [esi + 0x401c], eax
jne 0x10019bcb
mov eax, dword [ebx + 0x2f4]
push 0xf
lea ecx, [esp + 0x78]
lea edi, [ebx + 0x2f8]
push eax
push ecx
lea edx, [esp + 0xf0]
mov ecx, edi
call fcn.100290e0
mov edx, dword [ebx + 0x2f4]
lea eax, [esp + 0x74]
push edx
push eax
mov ecx, ebx
call fcn.1001a150
mov dword [ebx + 0x2f0], 0x200
mov ebx, dword [ebx + 0x2f4]
test ebx, ebx
jbe 0x10019bcb
mov eax, edi
mov ecx, dword [eax]
add eax, 4
shr ecx, 1
inc ecx
dec ebx
mov dword [eax - 4], ecx
jne 0x10019bbd
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp edx, eax
jb 0x10019d17
mov ecx, dword [ebp*4 + 0x100e3578]
mov edi, edx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov cl, byte [ebp + 0x100c77cc]
sub edi, eax
mov eax, ecx
shr eax, 3
cmp edi, eax
jb 0x10019d17
mov eax, dword [esp + 0x18]
mov ebp, 1
mov edi, dword [edx - 4]
add eax, ecx
shl ebp, cl
dec ebp
cmp eax, 0x20
jbe 0x10019c29
mov cl, 0x28
xor ebx, ebx
mov bl, byte [edx - 5]
sub cl, al
shr ebx, cl
lea ecx, [eax - 0x20]
shl edi, cl
or edi, ebx
jmp 0x10019c32
mov ecx, 0x20
sub ecx, eax
shr edi, cl
mov ecx, eax
mov ebx, dword [esi]
shr ecx, 3
sub edx, ecx
and edi, ebp
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
add edx, edi
and eax, 7
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x27e4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
sub edx, ebx
cmp eax, edx
ja 0x10019d17
mov ebp, dword [esp + 0x2c]
cmp ebp, ebx
ja 0x10019d17
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x27e0]
mov edx, 1
mov eax, ebx
shl edx, cl
sub eax, edx
add eax, edi
mov edi, eax
sub edi, ebp
mov ebp, dword [esp + 0x10]
add ebx, ebp
mov dword [esi], ebx
mov cl, byte [edi + edx]
mov bl, byte [edi]
sub cl, bl
mov bl, byte [eax]
add cl, bl
inc edi
mov byte [eax + edx], cl
inc eax
dec ebp
jne 0x10019c97
mov dword [esp + 0x1c], 2
mov edx, dword [esp + 0x27e4]
mov eax, dword [esi]
cmp eax, edx
jb 0x10018b1c
cmp dword [esp + 0x20], 0xffff
ja 0x10019cea
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
xor edx, edx
mov dx, word [ecx]
shl eax, 0x10
or eax, edx
add ecx, 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10019d17
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
ja 0x10019d17
jne 0x10019d08
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10019d17
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x27c4
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x27c4
ret 0x10