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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x64
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x4c], eax
mov ebp, dword [esp + 0x9c]
mov eax, dword [ebx + 8]
mov dword [esp + 0x50], eax
cmp ebp, 1
je 0x679732
cmp ebp, 2
je 0x679728
cmp ebp, 4
je 0x67971e
mov ebx, 1
mov eax, dword [esp + 0x8c]
shl eax, 6
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x94]
cmp ecx, esi
je 0x678860
mov eax, dword [esp + 0x98]
cmp edx, eax
je 0x678860
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4de0]
test esi, esi
mov dword [esp + 0x3c], esi
je 0x678350
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x37c0]
mov dword [esp + 0x48], esi
jmp 0x67835d
mov eax, dword [esp + 0x80]
mov esi, dword [eax]
mov dword [esp + 0x48], esi
cmp ebp, 1
je 0x6789ae
cmp ebp, 2
je 0x678609
cmp ebp, 4
jne 0x6784b9
mov al, byte [esp + 0xa0]
test al, al
je 0x678450
xor eax, eax
xor esi, esi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x44], eax
test edi, edi
mov dword [esp + 0x40], esi
jle 0x678737
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x3c]
mov ebp, esi
mov dword [esp + 0x34], ecx
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x38], ebx
jmp 0x6783c1
mov eax, dword [edi + 0x4de0]
test eax, eax
je 0x6783e0
mov ecx, dword [edi + 0x37cc]
mov edx, esi
shl edx, 4
mov eax, dword [edx + ecx + 4]
imul eax, dword [edx + ecx + 8]
jmp 0x6783fb
mov eax, dword [esp + 0x80]
mov ebx, dword [eax + 0x34]
mov edx, esi
shl edx, 4
lea ecx, [edx + esi*8]
mov eax, dword [ecx + ebx + 4]
imul eax, dword [ecx + ebx + 8]
mov ebx, eax
cmp eax, 1
je 0x678900
lea ebx, [eax - 1]
test eax, eax
je 0x67843d
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
lea esi, [esi]
mov edx, ebp
inc ebp
shl edx, 6
lea eax, [edi + edx*2]
mov dword [esp], eax
call dword [esi + 0x50]
dec ebx
cmp ebx, 0xffffffff
jne 0x678420
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x78]
inc esi
mov eax, dword [esp + 0x48]
cmp esi, eax
jl 0x6783bb
jmp 0x6788bc
xor esi, esi
mov eax, dword [esp + 0x8c]
test eax, eax
jle 0x678737
mov eax, esi
shl eax, 7
mov ebp, dword [esp + 0x50]
add eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, eax
mov esi, esi
lea edi, [edi]
mov dword [esp], ebx
call dword [ebp + 0x50]
add ebx, 0x80
inc esi
cmp esi, edi
jl 0x678490
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
jmp 0x678737
cmp ebp, 8
jne 0x678737
mov al, byte [esp + 0xa0]
test al, al
je 0x6785a0
xor eax, eax
xor esi, esi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x44], eax
test edi, edi
mov dword [esp + 0x40], esi
jle 0x678737
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
mov edi, dword [esp + 0x78]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x40]
jmp 0x67850d
mov eax, dword [edi + 0x4de0]
test eax, eax
je 0x678530
mov ecx, dword [edi + 0x37cc]
mov edx, esi
shl edx, 4
mov eax, dword [edx + ecx + 4]
imul eax, dword [edx + ecx + 8]
jmp 0x67854b
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 0x34]
mov edx, esi
shl edx, 4
lea ecx, [edx + esi*8]
mov eax, dword [ecx + ebp + 4]
imul eax, dword [ecx + ebp + 8]
mov ebp, eax
cmp eax, 1
je 0x6788d8
lea ebp, [eax - 1]
test eax, eax
je 0x67858d
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
lea esi, [esi]
mov edx, ebx
inc ebx
shl edx, 6
lea eax, [edi + edx*2]
mov dword [esp], eax
call dword [esi + 0x54]
dec ebp
cmp ebp, 0xffffffff
jne 0x678570
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x78]
inc esi
mov eax, dword [esp + 0x48]
cmp esi, eax
jl 0x678507
jmp 0x678940
xor edi, edi
mov eax, dword [esp + 0x8c]
test eax, eax
jle 0x678737
mov eax, edi
shl eax, 7
mov ebp, dword [esp + 0x50]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edx
mov esi, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x8c]
mov esi, esi
lea edi, [edi]
mov dword [esp], esi
call dword [ebp + 0x54]
add esi, 0x80
inc edi
cmp edi, ebx
jl 0x6785e0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
jmp 0x678737
mov al, byte [esp + 0xa0]
test al, al
je 0x6786e0
xor eax, eax
xor esi, esi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x44], eax
test edi, edi
mov dword [esp + 0x40], esi
jle 0x678737
mov dword [esp + 0x30], edx
mov esi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov edi, dword [esp + 0x78]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x40]
jmp 0x678652
mov eax, dword [edi + 0x4de0]
test eax, eax
je 0x678670
mov ecx, dword [edi + 0x37cc]
mov edx, esi
shl edx, 4
mov eax, dword [edx + ecx + 4]
imul eax, dword [edx + ecx + 8]
jmp 0x67868b
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 0x34]
mov edx, esi
shl edx, 4
lea ecx, [edx + esi*8]
mov eax, dword [ecx + ebp + 4]
imul eax, dword [ecx + ebp + 8]
mov ebp, eax
cmp eax, 1
je 0x678920
lea ebp, [eax - 1]
test eax, eax
je 0x6786cd
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
lea esi, [esi]
mov edx, ebx
inc ebx
shl edx, 6
lea eax, [edi + edx*2]
mov dword [esp], eax
call dword [esi + 0x4c]
dec ebp
cmp ebp, 0xffffffff
jne 0x6786b0
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x78]
inc esi
mov eax, dword [esp + 0x48]
cmp esi, eax
jl 0x67864c
jmp 0x678992
xor esi, esi
mov eax, dword [esp + 0x8c]
test eax, eax
jle 0x678737
mov eax, esi
shl eax, 7
mov ebp, dword [esp + 0x50]
add eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, eax
mov dword [esp], ebx
call dword [ebp + 0x4c]
add ebx, 0x80
inc esi
cmp esi, edi
jl 0x678713
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4ddc]
test esi, esi
je 0x678860
xor ebx, ebx
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 0x37c0]
test edi, edi
jle 0x678988
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x37cc]
shl ecx, 4
mov esi, dword [esp + 0x94]
mov ebp, esi
shl ebp, 7
mov dword [esp + 0x44], ebp
shl esi, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov ecx, ebx
xor ebp, ebp
mov esi, ecx
shl esi, 4
mov ebx, dword [esi + eax + 8]
test ebx, ebx
jle 0x67897f
mov edx, dword [esi + eax + 4]
lea edi, [ecx + ecx]
mov dword [esp + 0x24], ecx
xor ecx, ecx
test edx, edx
jle 0x678968
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x78]
jmp 0x6787d8
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx + eax + 8]
imul ebx, dword [esp + 0x30]
mov eax, dword [esi + 0x4ddc]
mov ebp, edx
imul ebp, dword [esp + 0x34]
add ebp, dword [eax + edi*2 + 4]
imul edx, dword [esp + 0x44]
add ebx, dword [esp + 0x2c]
imul ebx, edx
add ebp, ebx
mov edx, ecx
shl edx, 4
add ebp, edx
xor ebx, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x4c]
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], 0x10
call dword [0x752b48]
mov eax, dword [esi + 0x37cc]
mov edx, dword [esp + 0x28]
mov edx, dword [edx + eax + 4]
mov ecx, dword [esp + 0x40]
imul ecx, edx
add ebp, ecx
add edi, 0x10
inc ebx
cmp ebx, 8
jl 0x678811
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
inc ecx
cmp ecx, edx
jl 0x6787d0
jmp 0x67895c
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4de8]
cmp esi, 1
je 0x678a37
cmp ebp, 1
je 0x678a19
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov dword [esp], ebp
mov al, byte [esp + 0xa0]
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], al
call fcn.00667c00
xor eax, eax
add esp, 0x64
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x54], ebx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
jmp 0x678737
mov edx, ebx
inc ebx
shl edx, 6
mov eax, dword [esp + 0x4c]
lea ecx, [eax + edx*2]
mov eax, dword [esp + 0x50]
mov dword [esp], ecx
call dword [eax + 0x50]
jmp 0x67858d
mov edx, ebp
inc ebp
shl edx, 6
mov eax, dword [esp + 0x4c]
lea ecx, [eax + edx*2]
mov eax, dword [esp + 0x50]
mov dword [esp], ecx
call dword [eax + 0x4c]
jmp 0x67843d
mov edx, ebx
inc ebx
shl edx, 6
mov eax, dword [esp + 0x4c]
lea ecx, [eax + edx*2]
mov eax, dword [esp + 0x50]
mov dword [esp], ecx
call dword [eax + 0x48]
jmp 0x6786cd
mov dword [esp + 0x54], ebp
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
jmp 0x678737
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esi + eax + 8]
inc ebp
cmp ebp, ebx
jl 0x6787a9
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
mov edi, dword [edx + 0x37c0]
inc ecx
cmp ecx, edi
jl 0x67878b
xor eax, eax
add esp, 0x64
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x54], ebp
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
jmp 0x678737
xor edi, edi
mov eax, dword [esp + 0x8c]
test eax, eax
jle 0x678737
mov eax, edi
shl eax, 7
mov ebp, dword [esp + 0x50]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edx
mov esi, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x8c]
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
call dword [ebp + 0x48]
add esi, 0x80
inc edi
cmp edi, ebx
jl 0x6789f0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
jmp 0x678737
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x50]
call dword [edx + 0xa0]
jmp 0x6788b2
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 0x37b8]
cmp edi, 2
je 0x679360
cmp edi, 2
jne 0x678873
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x37bc]
cmp esi, 2
jne 0x678873
cmp ebp, 1
jne 0x67887c
mov edi, dword [esp + 0x78]
mov eax, dword [edi + 4]
sar eax, 4
mov dword [esp + 0x58], eax
mov esi, dword [edi + 8]
sar esi, 4
mov dword [esp + 0x5c], esi
mov edi, dword [edi + 0x4dec]
cmp edx, dword [edi + 0x10]
je 0x678af4
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov dword [esp + 0x44], eax
mov dword [edi], esi
mov edi, dword [esp + 0x78]
mov esi, dword [edi + 0x4dec]
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x98]
cmp edx, eax
jne 0x678add
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 0x4dec]
mov esi, dword [edi + 0xc]
mov dword [edi + 8], esi
mov edi, dword [eax + 0x4dec]
mov esi, dword [esp + 0x44]
mov dword [edi + 0xc], esi
mov edi, dword [eax + 0x4dec]
jmp 0x678af4
mov edi, dword [esp + 0x78]
mov esi, dword [edi + 0x4dec]
mov eax, dword [esp + 0x44]
mov dword [esi + 8], eax
mov edi, dword [edi + 0x4dec]
mov dword [edi + 0x10], edx
mov eax, dword [esp + 0x94]
cmp ecx, eax
je 0x679112
mov eax, dword [esp + 0x98]
cmp edx, eax
je 0x679112
mov eax, dword [esp + 0x94]
lea esi, [eax - 1]
cmp ecx, esi
mov dword [esp + 0x60], esi
jne 0x678c37
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x4c]
and eax, 0xf
je 0x678c27
mov dword [esp + 0x30], edx
lea esi, [ebp + ebp]
lea eax, [eax + ebp*2 - 1]
cdq
idiv esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 0x4834]
mov dword [esp + 0x24], edi
mov eax, dword [eax + 0x74]
test eax, eax
jne 0x678c0f
xor eax, eax
mov esi, dword [esp + 0x78]
mov edi, dword [esi + 0x54]
mov dword [esp + 0x2c], eax
test edi, edi
mov dword [esp + 0x48], edi
jle 0x678c45
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x37cc]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x44], esi
neg edi
add edi, 8
mov eax, dword [esp + 0x2c]
shl eax, 4
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov eax, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x2c]
lea esi, [eax + ecx]
mov edi, dword [esi + 4]
cmp edi, 1
je 0x679194
shl edi, 7
add ecx, 0x10
inc ebx
imul edi, dword [esi + 8]
add edx, edi
mov esi, dword [esp + 0x48]
cmp ebx, esi
jl 0x678bc8
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x24], esi
jmp 0x678c45
mov eax, dword [esp + 0x80]
mov esi, dword [eax + 0x34]
mov edi, dword [esi + 4]
cmp edi, 1
je 0x679230
jmp 0x678c45
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x24], esi
jmp 0x678c45
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x98]
lea esi, [eax - 1]
cmp edx, esi
mov dword [esp + 0x48], esi
jne 0x678d24
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x50]
and eax, 0xf
je 0x678d24
mov dword [esp + 0x30], edx
lea esi, [ebp + ebp]
lea eax, [eax + ebp*2 - 1]
xor edi, edi
cdq
idiv esi
mov edx, dword [esp + 0x78]
mov edx, dword [edx + 0x54]
mov dword [esp + 0x3c], edi
test edx, edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
jle 0x678d24
mov esi, dword [esp + 0x78]
mov edi, dword [esi + 0x37cc]
add eax, eax
mov dword [esp + 0x44], edi
add eax, eax
add eax, eax
mov esi, eax
neg esi
add esi, 0x40
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x3c]
shl esi, 4
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov ecx, esi
mov dword [esp + 0x38], ebx
mov ebx, edi
lea edi, [ebx + ecx]
mov esi, dword [edi + 8]
cmp esi, 1
je 0x6792ce
mov edi, dword [edi + 4]
shl edi, 7
imul esi, edi
add eax, esi
add ecx, 0x10
inc edx
cmp edx, ebp
jl 0x678ce1
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x54]
lea eax, [esi + esi]
imul eax, ecx
mov dword [esp + 0x2c], eax
lea edi, [esi + esi]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x3c], edi
mov esi, dword [esi + 0x4dec]
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x54]
lea esi, [esi + edi*2]
add esi, eax
lea eax, [edi - 1]
test edi, edi
je 0x678d7e
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x24]
mov esi, esi
movzx ebx, word [ebp]
dec eax
add ebp, 2
mov word [esi], bx
add esi, 2
cmp eax, 0xffffffff
jne 0x678d60
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
test ecx, ecx
jne 0x678de7
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4dec]
mov esi, dword [esi + 8]
add esi, 0xe
mov edi, dword [eax + 0x4834]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x8c]
lea eax, [edi - 1]
test edi, edi
je 0x678de7
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x44]
mov ecx, 7
nop
lea esi, [esi]
movzx ebp, word [ebx]
add ebx, 0x10
dec ecx
mov word [esi], bp
add esi, 0x10
cmp ecx, 0xffffffff
jne 0x678dc0
dec eax
cmp eax, 0xffffffff
jne 0x678db6
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x60]
cmp ecx, eax
jne 0x678e67
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 0x4dec]
mov edi, dword [esp + 0x94]
lea edi, [edi + edi]
mov esi, dword [esi + 0x4834]
add esi, 0xe
imul edi, dword [esp + 0x54]
add edi, dword [eax + 8]
add edi, dword [esp + 0x3c]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x8c]
lea eax, [edi - 1]
test edi, edi
je 0x678e67
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x44]
mov ebp, 7
nop
movzx ecx, word [esi]
add esi, 0x10
dec ebp
mov word [ebx], cx
add ebx, 0x10
cmp ebp, 0xffffffff
jne 0x678e40
dec eax
cmp eax, 0xffffffff
jne 0x678e3a
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
test edx, edx
jne 0x678fb2
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4dec]
mov esi, dword [esi + 4]
add esi, dword [esp + 0x3c]
mov edi, dword [eax + 0x4834]
mov eax, dword [esp + 0x8c]
add esi, dword [esp + 0x2c]
lea eax, [eax - 1]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x8c]
test edi, edi
mov dword [esp + 0x40], eax
je 0x678eea
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
add esi, 0x70
mov ebx, 7
nop
lea esi, [esi]
movzx ebp, word [ecx]
add ecx, 2
dec ebx
mov word [esi], bp
add esi, 2
cmp ebx, 0xffffffff
jne 0x678ec0
add ecx, 0x70
dec eax
cmp eax, 0xffffffff
jne 0x678eb3
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
test ecx, ecx
jne 0x678f44
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4dec]
mov esi, dword [esi + 4]
add esi, 0x7e
mov edi, dword [eax + 0x4834]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x8c]
test edi, edi
je 0x678f44
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x44]
nop
movzx ebx, word [ebp]
add ebp, 0x80
dec eax
mov word [esi], bx
add esi, 0x80
cmp eax, 0xffffffff
jne 0x678f20
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x60]
cmp ecx, eax
jne 0x678fb2
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 0x4dec]
mov esi, dword [esp + 0x94]
lea esi, [esi + esi]
mov eax, dword [eax + 0x4834]
add eax, 0xe
imul esi, dword [esp + 0x54]
add esi, dword [edi + 4]
mov edi, dword [esp + 0x3c]
lea esi, [esi + edi + 0x70]
mov edi, dword [esp + 0x8c]
test edi, edi
je 0x678fb2
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x40]
lea esi, [esi]
movzx ebp, word [eax]
add eax, 0x80
dec ebx
mov word [esi], bp
add esi, 0x80
cmp ebx, 0xffffffff
jne 0x678f90
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x48]
cmp edx, eax
jne 0x679112
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4dec]
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x3c]
mov edi, dword [eax + 0x4834]
mov eax, dword [esp + 0x8c]
add esi, dword [esp + 0x2c]
lea eax, [eax - 1]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x8c]
test edi, edi
mov dword [esp + 0x40], eax
je 0x67903a
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x44]
add ebx, 0x70
mov ebp, 7
lea esi, [esi]
movzx ecx, word [ebx]
add ebx, 2
dec ebp
mov word [esi], cx
add esi, 2
cmp ebp, 0xffffffff
jne 0x679010
add esi, 0x70
dec eax
cmp eax, 0xffffffff
jne 0x679002
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
test ecx, ecx
jne 0x6790a3
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 0x4dec]
mov eax, dword [eax + 0xc]
add eax, 0xe
mov edi, dword [esi + 0x4834]
add edi, 0x70
mov dword [esp + 0x48], edi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x6790a3
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x44]
mov ebp, edi
nop
lea esi, [esi]
movzx ebx, word [ebp]
add ebp, 0x80
dec esi
mov word [eax], bx
add eax, 0x80
cmp esi, 0xffffffff
jne 0x679080
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x60]
cmp ecx, eax
jne 0x679112
mov edi, dword [esp + 0x78]
mov esi, dword [edi + 0x4dec]
mov eax, dword [esp + 0x94]
lea eax, [eax + eax]
imul eax, dword [esp + 0x54]
add eax, dword [esi + 0xc]
mov esi, dword [edi + 0x4834]
add esi, 0x7e
add eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x8c]
test edi, edi
je 0x679112
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x40]
mov esi, esi
lea edi, [edi]
movzx ebp, word [esi]
add esi, 0x80
dec ebx
mov word [eax], bp
add eax, 0x80
cmp ebx, 0xffffffff
jne 0x6790f0
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x58]
cmp ecx, eax
jle 0x678988
mov eax, dword [esp + 0x5c]
cmp edx, eax
jle 0x678988
mov esi, dword [esp + 0x78]
mov edi, dword [esi + 0x4dec]
mov eax, dword [esp + 0x54]
lea esi, [eax + eax]
imul esi, ecx
add esi, dword [edi + 4]
test eax, eax
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x78]
mov esi, dword [esi + 0x4834]
mov dword [esp + 0x44], esi
lea esi, [eax - 1]
je 0x67918d
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea esi, [esi]
lea edi, [edi]
movzx ebp, word [ebx]
dec esi
add ebx, 2
mov word [eax], bp
add eax, 2
cmp esi, 0xffffffff
jne 0x679170
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
dec ecx
dec edx
jmp 0x678873
xor esi, esi
mov eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov ebp, ecx
cmp ecx, 8
jge 0x6791ff
cmp ebx, 6
jl 0x6791f0
nop
lea esi, [esi]
movsx edx, word [eax + ebp*2 - 2]
mov word [eax + ebp*2], dx
mov word [eax + ebp*2 + 2], dx
mov word [eax + ebp*2 + 4], dx
mov word [eax + ebp*2 + 6], dx
mov word [eax + ebp*2 + 8], dx
add ebp, 5
cmp ebp, 2
jl 0x6791c0
lea esi, [esi]
lea edi, [edi]
movzx edx, word [eax + ebp*2 - 2]
mov word [eax + ebp*2], dx
inc ebp
cmp ebp, 8
jl 0x6791f0
add eax, 0x10
inc esi
cmp esi, 8
jl 0x6791ac
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x78]
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x37cc]
lea esi, [eax + ecx]
mov edi, dword [esi + 4]
jmp 0x678bd7
xor esi, esi
mov eax, dword [esp + 0x40]
neg eax
add eax, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov edx, ebx
cmp ebx, 8
jge 0x67929f
cmp eax, 6
jl 0x679290
nop
lea esi, [esi]
movsx ebp, word [ecx + edx*2 - 2]
mov word [ecx + edx*2], bp
mov word [ecx + edx*2 + 2], bp
mov word [ecx + edx*2 + 4], bp
mov word [ecx + edx*2 + 6], bp
mov word [ecx + edx*2 + 8], bp
add edx, 5
cmp edx, 2
jl 0x679260
lea esi, [esi]
lea edi, [edi]
movzx ebp, word [ecx + edx*2 - 2]
mov word [ecx + edx*2], bp
inc edx
cmp edx, 8
jl 0x679290
add ecx, 0x10
inc esi
cmp esi, 8
jl 0x67924f
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x24], esi
jmp 0x678c45
xor ebp, ebp
mov ebx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
mov eax, ecx
cmp ecx, 0x40
jge 0x679331
cmp edx, 0x30
jl 0x679320
movsx esi, word [ebx + eax*2 - 0x10]
mov word [ebx + eax*2], si
mov word [ebx + eax*2 + 0x10], si
mov word [ebx + eax*2 + 0x20], si
mov word [ebx + eax*2 + 0x30], si
mov word [ebx + eax*2 + 0x40], si
add eax, 0x28
cmp eax, 0x10
jl 0x6792f2
mov esi, esi
lea edi, [edi]
movzx esi, word [ebx + eax*2 - 0x10]
mov word [ebx + eax*2], si
add eax, 8
cmp eax, 0x40
jl 0x679320
add ebx, 2
inc ebp
cmp ebp, 8
jl 0x6792e6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebx + 0x54]
mov ebx, dword [ebx + 0x37cc]
lea edi, [ebx + ecx]
mov esi, dword [edi + 8]
jmp 0x678cf0
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x37bc]
cmp esi, 1
jne 0x678a4a
mov dword [esp + 0x30], edx
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 4]
lea edi, [ebx + ebx]
cdq
idiv edi
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
cmp ecx, eax
je 0x679577
mov eax, dword [esp + 0x94]
lea esi, [eax - 1]
cmp ecx, esi
jne 0x6794b3
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x4c]
and eax, 0xf
je 0x6794a3
mov dword [esp + 0x30], edx
lea esi, [ebp + ebp]
lea eax, [eax + ebp*2 - 1]
cdq
idiv esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 0x4834]
mov dword [esp + 0x2c], edi
mov eax, dword [eax + 0x74]
test eax, eax
jne 0x67948b
xor eax, eax
mov esi, dword [esp + 0x78]
mov edi, dword [esi + 0x54]
mov dword [esp + 0x44], eax
test edi, edi
mov dword [esp + 0x48], edi
jle 0x6794c1
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x37cc]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], esi
neg edi
add edi, 8
mov eax, dword [esp + 0x44]
shl eax, 4
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], ebx
mov ebx, eax
mov eax, dword [ebx + edi + 4]
cmp eax, 1
je 0x6795ed
shl eax, 7
add ecx, eax
add ebx, 0x10
inc ebp
cmp ebp, edx
jl 0x67944e
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x2c], esi
jmp 0x6794c1
mov eax, dword [esp + 0x80]
mov esi, dword [eax + 0x34]
mov edi, dword [esi + 4]
cmp edi, 1
je 0x679680
jmp 0x6794c1
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x2c], esi
jmp 0x6794c1
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4dec]
lea eax, [ecx + ecx]
mov edi, dword [esp + 0x54]
imul eax, edi
add eax, dword [esi + 4]
lea eax, [eax + edi*2]
lea esi, [edi - 1]
test edi, edi
je 0x67950e
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x2c]
lea esi, [esi]
movzx ebx, word [ebp]
dec esi
add ebp, 2
mov word [eax], bx
add eax, 2
cmp esi, 0xffffffff
jne 0x6794f0
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
test ecx, ecx
jne 0x679577
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4dec]
mov edi, dword [esi + 4]
lea esi, [edi + ebx*2 - 2]
mov eax, dword [eax + 0x4834]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
lea eax, [edi - 1]
test edi, edi
je 0x679577
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x2c]
mov ebp, 7
lea esi, [esi]
movzx ecx, word [ebx]
add ebx, 0x10
dec ebp
mov word [esi], cx
add esi, 0x10
cmp ebp, 0xffffffff
jne 0x679550
dec eax
cmp eax, 0xffffffff
jne 0x679547
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x678988
mov esi, dword [esp + 0x78]
mov edi, dword [esi + 0x4dec]
lea esi, [ecx + ecx]
mov eax, dword [esp + 0x54]
imul esi, eax
add esi, dword [edi + 4]
test eax, eax
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x78]
mov esi, dword [esi + 0x4834]
mov dword [esp + 0x3c], esi
lea esi, [eax - 1]
je 0x6795dd
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
nop
movzx ebp, word [ebx]
dec esi
add ebx, 2
mov word [eax], bp
add eax, 2
cmp esi, 0xffffffff
jne 0x6795c0
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
dec ecx
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 0x37b8]
jmp 0x678a4a
xor edx, edx
mov eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x24]
mov ecx, ebp
cmp ebp, 8
jge 0x67964f
cmp ebx, 6
jl 0x679640
movsx esi, word [eax + ecx*2 - 2]
mov word [eax + ecx*2], si
mov word [eax + ecx*2 + 2], si
mov word [eax + ecx*2 + 4], si
mov word [eax + ecx*2 + 6], si
mov word [eax + ecx*2 + 8], si
add ecx, 5
cmp ecx, 2
jl 0x679611
lea esi, [esi]
lea edi, [edi]
movzx esi, word [eax + ecx*2 - 2]
mov word [eax + ecx*2], si
inc ecx
cmp ecx, 8
jl 0x679640
add eax, 0x10
inc edx
cmp edx, 8
jl 0x679605
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x78]
mov edx, dword [esi + 0x54]
mov edi, dword [esi + 0x37cc]
mov eax, dword [ebx + edi + 4]
jmp 0x67945b
xor esi, esi
mov eax, dword [esp + 0x24]
neg eax
add eax, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov ebp, ecx
cmp ecx, 8
jge 0x6796ef
cmp eax, 6
jl 0x6796e0
nop
lea esi, [esi]
movsx edx, word [ebx + ebp*2 - 2]
mov word [ebx + ebp*2], dx
mov word [ebx + ebp*2 + 2], dx
mov word [ebx + ebp*2 + 4], dx
mov word [ebx + ebp*2 + 6], dx
mov word [ebx + ebp*2 + 8], dx
add ebp, 5
cmp ebp, 2
jl 0x6796b0
lea esi, [esi]
lea edi, [edi]
movzx edx, word [ebx + ebp*2 - 2]
mov word [ebx + ebp*2], dx
inc ebp
cmp ebp, 8
jl 0x6796e0
add ebx, 0x10
inc esi
cmp esi, 8
jl 0x67969f
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x4834]
mov dword [esp + 0x2c], esi
jmp 0x6794c1
mov ebx, 2
jmp 0x678302
mov ebx, 4
jmp 0x678302
mov ebx, 8
jmp 0x678302