Function at 0x6104b2
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xa0
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
call fcn.0064e8b8
test eax, eax
jne 0x6104e3
mov dword [esp + 0x14], 0x2f5
jmp 0x610ae9
test byte [eax + 9], 1
mov edx, 2
jne 0x6104fa
mov ecx, dword [ebx + 0x50]
mov eax, 1
shl eax, cl
mov edx, eax
cmp dword [ebp + 0x10], 0
je 0x610512
cmp dword [ebp + 0x20], 0
je 0x610512
test edi, edi
je 0x610512
xor eax, eax
cmp dword [ebp + 0xc], 0
jne 0x610531
mov dword [esp + 8], 0x71ff66
mov dword [esp + 4], 0x10
xor esi, esi
mov dword [esp], ebx
call fcn.00647705
jmp 0x6112ba
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0x20]
mov dword [esp + eax*4 + 0x80], ecx
mov ecx, dword [esi + eax*4]
mov dword [esp + eax*4 + 0x90], ecx
inc eax
cmp eax, 4
jne 0x610531
lea eax, [edx - 1]
mov esi, eax
and esi, dword [ebp + 0x14]
jne 0x61057b
test dword [ebp + 0x18], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx]
mov dword [esp + 0x48], eax
je 0x610572
cmp eax, dword [ebx + 0xc]
jne 0x61057b
mov eax, dword [esp + 0x48]
cmp eax, dword [ebx + 0xc]
jle 0x6105ab
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], 0x71ffb9
mov esi, 0xffffffea
mov dword [esp + 4], 0x10
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
call fcn.00647705
jmp 0x6112ba
cmp dword [ebx + 0xd0], 0
mov eax, dword [ebx + 0x78]
je 0x6106b6
test eax, eax
je 0x6106b6
mov esi, dword [ebp + 0x18]
lea edx, [ebx + 0x84]
lea ecx, [ebx + 0x94]
mov dword [esp], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xc], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], esi
call fcn.006104b2
test eax, eax
mov esi, eax
js 0x6112ba
cmp dword [ebx + 0x80], 0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
je 0x610634
lea eax, [ebx + 0xa4]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0xb4]
mov dword [esp + 0x14], eax
jmp 0x61063f
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp], eax
call fcn.006104b2
test eax, eax
mov esi, eax
js 0x6112ba
mov edx, dword [ebx + 0x80]
test edx, edx
je 0x6112ba
mov ecx, dword [ebx + 0x7c]
mov ecx, dword [ecx + 0xd58]
mov dword [esp + 0x14], edi
mov dword [esp], edx
mov esi, ecx
mov dword [esp + 0x10], ecx
sub esi, eax
mov eax, esi
mov esi, dword [ebp + 0x20]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0xa4]
add ebx, 0xb4
mov dword [esp + 4], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
jmp 0x610752
cmp dword [ebp + 0x14], 0
jne 0x61075e
test eax, eax
je 0x61075e
mov edx, dword [eax + 0xc]
cmp dword [ebp + 0x18], edx
jne 0x61075e
mov esi, dword [ebp + 0x18]
lea edx, [ebx + 0x84]
lea ecx, [ebx + 0x94]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 8], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], esi
call fcn.006104b2
test eax, eax
mov esi, eax
js 0x6112ba
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp], eax
call fcn.006104b2
mov esi, eax
jmp 0x6112ba
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
mov eax, dword [eax]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x7c], eax
je 0x6112ba
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
call fcn.0060f3b3
test eax, eax
mov esi, eax
jne 0x6107c8
mov dword [esp + 8], 0x71ffde
jmp 0x6107e3
mov edx, dword [ebx + 0x34]
mov ecx, dword [ebp + 0x20]
mov eax, edi
call fcn.0060f3b3
test eax, eax
mov esi, eax
jne 0x6107f8
mov dword [esp + 8], 0x71fff6
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call fcn.00647705
jmp 0x6112ba
mov esi, dword [ebx + 0x60]
test esi, esi
jne 0x610828
cmp dword [ebp + 0x14], 0
je 0x610821
mov eax, dword [esp + 0x48]
cmp eax, dword [ebx + 0xc]
je 0x610818
mov dword [esp + 8], 0x72000e
jmp 0x6107e3
mov dword [ebx + 0x60], 0xffffffff
jmp 0x610828
mov dword [ebx + 0x60], 1
mov eax, dword [ebx + 0x38]
cmp eax, 0x16
mov dword [esp + 0x54], eax
jbe 0x610846
cmp dword [ebx + 0x6074], 0
jne 0x610abc
jmp 0x610ac5
mov cl, byte [esp + 0x54]
mov eax, 1
shl eax, cl
test eax, 0x5a0900
je 0x610834
mov eax, dword [ebx + 0x34]
xor edi, edi
mov dword [esp + 0x4c], eax
lea eax, [ebx + 0x4f8]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x54], 0xb
jne 0x61089b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov edx, dword [eax + edi*4]
mov eax, edx
mov ecx, edx
movzx esi, dl
shr eax, 0x10
shr ecx, 0x18
mov dword [esp + 0x58], esi
movzx eax, al
mov dword [esp + 0x5c], eax
movzx eax, dh
jmp 0x61095c
cmp dword [esp + 0x54], 0x14
jne 0x6108c3
mov eax, edi
mov ecx, edi
sar eax, 5
and ecx, 3
imul eax, eax, 0x24
imul esi, ecx, 0x55
mov dword [esp + 0x5c], eax
mov eax, edi
sar eax, 2
and eax, 7
imul eax, eax, 0x24
jmp 0x610916
cmp dword [esp + 0x54], 0x11
jne 0x6108eb
mov eax, edi
mov ecx, edi
sar eax, 6
and ecx, 7
imul eax, eax, 0x55
imul esi, ecx, 0x24
mov dword [esp + 0x58], eax
mov eax, edi
sar eax, 3
and eax, 7
imul eax, eax, 0x24
jmp 0x610947
cmp dword [esp + 0x54], 0x16
jne 0x61091c
mov eax, edi
mov ecx, edi
sar eax, 3
and ecx, 1
imul eax, eax, 0xff
imul esi, ecx, 0xff
mov dword [esp + 0x5c], eax
mov eax, edi
sar eax, 1
and eax, 3
imul eax, eax, 0x55
mov dword [esp + 0x58], esi
jmp 0x610957
cmp dword [esp + 0x54], 8
je 0x61094d
mov eax, edi
mov ecx, edi
sar eax, 3
and ecx, 1
imul eax, eax, 0xff
imul esi, ecx, 0xff
mov dword [esp + 0x58], eax
mov eax, edi
sar eax, 1
and eax, 3
imul eax, eax, 0x55
mov dword [esp + 0x5c], esi
jmp 0x610957
mov dword [esp + 0x58], edi
mov eax, edi
mov dword [esp + 0x5c], edi
mov ecx, 0xff
imul esi, dword [esp + 0x5c], 0x20de
imul edx, eax, 0x4087
add edx, esi
imul esi, dword [esp + 0x58], 0xc88
lea esi, [edx + esi + 0x84000]
mov dl, 0xff
sar esi, 0xf
test esi, 0xffffff00
cmove edx, esi
movzx esi, dl
mov dword [esp + 0x40], esi
imul esi, dword [esp + 0x5c], 0xffffecff
imul edx, eax, 0xffffdac8
add edx, esi
imul esi, dword [esp + 0x58], 0x3838
lea edx, [edx + esi + 0x404000]
sar edx, 0xf
test edx, 0xffffff00
mov esi, edx
je 0x6109c3
mov esi, edx
not esi
sar esi, 0x1f
mov edx, esi
movzx esi, dl
mov dword [esp + 0x3c], esi
imul esi, dword [esp + 0x5c], 0x3838
imul edx, eax, 0xffffd0e3
add edx, esi
imul esi, dword [esp + 0x58], 0xfffff6e4
lea edx, [edx + esi + 0x404000]
mov esi, edx
sar esi, 0xf
test esi, 0xffffff00
mov edx, esi
je 0x610a01
not esi
mov edx, esi
sar edx, 0x1f
mov esi, ecx
movzx edx, dl
shl esi, 0x18
shl edx, 0x10
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x3c]
shl esi, 8
add esi, dword [esp + 0x40]
add esi, edx
add esi, dword [esp + 0x44]
cmp dword [esp + 0x4c], 0x19
mov edx, dword [esp + 0x50]
mov dword [edx - 0x400], esi
je 0x610a6c
jg 0x610a3d
cmp dword [esp + 0x4c], 2
je 0x610a5f
jmp 0x610a8b
cmp dword [esp + 0x4c], 0x1a
je 0x610a5f
cmp dword [esp + 0x4c], 0x1b
jne 0x610a8b
mov edx, dword [esp + 0x58]
shl eax, 0x10
shl edx, 8
add ecx, edx
add ecx, eax
mov eax, dword [esp + 0x5c]
jmp 0x610a7e
shl eax, 8
mov ecx, dword [esp + 0x58]
add eax, dword [esp + 0x5c]
jmp 0x610a96
mov edx, dword [esp + 0x5c]
shl eax, 0x10
shl edx, 8
add ecx, edx
add ecx, eax
mov eax, dword [esp + 0x58]
shl eax, 0x18
add ecx, eax
mov eax, dword [esp + 0x50]
mov dword [eax], ecx
jmp 0x610aa5
shl eax, 8
add eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
shl ecx, 0x10
mov esi, dword [esp + 0x50]
add eax, ecx
add eax, dword [esp + 0x44]
mov dword [esi], eax
inc edi
add dword [esp + 0x50], 4
cmp edi, 0x100
jne 0x61086b
jmp 0x610834
cmp dword [ebx + 0x6078], 0
je 0x610ad2
mov dword [esp + 0x5c], 0
jmp 0x610bd5
mov esi, dword [ebx + 0x34]
mov dword [esp], esi
call fcn.0064e8b8
test eax, eax
jne 0x610b1a
mov dword [esp + 0x14], 0x30b
mov dword [esp + 0x10], 0x71fde8
mov dword [esp + 0xc], 0x71fe06
mov dword [esp + 8], 0x71fe0b
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00647705
call fcn.00697e77
cmp esi, 0xb
je 0x610b25
test byte [eax + 8], 0x80
je 0x610ac5
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
mov edx, eax
mov eax, dword [edi]
sar edx, 0x1f
xor eax, edx
sub eax, edx
imul eax, dword [ebp + 0x18]
add eax, 0x20
mov dword [esp], eax
call fcn.00648869
test eax, eax
mov dword [esp + 0x5c], eax
jne 0x610b5d
mov esi, 0xfffffff4
jmp 0x6112ba
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
mov eax, dword [esp + 0x5c]
jns 0x610b82
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x5c]
dec eax
imul eax, dword [esp + 0x58]
sub edi, eax
mov eax, edi
mov edx, eax
mov dword [esp + 0x54], 0
mov edi, dword [esp + 0x54]
cmp edi, dword [ebp + 0x18]
jge 0x610bd1
mov edi, dword [ebx + 8]
mov esi, edx
sub esi, eax
add esi, dword [esp + 0x60]
shl edi, 2
mov dword [esp + 0x50], edi
mov edi, edx
mov ecx, dword [esp + 0x50]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x6074]
lea ecx, [edi - 1]
cmp ecx, dword [esp + 0x50]
jge 0x610bc7
mov byte [edx + ecx], 0xff
add ecx, 4
jmp 0x610bb8
inc dword [esp + 0x54]
add edx, dword [esp + 0x58]
jmp 0x610b8c
mov dword [esp + 0x60], eax
cmp dword [ebx + 0x607c], 0
je 0x610e72
cmp dword [ebx + 0x6080], 0
je 0x610c02
mov eax, dword [ebx + 0x8108]
cmp dword [ebx + 8], eax
jne 0x610c02
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0xc], eax
je 0x610e72
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
mov edx, eax
mov eax, dword [edi]
sar edx, 0x1f
xor eax, edx
sub eax, edx
imul eax, dword [ebp + 0x18]
add eax, 0x20
mov dword [esp], eax
call fcn.00648869
test eax, eax
mov dword [esp + 0x5c], eax
je 0x610b53
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x5c]
mov eax, dword [eax]
mov dword [esp + 0x4c], edi
test eax, eax
jns 0x610c58
mov edi, dword [ebp + 0x18]
lea edx, [edi - 1]
mov edi, dword [esp + 0x5c]
imul edx, eax
sub edi, edx
mov dword [esp + 0x4c], edi
mov ecx, 2
cdq
idiv ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
call fcn.0064e8b8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], 0
add eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
cmp dword [ebp + 0x18], eax
jle 0x610e6a
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], 2
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x58]
cmp dword [esp + 0x44], edi
jle 0x610e55
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov edi, dword [edi + 8]
mov dword [esp + 0x30], edi
and edi, 1
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x50]
je 0x610d0e
mov esi, dword [esp + 0x50]
mov di, word [edi + eax*2 - 4]
mov si, word [esi + eax*2 - 2]
rol di, 8
mov edx, esi
mov esi, dword [esp + 0x50]
movzx edi, di
xchg dl, dh
mov si, word [esi + eax*2]
movzx edx, dx
mov ecx, esi
mov word [esp + 0x30], si
xchg cl, ch
movzx ecx, cx
jmp 0x610d20
mov ecx, dword [esp + 0x50]
movzx edi, word [edi + eax*2 - 4]
movzx edx, word [ecx + eax*2 - 2]
movzx ecx, word [ecx + eax*2]
mov esi, dword [ebx + 0x9184]
sar ecx, 4
sar edi, 4
sar edx, 4
movsx ecx, word [esi + ecx*2]
movsx edi, word [esi + edi*2]
movsx edx, word [esi + edx*2]
movsx esi, word [ebx + 0x9194]
mov eax, ecx
movsx ecx, word [ebx + 0x9196]
imul esi, edi
imul ecx, edx
add esi, ecx
movsx ecx, word [ebx + 0x9198]
imul ecx, eax
add ecx, esi
movsx esi, word [ebx + 0x919c]
sar ecx, 0xc
mov dword [esp + 0x30], ecx
movsx ecx, word [ebx + 0x919e]
imul esi, edi
imul ecx, edx
add esi, ecx
movsx ecx, word [ebx + 0x91a0]
imul ecx, eax
add ecx, esi
mov esi, ecx
movsx ecx, word [ebx + 0x91a4]
sar esi, 0xc
imul edi, ecx
movsx ecx, word [ebx + 0x91a6]
imul edx, ecx
movsx ecx, word [ebx + 0x91a8]
add edi, edx
mov edx, dword [esp + 0x30]
imul ecx, eax
add edi, ecx
sar edi, 0xc
test edx, 0xfffff000
je 0x610dc9
not edx
sar edx, 0x1f
and edx, 0xfff
test esi, 0xfffff000
mov ecx, esi
je 0x610dde
not ecx
sar ecx, 0x1f
and ecx, 0xfff
test edi, 0xfffff000
je 0x610df1
not edi
sar edi, 0x1f
and edi, 0xfff
cmp dword [esp + 0x2c], 0
mov esi, dword [ebx + 0x9188]
mov dx, word [esi + edx*2]
je 0x610e26
mov eax, dword [esp + 0x54]
shl edx, 4
xchg dl, dh
mov word [eax], dx
mov dx, word [esi + ecx*2]
shl edx, 4
xchg dl, dh
mov word [eax + 2], dx
mov dx, word [esi + edi*2]
shl edx, 4
xchg dl, dh
jmp 0x610e42
mov eax, dword [esp + 0x54]
shl edx, 4
mov word [eax], dx
mov dx, word [esi + ecx*2]
shl edx, 4
mov word [eax + 2], dx
mov dx, word [esi + edi*2]
shl edx, 4
mov word [eax + 4], dx
add dword [esp + 0x58], 3
add dword [esp + 0x54], 6
jmp 0x610cb2
mov edi, dword [esp + 0x38]
inc dword [esp + 0x3c]
add dword [esp + 0x50], edi
add dword [esp + 0x40], edi
jmp 0x610c95
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
cmp dword [ebp + 0x14], 0
je 0x610e85
xor eax, eax
cmp dword [ebx + 0x60], 1
jne 0x610ec8
jmp 0x610f68
test byte [ebx + 0xd5e], 8
je 0x610e78
cmp dword [ebx + 0x9214], 3
jne 0x610e78
cmp dword [ebx + 0x6030], 0
je 0x610e78
lea edx, [ebx + 0x6030]
lea esi, [ebx + 0x6040]
xor eax, eax
mov ecx, dword [ebx + 0x8108]
mov edi, dword [edx]
add edx, 4
cmp esi, edx
lea ecx, [ecx*4 + 8]
rep stosb byte es:[edi], al
jne 0x610eae
jmp 0x610e78
neg dword [esp + eax*4 + 0x80]
neg dword [esp + eax*4 + 0x90]
inc eax
cmp eax, 4
jne 0x610ec8
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x38]
mov esi, dword [ebx + 0x50]
lea edx, [eax - 1]
mov eax, dword [edi]
imul eax, edx
add dword [esp + 0x60], eax
cmp ecx, 0x16
ja 0x6112a2
mov eax, 1
shl eax, cl
test eax, 0x5a0900
je 0x6112a2
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov ecx, esi
sar eax, cl
dec eax
imul eax, dword [edi + 8]
imul edx, dword [edi + 0xc]
mov edi, dword [ebp + 0x20]
add dword [esp + 0x68], eax
mov eax, dword [ebx + 0x10]
add dword [esp + 0x6c], edx
mov ecx, dword [edi]
lea edx, [eax - 1]
imul ecx, edx
add dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x58]
imul edx, dword [edi + 0xc]
sar eax, cl
mov ecx, dword [edi + 4]
dec eax
add dword [esp + 0x7c], edx
imul ecx, eax
add dword [esp + 0x74], ecx
imul eax, dword [edi + 8]
add dword [esp + 0x78], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x18]
mov dword [ebp + 0x14], eax
mov edx, dword [ebx + 0x38]
lea esi, [esp + 0x60]
lea edi, [esp + 0x70]
mov eax, esi
call fcn.0060f3f5
mov edx, dword [ebx + 0x34]
mov eax, edi
call fcn.0060f3f5
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
cmp eax, dword [ebx + 0xc]
jne 0x610f96
mov dword [ebx + 0x60], 0
lea eax, [esp + 0x90]
mov dword [esp + 0x14], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
call dword [ebx + 4]
cmp dword [ebx + 0x6080], 0
mov dword [esp + 0x4c], eax
jne 0x610fea
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.006489d6
mov esi, dword [esp + 0x4c]
jmp 0x6112ba
cmp dword [ebx + 0x607c], 0
je 0x611006
mov eax, dword [ebx + 0x8108]
cmp dword [ebx + 8], eax
jne 0x611006
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0xc], eax
je 0x610fd5
mov ecx, dword [ebx + 0xd58]
mov eax, dword [esp + 0x90]
test ecx, ecx
cmove ecx, dword [esp + 0x48]
mov edx, ecx
sub edx, dword [esp + 0x4c]
imul edx, eax
add edx, dword [esp + 0x70]
cmp ecx, dword [esp + 0x4c]
mov dword [esp + 0x54], edx
jge 0x61104e
mov dword [esp + 0x14], 0x3e0
mov dword [esp + 0x10], 0x71febf
mov dword [esp + 0xc], 0x72002b
jmp 0x610af9
cmp dword [esp + 0x4c], 0
jns 0x611072
mov dword [esp + 0x14], 0x3e1
mov dword [esp + 0x10], 0x71febf
mov dword [esp + 0xc], 0x720037
jmp 0x610af9
cmp ecx, dword [ebx + 0x10]
jle 0x611094
mov dword [esp + 0x14], 0x3e2
mov dword [esp + 0x10], 0x71febf
mov dword [esp + 0xc], 0x720040
jmp 0x610af9
mov ecx, 2
cdq
idiv ecx
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call fcn.0064e8b8
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], 0
add eax, eax
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x4c], edi
je 0x610fd5
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], 2
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x58]
cmp dword [esp + 0x48], edi
jle 0x611291
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
mov edi, dword [edi + 8]
mov dword [esp + 0x3c], edi
and edi, 1
mov dword [esp + 0x34], edi
je 0x611123
mov di, word [eax]
mov dx, word [eax + 2]
mov cx, word [eax + 4]
rol di, 8
xchg dl, dh
xchg cl, ch
movzx edi, di
movzx edx, dx
movzx ecx, cx
jmp 0x61112e
movzx edi, word [eax]
movzx edx, word [eax + 2]
movzx ecx, word [eax + 4]
mov esi, dword [ebx + 0x9190]
sar ecx, 4
sar edi, 4
sar edx, 4
movsx ecx, word [esi + ecx*2]
movsx edi, word [esi + edi*2]
movsx edx, word [esi + edx*2]
movsx esi, word [ebx + 0x91ac]
mov eax, ecx
movsx ecx, word [ebx + 0x91ae]
imul esi, edi
imul ecx, edx
add esi, ecx
movsx ecx, word [ebx + 0x91b0]
imul ecx, eax
add ecx, esi
movsx esi, word [ebx + 0x91b4]
sar ecx, 0xc
mov dword [esp + 0x3c], ecx
movsx ecx, word [ebx + 0x91b6]
imul esi, edi
imul ecx, edx
add esi, ecx
movsx ecx, word [ebx + 0x91b8]
imul ecx, eax
add ecx, esi
mov esi, ecx
movsx ecx, word [ebx + 0x91bc]
sar esi, 0xc
imul edi, ecx
movsx ecx, word [ebx + 0x91be]
imul edx, ecx
add edi, edx
movsx edx, word [ebx + 0x91c0]
imul edx, eax
add edx, edi
mov edi, dword [esp + 0x3c]
sar edx, 0xc
test edi, 0xfffff000
je 0x6111d7
not edi
sar edi, 0x1f
and edi, 0xfff
test esi, 0xfffff000
mov ecx, esi
je 0x6111ec
not ecx
sar ecx, 0x1f
and ecx, 0xfff
test edx, 0xfffff000
je 0x6111ff
not edx
sar edx, 0x1f
and edx, 0xfff
cmp dword [esp + 0x34], 0
mov esi, dword [ebx + 0x918c]
mov si, word [esi + edi*2]
je 0x61124f
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
shl esi, 4
rol si, 8
mov word [edi + eax*2 - 4], si
mov esi, dword [ebx + 0x918c]
mov eax, edi
mov edi, dword [esp + 0x58]
mov cx, word [esi + ecx*2]
shl ecx, 4
xchg cl, ch
mov word [eax + edi*2 - 2], cx
mov ecx, dword [ebx + 0x918c]
mov dx, word [ecx + edx*2]
shl edx, 4
xchg dl, dh
jmp 0x61127e
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
shl esi, 4
mov word [eax + edi*2 - 4], si
mov esi, dword [ebx + 0x918c]
mov cx, word [esi + ecx*2]
shl ecx, 4
mov word [eax + edi*2 - 2], cx
mov ecx, dword [ebx + 0x918c]
mov dx, word [ecx + edx*2]
shl edx, 4
mov word [eax + edi*2], dx
add dword [esp + 0x58], 3
add dword [esp + 0x50], 6
jmp 0x6110df
mov edi, dword [esp + 0x38]
inc dword [esp + 0x44]
add dword [esp + 0x54], edi
jmp 0x6110c1
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov ecx, esi
sar eax, cl
dec eax
imul eax, dword [edi + 4]
add dword [esp + 0x64], eax
jmp 0x610f0f
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret