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

Disassembly:
sub esp, 0x50
push ebx
push ebp
imul ebp, dword [esp + 0x68], 0x2c
mov ebx, ecx
add ebp, ebx
mov dword [esp + 0x14], edx
push esi
push edi
mov eax, dword [ebx + 0xa94]
mov esi, 0xb
mov dl, byte [ebp + 0x10df8]
mov ecx, dword [ebp + 0x10e08]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0xa98]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x54], eax
test dl, dl
je 0x10158695
dec ecx
cmp byte [ebp + 0x10df9], 0
je 0x10158673
imul eax, dword [ebp + 0x10dfc], 0x2c
cmp dword [ebp + 0x10e00], 4
mov eax, dword [eax + ebx + 0x10df4]
jae 0x10158661
cmp eax, 7
mov edi, esi
mov eax, 8
cmovl edi, eax
jmp 0x1015867d
cmp eax, 7
mov edi, 0xa
mov eax, 7
cmovl edi, eax
jmp 0x1015867d
imul eax, ecx, 0x2c
mov edi, dword [eax + ebx + 0x10df4]
cmp edi, 3
jg 0x10158686
xor edi, edi
jmp 0x1015869f
cmp edi, 9
jg 0x10158690
sub edi, 3
jmp 0x1015869f
sub edi, 6
jmp 0x1015869f
imul eax, ecx, 0x2c
mov edi, dword [eax + ebx + 0x10df4]
mov eax, dword [esp + 0x70]
dec eax
cmp ecx, eax
jne 0x101586f6
cmp dword [ebp + 0x10e0c], 0
jne 0x101586c9
xor eax, eax
cmp edi, 7
setge al
lea edi, [eax*2 + 9]
mov dword [esp + 0x14], edi
jmp 0x101587af
cmp edi, 3
jg 0x101586d9
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x101587af
cmp edi, 9
jg 0x101586ea
sub edi, 3
mov dword [esp + 0x14], edi
jmp 0x101587af
sub edi, 6
mov dword [esp + 0x14], edi
jmp 0x101587af
test dl, dl
je 0x1015872b
cmp byte [ebp + 0x10df9], 0
je 0x1015872b
mov edx, dword [ebp + 0x10e00]
cmp edi, 7
mov ecx, dword [ebp + 0x10dfc]
mov eax, 8
cmovl esi, eax
mov edi, esi
mov dword [esp + 0x14], edi
cmp edx, 4
jae 0x10158994
jmp 0x10158749
mov edx, dword [ebp + 0x10e0c]
cmp edx, 4
jae 0x1015897e
cmp edi, 7
mov eax, 8
cmovl esi, eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1c]
imul eax, ecx, 0xb
mov dword [esp + 0x44], eax
add eax, edx
mov eax, dword [ebx + eax*4 + 0x10e10]
mov dword [esi], eax
mov eax, 1
mov dword [esp + 0x34], eax
cmp edx, eax
jb 0x1015878e
imul eax, ecx, 0x2c
lea edi, [esi + 4]
lea esi, [ebx + 0x10e10]
mov ecx, edx
add esi, eax
lea eax, [edx + 1]
mov dword [esp + 0x34], eax
rep movsd dword es:[edi], dword [esi]
cmp eax, 4
jae 0x101587ab
mov esi, dword [esp + 0x1c]
lea edi, [esi + eax*4]
mov ecx, 4
mov esi, dword [esp + 0x44]
add esi, 0x4384
add esi, eax
sub ecx, dword [esp + 0x34]
lea esi, [ebx + esi*4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x64]
mov dword [ebp + 0x10df4], edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x10e14], eax
mov eax, dword [edx + 8]
mov dword [ebp + 0x10e18], eax
mov eax, dword [edx + 0xc]
mov dword [ebp + 0x10e1c], eax
mov eax, dword [esp + 0x70]
add eax, 0x623
mov dword [ebp + 0x10e10], ecx
imul eax, eax, 0x2c
mov dl, byte [esi]
mov byte [esp + 0x12], dl
mov eax, dword [eax + ebx]
mov dword [esp + 0x30], eax
mov eax, esi
sub eax, ecx
mov cl, byte [eax - 1]
dec eax
mov byte [esp + 0x13], cl
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0xaa0]
and eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
lea eax, [esi - 1]
mov dword [esp + 0x44], eax
mov eax, edi
shl eax, 4
mov dword [esp + 0x28], eax
add eax, dword [esp + 0x34]
cmp edi, 7
mov dword [esp + 0x2c], eax
movzx esi, word [ebx + eax*2 + 0x6aac]
movzx eax, dl
mov edx, dword [esp + 0x6c]
push eax
movzx eax, cl
mov ecx, ebx
push eax
setge al
movzx eax, al
push eax
mov eax, dword [esp + 0x50]
movzx eax, byte [eax]
push eax
call fcn.10159e80
mov ecx, eax
add esp, 0x10
add ecx, dword [esp + 0x30]
mov eax, esi
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add eax, ecx
mov dword [esp + 0x18], eax
xor al, al
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x70]
add eax, 0x624
imul edx, eax, 0x2c
mov eax, esi
mov esi, dword [esp + 0x70]
add edx, ebx
cmp ecx, dword [edx]
jae 0x101588c7
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 0x10e34], esi
mov dword [ebp + 0x10e38], 0xffffffff
mov byte [ebp + 0x10e24], 0
movzx eax, word [ebx + ecx*2 + 0x6aac]
mov byte [esp + 0x11], 1
movzx eax, ax
xor eax, 0x7f0
shr eax, 4
movzx ecx, byte [eax + 0x10192d20]
lea eax, [ebx + 0x6c2c]
add ecx, dword [esp + 0x30]
lea eax, [eax + edi*2]
mov dword [esp + 0x58], eax
movzx eax, word [eax]
xor eax, 0x7f0
mov dword [esp + 0x5c], ecx
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add eax, ecx
mov cl, byte [esp + 0x12]
mov dword [esp + 0x38], eax
mov ah, byte [esp + 0x13]
cmp ah, cl
jne 0x101589c3
cmp dword [ebp + 0x10e34], esi
jae 0x1015892b
cmp dword [ebp + 0x10e38], 0
je 0x101589c3
movzx eax, word [ebx + edi*2 + 0x6c44]
shr eax, 4
movzx ecx, byte [eax + 0x10192d20]
mov eax, dword [esp + 0x2c]
add ecx, dword [esp + 0x38]
movzx eax, word [ebx + eax*2 + 0x6c8c]
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add eax, ecx
mov cl, byte [esp + 0x12]
cmp eax, dword [edx]
ja 0x101589c9
mov dword [edx], eax
mov al, 1
mov dword [ebp + 0x10e34], esi
mov dword [ebp + 0x10e38], 0
mov byte [ebp + 0x10e24], 0
jmp 0x101589cd
cmp edi, 7
mov eax, 0xa
mov esi, 7
cmovl eax, esi
mov edi, eax
mov dword [esp + 0x14], eax
imul ecx, ecx, 0x2c
lea eax, [edx - 4]
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [ecx + ebx + 0x10e10]
mov dword [edx + 4], eax
mov eax, dword [ecx + ebx + 0x10e14]
mov dword [edx + 8], eax
mov eax, dword [ecx + ebx + 0x10e18]
mov dword [edx + 0xc], eax
jmp 0x101587af
mov al, byte [esp + 0x11]
jmp 0x101589d1
mov al, byte [esp + 0x11]
mov ah, byte [esp + 0x13]
mov esi, dword [esp + 0x78]
cmp esi, 2
jb 0x101592e2
mov ebp, dword [esp + 0x74]
cmp esi, ebp
mov edx, ebp
cmovb edx, esi
mov dword [esp + 0x20], edx
test al, al
jne 0x10158b72
cmp ah, cl
je 0x10158b72
mov edx, dword [esp + 0x40]
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x64]
cmp esi, eax
cmovb eax, esi
push eax
push 1
call fcn.10159f30
mov dword [esp + 0x48], eax
add esp, 8
dec eax
mov dword [esp + 0x3c], eax
cmp eax, 2
jb 0x10158b6e
cmp edi, 3
jg 0x10158a43
mov edx, 0x6c2c
mov ecx, 0x3556
mov ebp, 0x3646
lea edi, [edx + 0x18]
jmp 0x10158a82
mov eax, dword [esp + 0x28]
cmp edi, 9
jg 0x10158a68
lea edx, [edi*2 + 0x6c26]
lea ecx, [eax + 0x3526]
lea ebp, [eax + 0x3616]
lea edi, [edi*2 + 0x6c3e]
jmp 0x10158a82
lea edx, [edi*2 + 0x6c20]
lea ecx, [eax + 0x34f6]
lea ebp, [eax + 0x35e6]
lea edi, [edi*2 + 0x6c38]
mov esi, dword [esp + 0x6c]
inc esi
and esi, dword [ebx + 0xaa0]
lea eax, [ecx + esi]
movzx eax, word [ebx + eax*2]
xor eax, 0x7f0
shr eax, 4
movzx ecx, byte [eax + 0x10192d20]
movzx eax, word [edx + ebx]
add ecx, dword [esp + 0x18]
xor eax, 0x7f0
mov edx, dword [esp + 0x40]
add edx, dword [esp + 0x70]
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
cmp eax, edx
jae 0x10158aff
add eax, 0x623
mov ecx, edx
imul eax, eax, 0x2c
add eax, ebx
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x68], edx
nop dword [eax]
nop dword [eax + eax]
mov dword [eax + 0x2c], 0x40000000
lea eax, [eax + 0x2c]
sub ecx, 1
jne 0x10158af0
lea eax, [esi + ebp]
movzx eax, word [ebx + eax*2]
xor eax, 0x7f0
shr eax, 4
movzx ecx, byte [eax + 0x10192d20]
movzx eax, word [edi + ebx]
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add ecx, eax
imul eax, esi, 0x110
add eax, dword [esp + 0x3c]
add ecx, dword [ebx + eax*4 + 0xbd54]
lea eax, [edx + 0x623]
add ecx, dword [esp + 0x30]
imul eax, eax, 0x2c
cmp ecx, dword [eax + ebx]
jae 0x10158b6e
mov dword [eax + ebx], ecx
mov eax, dword [esp + 0x70]
imul ecx, edx, 0x2c
add ecx, ebx
inc eax
mov dword [ecx + 0x10e08], eax
mov dword [ecx + 0x10e0c], 0
mov word [ecx + 0x10df8], 1
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x64]
mov esi, 2
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebp
jmp 0x10158b94
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, edi
sub ecx, dword [eax + ebp*4]
mov ax, word [edi]
dec ecx
mov dword [esp + 0x3c], ecx
cmp ax, word [ecx]
jne 0x10158f0a
mov esi, 2
cmp edx, esi
jbe 0x10158bfd
sub ecx, edi
nop dword [eax]
lea eax, [esi + edi]
mov edi, dword [eax]
sub edi, dword [ecx + eax]
jne 0x10158bd7
mov edi, dword [esp + 0x64]
add esi, 4
cmp esi, edx
jb 0x10158bc0
jmp 0x10158bfd
movzx ecx, di
lea edx, [esi + 2]
test ecx, ecx
mov eax, edi
cmovne edx, esi
shr eax, 0x10
test ecx, ecx
cmovne eax, edi
lea ecx, [edx + 1]
test al, al
cmovne ecx, edx
mov edx, dword [esp + 0x20]
cmp ecx, edx
cmovb edx, ecx
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
add edi, edx
cmp esi, edi
jae 0x10158c2f
lea eax, [esi + 0x623]
mov dword [esp + 0x68], edi
imul eax, eax, 0x2c
mov ecx, edi
add eax, ebx
sub ecx, esi
nop
mov dword [eax + 0x2c], 0x40000000
lea eax, [eax + 0x2c]
sub ecx, 1
jne 0x10158c20
mov dword [esp + 0x30], edx
test ebp, ebp
jne 0x10158c6c
mov eax, dword [esp + 0x2c]
movzx eax, word [ebx + eax*2 + 0x6c8c]
xor eax, 0x7f0
shr eax, 4
movzx esi, byte [eax + 0x10192d20]
mov eax, dword [esp + 0x14]
movzx eax, word [ebx + eax*2 + 0x6c44]
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add esi, eax
jmp 0x10158ce2
mov ecx, dword [esp + 0x14]
movzx eax, word [ebx + ecx*2 + 0x6c44]
xor eax, 0x7f0
shr eax, 4
movzx esi, byte [eax + 0x10192d20]
cmp ebp, 1
jne 0x10158ca2
movzx eax, word [ebx + ecx*2 + 0x6c5c]
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add esi, eax
jmp 0x10158ce2
movzx ecx, word [ebx + ecx*2 + 0x6c74]
mov eax, 2
sub eax, ebp
shr ecx, 4
shr eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esp + 0x14]
movzx eax, word [ebx + eax*2 + 0x6c5c]
movzx ecx, byte [ecx + 0x10192d20]
xor eax, 0x7f0
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add esi, eax
add esi, ecx
mov eax, dword [esp + 0x38]
imul ecx, dword [esp + 0x34], 0x110
add eax, esi
mov dword [esp + 0x40], eax
lea esi, [ebx + 0xbd54]
lea eax, [edi + 0x623]
mov edi, dword [esp + 0x40]
imul eax, eax, 0x2c
add eax, ebx
mov ebx, dword [esp + 0x70]
add ecx, edx
mov dword [esp + 0x4c], ecx
lea esi, [esi + ecx*4]
mov ecx, dword [esi]
add ecx, edi
cmp ecx, dword [eax]
jae 0x10158d2a
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov byte [eax - 0xc], 0
dec edx
sub esi, 4
sub eax, 0x2c
cmp edx, 2
jae 0x10158d16
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x28], 0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x24]
lea ebp, [ecx + 1]
mov edi, dword [esp + 0x64]
cmove esi, ebp
add edx, ebp
mov dword [esp + 0x18], esi
cmp dword [esp + 0x78], edx
cmovb edx, dword [esp + 0x78]
cmp ebp, edx
jae 0x10158d86
mov esi, dword [esp + 0x3c]
lea ecx, [edi + ebp]
sub esi, edi
mov al, byte [ecx]
cmp al, byte [ecx + esi]
jne 0x10158d7e
inc ebp
inc ecx
cmp ebp, edx
jb 0x10158d71
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
or eax, 0xffffffff
mov dword [esp + 0x50], ebp
sub eax, ecx
add ebp, eax
cmp ebp, 2
jb 0x10159056
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
mov ebx, dword [ebx + 0xaa0]
add edi, ecx
movzx eax, byte [ecx + edx]
push eax
mov eax, dword [esp + 0x40]
movzx eax, byte [ecx + eax]
push eax
movzx eax, byte [ecx + edx - 1]
mov edx, edi
mov ecx, dword [esp + 0x2c]
push 1
push eax
call fcn.10159e80
mov esi, eax
mov edx, ebx
and edx, edi
add esp, 0x10
cmp dword [esp + 0x14], 7
mov eax, 0x35d6
mov ecx, 0x3606
cmovl ecx, eax
mov eax, dword [esp + 0x24]
add edx, ecx
inc edi
and edi, ebx
movzx ecx, word [eax + edx*2]
shr ecx, 4
mov edx, dword [esp + 0x50]
movzx eax, byte [ecx + 0x10192d20]
mov ecx, dword [esp + 0x4c]
add esi, eax
mov eax, dword [esp + 0x24]
mov ebx, eax
add esi, dword [eax + ecx*4 + 0xbd54]
movzx eax, word [ebx + edi*2 + 0x6b4c]
add esi, dword [esp + 0x40]
xor eax, 0x7f0
shr eax, 4
movzx ecx, byte [eax + 0x10192d20]
movzx eax, word [ebx + 0x6c36]
add ecx, esi
mov esi, dword [esp + 0x70]
xor eax, 0x7f0
shr eax, 4
add edx, esi
movzx eax, byte [eax + 0x10192d20]
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
cmp eax, edx
jae 0x10158e7f
add eax, 0x623
mov ecx, edx
imul eax, eax, 0x2c
add eax, ebx
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x68], edx
nop
mov dword [eax + 0x2c], 0x40000000
lea eax, [eax + 0x2c]
sub ecx, 1
jne 0x10158e70
movzx eax, word [ebx + edi*2 + 0x6d2c]
xor eax, 0x7f0
shr eax, 4
movzx ecx, byte [eax + 0x10192d20]
movzx eax, word [ebx + 0x6c4e]
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add ecx, eax
imul eax, edi, 0x110
mov edi, dword [esp + 0x64]
add eax, ebp
mov ebp, dword [esp + 0x28]
add ecx, dword [ebx + eax*4 + 0xbd54]
lea eax, [edx + 0x623]
add ecx, dword [esp + 0x4c]
imul eax, eax, 0x2c
cmp ecx, dword [eax + ebx]
jae 0x10158f06
mov dword [eax + ebx], ecx
mov eax, dword [esp + 0x30]
imul ecx, edx, 0x2c
inc eax
add ecx, ebx
add eax, esi
mov dword [ecx + 0x10e08], eax
mov dword [ecx + 0x10e0c], 0
mov word [ecx + 0x10df8], 0x101
mov dword [ecx + 0x10dfc], esi
mov dword [ecx + 0x10e00], ebp
mov esi, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x28], ebp
cmp ebp, 4
jb 0x10158b90
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
cmp edx, ecx
jbe 0x10158f46
lea eax, [ebx + 0x204]
xor ebp, ebp
mov edx, ecx
cmp ecx, dword [eax]
jbe 0x10158f3a
lea eax, [eax + 8]
inc ebp
cmp ecx, dword [eax]
ja 0x10158f32
mov dword [ebx + ebp*8 + 0x204], ecx
inc ebp
mov dword [esp + 0x48], ebp
cmp edx, esi
jb 0x101592e2
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x70]
add edx, ecx
mov ebp, dword [esp + 0x68]
movzx eax, word [eax]
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add dword [esp + 0x5c], eax
cmp ebp, edx
jae 0x10158fa3
lea eax, [ebp + 0x623]
mov dword [esp + 0x68], edx
imul eax, eax, 0x2c
mov ecx, edx
add eax, ebx
sub ecx, ebp
nop dword [eax]
nop dword [eax + eax]
mov dword [eax + 0x2c], 0x40000000
lea eax, [eax + 0x2c]
sub ecx, 1
jne 0x10158f90
mov ecx, dword [esp + 0x70]
xor edx, edx
lea eax, [ebx + 0x204]
mov dword [esp + 0x30], edx
cmp esi, dword [eax]
jbe 0x10158fbf
lea eax, [eax + 8]
inc edx
cmp esi, dword [eax]
ja 0x10158fb3
mov dword [esp + 0x30], edx
lea eax, [ecx + 0x623]
add eax, esi
lea ebp, [edx*8 + 0x204]
imul edi, eax, 0x2c
add ebp, ebx
imul eax, dword [esp + 0x34], 0x110
mov dword [esp + 0x38], ebp
add edi, ebx
add eax, 0x1d43
add eax, esi
lea eax, [ebx + eax*4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
mov edx, eax
sub edx, dword [esp + 0x74]
add eax, 0xfffffffe
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x74]
sub ecx, edx
mov dword [esp + 0x4c], eax
lea eax, [esi - 2]
mov dword [esp + 0x1c], ecx
shl eax, 7
lea ecx, [edx + 1]
lea edx, [esi - 2]
mov dword [esp + 0x40], ecx
shl edx, 6
mov ecx, dword [ebp + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], ecx
cmp esi, 6
jb 0x10159043
mov edx, 0xc0
mov eax, 0x180
cmp ecx, 0x80
jae 0x1015905f
add eax, ecx
mov edx, dword [ebx + eax*4 + 0x105a0]
jmp 0x101590b5
mov ebp, dword [esp + 0x28]
jmp 0x10158f0a
mov eax, ecx
cmp ecx, 0x80000
jae 0x1015907a
shr eax, 6
movzx eax, byte [eax + 0x10190d20]
add eax, 0x4074
jmp 0x101590a2
cmp ecx, 0x80000000
jae 0x10159093
shr eax, 0x12
movzx eax, byte [eax + 0x10190d20]
add eax, 0x408c
jmp 0x101590a2
shr eax, 0x1e
movzx eax, byte [eax + 0x10190d20]
add eax, 0x40a4
and ecx, 0xf
add eax, edx
mov edx, dword [ebx + ecx*4 + 0x10da8]
add edx, dword [ebx + eax*4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
add eax, edx
add eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
cmp eax, dword [edi]
jae 0x101590dc
mov dword [edi], eax
mov eax, dword [esp + 0x70]
mov dword [edi + 4], eax
lea eax, [ecx + 4]
mov dword [edi + 8], eax
mov byte [edi - 0xc], 0
cmp esi, dword [ebp]
jne 0x101592c2
mov eax, dword [esp + 0x64]
inc esi
sub eax, ecx
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x18]
dec eax
add ecx, dword [esp + 0x40]
mov ebp, esi
cmp dword [esp + 0x78], ecx
mov edx, ecx
mov dword [esp + 0x50], eax
cmovb edx, dword [esp + 0x78]
cmp esi, edx
jae 0x10159129
add ecx, dword [esp + 0x58]
mov esi, eax
sub esi, dword [esp + 0x64]
mov al, byte [ecx]
cmp al, byte [esi + ecx]
jne 0x10159125
inc ebp
inc ecx
cmp ebp, edx
jb 0x10159118
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
mov eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x54], ebp
add ebp, eax
cmp ebp, 2
jb 0x101592a4
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
mov edi, dword [ebx + 0xaa0]
dec edx
add edx, esi
mov esi, edi
movzx eax, byte [eax + ecx + 1]
and esi, edx
push eax
mov eax, dword [esp + 0x54]
movzx eax, byte [eax + ecx]
push eax
mov eax, dword [esp + 0x54]
push 1
movzx eax, byte [ecx + eax + 1]
mov ecx, ebx
push eax
call fcn.10159e80
add esp, 0x10
mov edx, 0x35c6
cmp dword [esp + 0x14], 7
mov ecx, 0x35f6
cmovl ecx, edx
add eax, dword [esp + 0x20]
add ecx, esi
inc esi
and esi, edi
movzx ecx, word [ebx + ecx*2]
shr ecx, 4
movzx edx, byte [ecx + 0x10192d20]
add edx, eax
movzx eax, word [ebx + esi*2 + 0x6b2c]
xor eax, 0x7f0
shr eax, 4
movzx ecx, byte [eax + 0x10192d20]
movzx eax, word [ebx + 0x6c34]
add ecx, edx
mov edx, dword [esp + 0x54]
xor eax, 0x7f0
add edx, dword [esp + 0x70]
shr eax, 4
movzx edi, byte [eax + 0x10192d20]
mov eax, dword [esp + 0x68]
add edi, ecx
cmp eax, edx
jae 0x1015920f
add eax, 0x623
mov ecx, edx
imul eax, eax, 0x2c
add eax, ebx
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x68], edx
nop dword [eax]
mov dword [eax + 0x2c], 0x40000000
lea eax, [eax + 0x2c]
sub ecx, 1
jne 0x10159200
movzx eax, word [ebx + esi*2 + 0x6d0c]
xor eax, 0x7f0
shr eax, 4
movzx ecx, byte [eax + 0x10192d20]
movzx eax, word [ebx + 0x6c4c]
shr eax, 4
movzx eax, byte [eax + 0x10192d20]
add ecx, eax
imul eax, esi, 0x110
mov esi, dword [esp + 0x18]
add eax, ebp
add ecx, dword [ebx + eax*4 + 0xbd54]
lea eax, [edx + 0x623]
imul eax, eax, 0x2c
add ecx, edi
mov edi, dword [esp + 0x2c]
cmp ecx, dword [eax + ebx]
jae 0x101592a8
mov dword [eax + ebx], ecx
mov eax, dword [esp + 0x40]
imul ecx, edx, 0x2c
add eax, esi
add eax, dword [esp + 0x1c]
add ecx, ebx
mov dword [ecx + 0x10e08], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x10dfc], eax
mov eax, dword [esp + 0x3c]
add eax, 4
mov dword [ecx + 0x10e0c], 0
mov word [ecx + 0x10df8], 0x101
mov dword [ecx + 0x10e00], eax
jmp 0x101592a8
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
inc edx
add ebp, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ebp
cmp edx, dword [esp + 0x48]
je 0x101592e2
mov edx, dword [esp + 0x28]
inc esi
mov eax, dword [esp + 0x24]
add edi, 0x2c
add dword [esp + 0x34], 4
add edx, 0x40
mov dword [esp + 0x18], esi
sub eax, 0xffffff80
jmp 0x10159021
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret