Function at 0x4177d0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
mov dword [esp + 8], eax
mov esi, edx
mov dword [esp + 0x48], ecx
mov ebp, dword [esp + 0xe0]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ebx, dword [esp + 0xe4]
and ebx, 1
mov dword [esp + 4], ebx
jne 0x418260
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
test esi, esi
je 0x418250
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x417843
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x417850
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
lea edi, [esp + 0x98]
mov ecx, 4
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x98]
lea edx, [esp + 0xa8]
mov eax, ebp
call fcn.00416af0
mov edi, dword [esp + 8]
mov edx, dword [edi]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov dword [esp + 0x60], edx
mov edi, dword [edi + 4]
mov dword [esp + 0x28], edi
mov edx, dword [esi + 4]
mov dword [esp + 0x10], edx
mov ebp, dword [esi]
mov dword [esp + 0x14], ebp
imul edi, edx
lea edi, [edi + ebp*4]
mov dword [esp + 0x88], edi
mov ecx, dword [ecx + 4]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x98]
shl ecx, 2
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], ecx
shl ecx, 0x10
mov eax, ecx
cdq
idiv ebx
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], ecx
shl ecx, 0x10
mov eax, ecx
cdq
idiv dword [esp + 0xc]
mov dword [esp + 0x7c], eax
mov edi, eax
mov ebx, eax
shr ebx, 1
cmp eax, 0xffff
ja 0x418c6a
xor esi, esi
lea esi, [esi]
lea esi, [esi]
inc esi
mov edx, eax
add eax, edi
lea ecx, [ebx + edx]
cmp ecx, 0x7fff
jbe 0x417940
mov ecx, dword [esp + 0x44]
mov ebp, ecx
shr ebp, 1
cmp ecx, 0xffff
ja 0x418c73
mov eax, ecx
xor edi, edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov esi, ecx
lea esi, [esi]
lea esi, [esi]
inc edi
mov ecx, eax
add eax, esi
lea ebx, [ebp + ecx]
cmp ebx, 0x7fff
jbe 0x417980
mov esi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov dword [esp + 4], ecx
lea eax, [ebx - 0x8000]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
dec eax
lea edx, [ebx + edx - 0x8000]
shr edx, 0x10
mov ebx, dword [esp + 0x10]
add edx, ebx
cmp edx, eax
jae 0x418c7a
lea ecx, [esi + 1]
mov edx, dword [esp + 0x7c]
imul ecx, edx
mov edx, dword [esp + 8]
add ecx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x7c]
inc esi
mov edx, ecx
shr edx, 0x10
add edx, ebx
add ecx, edi
cmp edx, eax
jb 0x4179e0
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
lea ecx, [ebp - 0x8000]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
dec ebx
mov eax, dword [esp + 4]
lea eax, [ebp + eax - 0x8000]
shr eax, 0x10
mov ebp, dword [esp + 0x14]
add eax, ebp
cmp eax, ebx
jae 0x418c83
lea edx, [edi + 1]
mov eax, dword [esp + 0x44]
imul edx, eax
add edx, ecx
mov ecx, edi
mov dword [esp + 4], edi
mov edi, ebp
mov ebp, eax
lea esi, [esi]
nop
inc ecx
mov eax, edx
shr eax, 0x10
add eax, edi
add edx, ebp
cmp eax, ebx
jb 0x417a40
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], eax
cmp eax, edi
jg 0x418b69
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
cmp eax, ecx
jg 0x418b60
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x78], eax
mov ebp, eax
cmp eax, esi
jg 0x418b7f
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], eax
mov ebx, dword [esp + 0xc]
cmp eax, ebx
jg 0x418b54
mov eax, dword [esp + 0x50]
add eax, ebp
mov ebx, dword [esp + 0x84]
imul eax, ebx
mov ebx, dword [esp + 0x54]
add eax, ebx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x80]
cmp ebp, eax
jge 0x4180fe
mov ebx, dword [esp + 0x5c]
mov eax, ebx
mov ecx, dword [esp + 0x44]
imul eax, ecx
mov esi, dword [esp + 0x10]
add eax, esi
shr eax, 0x10
shl eax, 2
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x7c]
imul eax, ebp
mov edi, dword [esp + 8]
add edi, eax
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x64]
lea eax, [edi + ebx*4]
mov ebx, dword [esp + 0x60]
add eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
lea eax, [ebx + eax*4]
add eax, edi
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x58]
lea eax, [edi + edx*4]
add eax, ebx
mov dword [esp + 0x30], eax
mov eax, ecx
imul eax, edx
add eax, esi
mov dword [esp + 0x90], eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x94], ebp
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esp + 0x68]
movzx ebx, ah
mov dword [esp + 0x24], ebx
shr eax, 0x10
mov ebx, dword [esp + 0x28]
imul eax, ebx
mov ebx, dword [esp + 0x88]
add eax, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x417cd3
mov eax, 0x100
mov ebx, dword [esp + 0x24]
sub eax, ebx
shl eax, 8
mov dword [esp + 0x10], eax
shl ebx, 8
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
lea ebp, [ebx + eax]
mov ecx, dword [esp + 0x28]
add eax, ecx
add eax, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
add ebx, eax
mov dword [esp + 4], ebp
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 4]
xor edx, edx
mov dl, byte [eax]
mov edi, dword [esp + 0x10]
imul edx, edi
mov esi, dword [esp + 8]
xor eax, eax
mov al, byte [esi]
mov ebp, dword [esp + 0x14]
imul eax, ebp
lea eax, [edx + eax + 0x8000]
shr eax, 0x10
mov cl, al
mov eax, dword [esp + 4]
xor edx, edx
mov dl, byte [eax + 1]
imul edx, edi
xor eax, eax
mov al, byte [esi + 1]
imul eax, ebp
lea eax, [edx + eax + 0x8000]
shr eax, 0x10
mov dword [esp + 0xc], eax
mov ch, al
mov eax, dword [esp + 4]
xor edx, edx
mov dl, byte [eax + 2]
imul edx, edi
xor eax, eax
mov al, byte [esi + 2]
imul eax, ebp
lea esi, [edx + eax + 0x8000]
and esi, 0xff0000
xor edx, edx
mov dx, cx
mov eax, dword [esp + 4]
xor ecx, ecx
mov cl, byte [eax + 3]
imul ecx, edi
mov edi, dword [esp + 8]
xor eax, eax
mov al, byte [edi + 3]
imul eax, ebp
lea eax, [ecx + eax + 0x8000]
shr eax, 0x10
mov ecx, eax
shl ecx, 0x18
or edx, esi
or ecx, edx
mov ebp, eax
and ebp, 0xff
mov esi, 0x100
sub esi, ebp
lea edi, [ebp + 1]
and edx, 0xff00ff
imul edx, edi
mov eax, dword [ebx]
and eax, 0xff00ff
imul eax, esi
add edx, eax
shr edx, 8
and edx, 0xff00ff
mov eax, dword [esp + 0xc]
and eax, 0xff
imul eax, edi
movzx edi, byte [ebx + 1]
and edi, 0xff
imul edi, esi
add eax, edi
xor al, al
or eax, edx
xor edx, edx
mov dl, byte [ebx + 3]
imul edx, esi
sar edx, 8
add edx, ebp
shl edx, 0x18
or eax, edx
mov dword [ebx], eax
add ebx, 4
cmp dword [esp + 0x30], ebx
jne 0x417bc0
mov dword [esp + 0x70], ecx
mov ebx, dword [esp + 0x5c]
cmp dword [esp + 0x58], ebx
jge 0x417f55
mov eax, 0x100
mov ebx, dword [esp + 0x24]
sub eax, ebx
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [esp + 0x18]
movzx eax, bh
mov ecx, 0x100
sub ecx, eax
mov edi, dword [esp + 0x40]
mov esi, edi
imul esi, ecx
imul edi, eax
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x24]
imul ecx, edx
mov dword [esp + 4], ecx
imul eax, edx
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 0x10
mov ebp, dword [esp + 0x2c]
lea eax, [ebp + eax*4]
mov ebp, dword [esp + 0x38]
lea edi, [ebp + eax]
lea ebx, [ebp + eax + 4]
mov dword [esp + 8], ebx
mov edx, dword [esp + 0x28]
add eax, edx
lea ebx, [ebp + eax]
lea edx, [ebp + eax + 4]
movzx ebp, byte [edi]
and ebp, 0xff
mov dword [esp + 0xc], esi
imul ebp, esi
mov ecx, dword [esp + 8]
xor eax, eax
mov al, byte [ecx]
mov ecx, dword [esp + 0x14]
imul eax, ecx
lea eax, [ebp + eax + 0x8000]
movzx ebp, byte [ebx]
and ebp, 0xff
mov esi, dword [esp + 4]
imul ebp, esi
add eax, ebp
mov dword [esp + 0x14], edx
movzx ebp, byte [edx]
and ebp, 0xff
mov esi, dword [esp + 0x10]
imul ebp, esi
add eax, ebp
shr eax, 0x10
mov edx, dword [esp]
mov dl, al
mov dword [esp], edx
movzx ebp, byte [edi + 1]
and ebp, 0xff
mov eax, dword [esp + 0xc]
imul ebp, eax
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [edx + 1]
imul eax, ecx
lea eax, [ebp + eax + 0x8000]
movzx ebp, byte [ebx + 1]
and ebp, 0xff
mov edx, dword [esp + 4]
imul ebp, edx
add eax, ebp
mov ebp, dword [esp + 0x14]
mov dl, byte [ebp + 1]
and edx, 0xff
mov ebp, edx
imul ebp, esi
add eax, ebp
mov ebp, eax
shr ebp, 0x10
mov dword [esp + 0x20], ebp
mov eax, ebp
mov edx, dword [esp]
mov dh, al
mov dword [esp], edx
movzx ebp, byte [edi + 2]
and ebp, 0xff
mov eax, dword [esp + 0xc]
imul ebp, eax
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [edx + 2]
imul eax, ecx
lea eax, [ebp + eax + 0x8000]
movzx ebp, byte [ebx + 2]
and ebp, 0xff
mov edx, dword [esp + 4]
imul ebp, edx
add eax, ebp
mov ebp, dword [esp + 0x14]
mov dl, byte [ebp + 2]
and edx, 0xff
mov ebp, edx
imul ebp, esi
add eax, ebp
mov edx, eax
and edx, 0xff0000
mov ebp, edx
xor eax, eax
mov ax, word [esp]
xor edx, edx
mov dl, byte [edi + 3]
mov edi, dword [esp + 0xc]
imul edx, edi
mov edi, dword [esp + 8]
movzx edi, byte [edi + 3]
and edi, 0xff
mov esi, edi
imul esi, ecx
lea edx, [edx + esi + 0x8000]
xor ecx, ecx
mov cl, byte [ebx + 3]
mov ebx, ecx
mov ecx, dword [esp + 4]
imul ebx, ecx
add ebx, edx
mov esi, dword [esp + 0x14]
xor edx, edx
mov dl, byte [esi + 3]
mov edi, dword [esp + 0x10]
imul edx, edi
add ebx, edx
shr ebx, 0x10
mov edx, ebx
shl edx, 0x18
or eax, ebp
or edx, eax
mov dword [esp], edx
and ebx, 0xff
mov esi, 0x100
sub esi, ebx
lea edi, [ebx + 1]
and eax, 0xff00ff
imul eax, edi
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp]
mov dword [esp + 4], ecx
and ecx, 0xff00ff
imul ecx, esi
add eax, ecx
shr eax, 8
and eax, 0xff00ff
xor ecx, ecx
mov cl, byte [ebp + 3]
imul ecx, esi
sar ecx, 8
add ecx, ebx
shl ecx, 0x18
or ecx, eax
mov edx, dword [esp + 0x20]
and edx, 0xff
mov eax, edx
imul eax, edi
xor ebx, ebx
mov bl, byte [ebp + 1]
imul ebx, esi
add eax, ebx
xor al, al
or ecx, eax
mov dword [ebp], ecx
mov ebx, dword [esp + 0x44]
add dword [esp + 0x18], ebx
add ebp, 4
mov dword [esp + 0x1c], ebp
cmp dword [esp + 0x34], ebp
jne 0x417d10
mov ebx, dword [esp + 0x5c]
cmp dword [esp + 0x74], ebx
jle 0x4180c3
mov eax, 0x100
mov ebx, dword [esp + 0x24]
sub eax, ebx
shl eax, 8
mov dword [esp + 0x10], eax
shl ebx, 8
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x8c]
add eax, ebx
mov ebx, dword [esp + 0x38]
lea ebp, [ebx + eax]
mov ecx, dword [esp + 0x28]
add eax, ecx
add eax, ebx
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebp
mov ecx, dword [esp + 0x6c]
lea esi, [esi]
nop
mov eax, dword [esp + 4]
xor edx, edx
mov dl, byte [eax]
mov edi, dword [esp + 0x10]
imul edx, edi
mov esi, dword [esp + 8]
xor eax, eax
mov al, byte [esi]
mov ebp, dword [esp + 0x14]
imul eax, ebp
lea eax, [edx + eax + 0x8000]
shr eax, 0x10
mov cl, al
mov eax, dword [esp + 4]
xor edx, edx
mov dl, byte [eax + 1]
imul edx, edi
xor eax, eax
mov al, byte [esi + 1]
imul eax, ebp
lea eax, [edx + eax + 0x8000]
shr eax, 0x10
mov dword [esp + 0xc], eax
mov ch, al
mov eax, dword [esp + 4]
xor edx, edx
mov dl, byte [eax + 2]
imul edx, edi
xor eax, eax
mov al, byte [esi + 2]
imul eax, ebp
lea esi, [edx + eax + 0x8000]
and esi, 0xff0000
xor edx, edx
mov dx, cx
mov eax, dword [esp + 4]
xor ecx, ecx
mov cl, byte [eax + 3]
imul ecx, edi
mov edi, dword [esp + 8]
xor eax, eax
mov al, byte [edi + 3]
imul eax, ebp
lea eax, [ecx + eax + 0x8000]
shr eax, 0x10
mov ecx, eax
shl ecx, 0x18
or edx, esi
or ecx, edx
mov ebp, eax
and ebp, 0xff
mov esi, 0x100
sub esi, ebp
lea edi, [ebp + 1]
and edx, 0xff00ff
imul edx, edi
mov eax, dword [ebx]
and eax, 0xff00ff
imul eax, esi
add edx, eax
shr edx, 8
and edx, 0xff00ff
mov eax, dword [esp + 0xc]
and eax, 0xff
imul eax, edi
movzx edi, byte [ebx + 1]
and edi, 0xff
imul edi, esi
add eax, edi
xor al, al
or eax, edx
xor edx, edx
mov dl, byte [ebx + 3]
imul edx, esi
sar edx, 8
add edx, ebp
shl edx, 0x18
or eax, edx
mov dword [ebx], eax
add ebx, 4
cmp dword [esp + 0x3c], ebx
jne 0x417fb0
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x84]
add dword [esp + 0x64], eax
inc dword [esp + 0x4c]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x7c]
add dword [esp + 0x68], edi
add dword [esp + 0x34], eax
add dword [esp + 0x3c], eax
add dword [esp + 0x30], eax
cmp dword [esp + 0x80], ebx
jne 0x417b50
mov ebp, dword [esp + 0x94]
test ebp, ebp
jle 0x4181ad
mov eax, dword [esp + 0x78]
lea ebx, [eax - 1]
dec eax
jle 0x417843
mov eax, dword [esp + 0x74]
lea edx, [eax*4]
xor eax, eax
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov esi, dword [esp + 0x84]
jmp 0x418166
test edx, edx
je 0x418152
mov bl, byte [esi]
mov byte [ecx], bl
xor ebx, ebx
test ebx, ebx
jne 0x418c37
inc eax
cmp ebp, eax
je 0x4181ad
mov ebx, dword [esp + 4]
cmp eax, ebx
je 0x4181ad
mov ebx, dword [esp + 0x48]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x50]
imul edi, esi
mov ebx, dword [esp + 0x54]
add edi, ebx
mov ecx, eax
imul ecx, esi
add ecx, edi
mov ebx, dword [esp]
add ecx, ebx
imul esi, ebp
add esi, edi
add esi, ebx
cmp edx, 4
jb 0x418140
mov edi, dword [esi]
mov dword [ecx], edi
mov edi, dword [esi + edx - 4]
mov dword [ecx + edx - 4], edi
lea edi, [ecx + 4]
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
inc eax
cmp ebp, eax
jne 0x418157
mov ebx, dword [esp + 0x80]
test ebx, ebx
jle 0x417843
cmp dword [esp + 0x78], ebx
jle 0x417843
mov eax, dword [esp + 0x74]
lea eax, [eax*4]
lea edx, [ebx - 1]
mov ebp, edx
mov edx, ebx
jmp 0x4181fd
test eax, eax
je 0x4181f2
mov bl, byte [esi]
mov byte [ecx], bl
xor ebx, ebx
test ebx, ebx
jne 0x418c28
inc edx
cmp dword [esp + 0x78], edx
je 0x417843
mov ebx, dword [esp + 0x48]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x50]
imul edi, esi
mov ebx, dword [esp + 0x54]
add edi, ebx
mov ecx, edx
imul ecx, esi
add ecx, edi
mov ebx, dword [esp + 0x60]
add ecx, ebx
imul esi, ebp
add esi, edi
add esi, ebx
cmp eax, 4
jb 0x4181e0
mov edi, dword [esi]
mov dword [ecx], edi
mov edi, dword [esi + eax - 4]
mov dword [ecx + eax - 4], edi
lea edi, [ecx + 4]
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x4181f2
lea esi, [esp + 0xb8]
jmp 0x417831
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
test esi, esi
je 0x418b86
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x417843
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
test eax, eax
je 0x417843
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
lea edi, [esp + 0xb8]
mov ecx, 4
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esp + 0xb8]
mov ecx, edi
lea edx, [esp + 0xa8]
mov eax, ebp
call fcn.00416af0
mov edi, dword [esp + 8]
mov edx, dword [edi]
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x48]
mov ebp, dword [ecx]
mov edi, dword [edi + 4]
mov dword [esp + 0x24], edi
mov edx, dword [esi + 4]
mov dword [esp + 4], edx
mov eax, dword [esi]
mov dword [esp + 8], eax
imul edi, edx
mov eax, edi
mov edi, dword [esp + 8]
lea edi, [eax + edi*4]
mov dword [esp + 0x84], edi
mov edi, dword [ecx + 4]
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xb8]
shl ecx, 2
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], ecx
shl ecx, 0x10
mov eax, ecx
cdq
idiv ebx
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
shl ecx, 0x10
mov eax, ecx
cdq
idiv dword [esp]
mov dword [esp + 0x78], eax
mov ebx, eax
shr ebx, 1
mov dword [esp + 0xc], ebx
cmp eax, 0xffff
ja 0x418cbf
xor esi, esi
mov dword [esp], ebp
mov ebp, eax
nop
inc esi
mov edx, eax
add eax, ebp
lea ecx, [ebx + edx]
cmp ecx, 0x7fff
jbe 0x418390
mov ebp, dword [esp]
mov ebx, dword [esp + 0x40]
mov ecx, ebx
shr ecx, 1
mov dword [esp + 0x1c], ecx
cmp ebx, 0xffff
ja 0x418cb1
mov eax, ebx
mov dword [esp + 0x20], edx
mov dword [esp], ebp
mov dword [esp + 0x28], esi
xor edx, edx
mov esi, ecx
mov ebp, ebx
nop
inc edx
mov ebx, eax
add eax, ebp
lea ecx, [esi + ebx]
cmp ecx, 0x7fff
jbe 0x4183d0
mov ebp, dword [esp]
mov esi, dword [esp + 0x28]
mov dword [esp], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0x8000]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
dec ecx
lea eax, [edx + eax - 0x8000]
shr eax, 0x10
mov edx, dword [esp + 4]
add eax, edx
cmp eax, ecx
jae 0x418ca8
lea edx, [esi + 1]
mov eax, dword [esp + 0x78]
imul edx, eax
mov eax, dword [esp + 0xc]
add edx, eax
mov eax, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], esi
mov esi, dword [esp + 4]
mov dword [esp + 4], ebx
mov ebx, eax
mov ebp, dword [esp + 0x78]
lea esi, [esi]
lea esi, [esi]
nop
inc ebx
mov eax, edx
shr eax, 0x10
add eax, esi
add edx, ebp
cmp eax, ecx
jb 0x418450
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0x8000]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x18]
dec ecx
lea eax, [ebx + eax - 0x8000]
shr eax, 0x10
mov ebx, dword [esp + 8]
add eax, ebx
mov dword [esp + 8], ecx
cmp eax, ecx
mov ecx, dword [esp]
jae 0x4184d6
mov edx, ecx
inc edx
mov eax, dword [esp + 0x40]
imul edx, eax
mov eax, dword [esp + 4]
add edx, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0x40]
lea esi, [esi]
inc ecx
mov eax, edx
shr eax, 0x10
add eax, ebx
add edx, ebp
cmp eax, esi
jb 0x4184c0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x58], eax
mov ebx, dword [esp]
cmp eax, ebx
jg 0x418c61
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
cmp eax, ecx
jg 0x418c58
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x70], eax
mov dword [esp + 0x4c], eax
cmp eax, esi
jg 0x418c4f
mov eax, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
mov ebx, dword [esp + 0x14]
cmp eax, ebx
jg 0x418c46
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
add eax, ebx
imul eax, edi
mov ecx, dword [esp + 0x54]
add eax, ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x7c]
cmp ebx, eax
jge 0x418aaa
mov ebx, dword [esp + 0x40]
mov eax, ebx
mov esi, dword [esp + 0x5c]
imul eax, esi
mov edx, dword [esp + 4]
add eax, edx
shr eax, 0x10
shl eax, 2
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
imul eax, ecx
mov ecx, dword [esp + 0xc]
add ecx, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x60]
lea eax, [ecx + esi*4]
add eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
lea eax, [ebp + eax*4]
add eax, ecx
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x58]
lea eax, [ecx + esi*4]
add eax, ebp
mov dword [esp + 0x2c], eax
mov eax, ebx
imul eax, esi
add eax, edx
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x80], edi
nop
mov eax, dword [esp + 0x64]
movzx ebx, ah
mov dword [esp + 0x20], ebx
shr eax, 0x10
mov ebx, dword [esp + 0x24]
imul eax, ebx
mov ebx, dword [esp + 0x84]
add eax, ebx
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x58]
test edx, edx
jle 0x418720
mov eax, 0x100
mov ebx, dword [esp + 0x20]
sub eax, ebx
shl eax, 8
mov dword [esp + 0xc], eax
shl ebx, 8
mov ecx, ebx
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
lea edx, [ebx + eax]
mov edi, dword [esp + 0x24]
add eax, edi
add eax, ebx
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x60]
add ebx, edi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov ebx, dword [esp + 0x74]
movzx ebp, byte [edx]
and ebp, 0xff
mov edi, dword [esp + 0xc]
imul ebp, edi
mov eax, dword [esp]
movzx esi, byte [eax]
and esi, 0xff
imul esi, ecx
lea esi, [ebp + esi + 0x8000]
shr esi, 0x10
mov eax, esi
mov bl, al
movzx ebp, byte [edx + 1]
and ebp, 0xff
imul ebp, edi
mov eax, dword [esp]
movzx esi, byte [eax + 1]
and esi, 0xff
imul esi, ecx
lea esi, [ebp + esi + 0x8000]
shr esi, 0x10
mov dword [esp + 8], esi
mov bh, byte [esp + 8]
movzx ebp, byte [edx + 2]
and ebp, 0xff
mov eax, edi
imul ebp, edi
mov edi, dword [esp]
movzx esi, byte [edi + 2]
and esi, 0xff
imul esi, ecx
lea esi, [ebp + esi + 0x8000]
and esi, 0xff0000
mov dword [esp + 8], esi
xor edi, edi
mov di, bx
movzx ebp, byte [edx + 3]
and ebp, 0xff
imul ebp, eax
mov eax, dword [esp]
movzx esi, byte [eax + 3]
and esi, 0xff
imul esi, ecx
lea esi, [ebp + esi + 0x8000]
shr esi, 0x10
shl esi, 0x18
mov eax, dword [esp + 8]
or edi, eax
mov ebx, edi
or ebx, esi
mov eax, dword [esp + 4]
mov dword [eax], ebx
add eax, 4
mov dword [esp + 4], eax
cmp dword [esp + 0x2c], eax
jne 0x418640
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x5c]
cmp dword [esp + 0x58], ebx
jge 0x41893e
mov eax, 0x100
mov ebx, dword [esp + 0x20]
sub eax, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea esi, [esi]
lea esi, [esi]
nop
mov ebx, dword [esp + 0x14]
movzx edx, bh
mov ecx, 0x100
sub ecx, edx
mov esi, dword [esp + 0x3c]
mov edi, esi
imul edi, ecx
mov dword [esp], edi
imul esi, edx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x20]
imul ecx, ebp
mov dword [esp + 4], ecx
imul edx, ebp
mov dword [esp + 8], edx
mov edx, ebx
shr edx, 0x10
mov ebp, dword [esp + 0x28]
lea edx, [ebp + edx*4]
mov ebp, dword [esp + 0x34]
lea edi, [ebp + edx]
lea ebx, [ebp + edx + 4]
mov ecx, dword [esp + 0x24]
add edx, ecx
lea ecx, [ebp + edx]
mov dword [esp + 0xc], ecx
lea ebp, [ebp + edx + 4]
mov esi, ebp
movzx ebp, byte [edi]
and ebp, 0xff
mov edx, dword [esp]
imul ebp, edx
mov dword [esp + 0x1c], ebx
xor edx, edx
mov dl, byte [ebx]
mov ecx, dword [esp + 0x10]
imul edx, ecx
lea edx, [ebp + edx + 0x8000]
mov ebx, dword [esp + 0xc]
movzx ebp, byte [ebx]
and ebp, 0xff
mov ebx, dword [esp + 4]
imul ebp, ebx
add edx, ebp
mov dword [esp + 0x10], esi
movzx ebp, byte [esi]
and ebp, 0xff
mov esi, dword [esp + 8]
imul ebp, esi
add edx, ebp
shr edx, 0x10
mov al, dl
movzx ebp, byte [edi + 1]
and ebp, 0xff
mov edx, dword [esp]
imul ebp, edx
mov ebx, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [ebx + 1]
imul edx, ecx
lea edx, [ebp + edx + 0x8000]
mov esi, dword [esp + 0xc]
movzx ebp, byte [esi + 1]
and ebp, 0xff
mov esi, dword [esp + 4]
imul ebp, esi
add edx, ebp
mov ebp, dword [esp + 0x10]
movzx esi, byte [ebp + 1]
and esi, 0xff
mov ebp, esi
mov esi, dword [esp + 8]
imul ebp, esi
add edx, ebp
shr edx, 0x10
mov ah, dl
movzx ebp, byte [edi + 2]
and ebp, 0xff
mov edx, dword [esp]
imul ebp, edx
xor edx, edx
mov dl, byte [ebx + 2]
imul edx, ecx
lea edx, [ebp + edx + 0x8000]
mov esi, dword [esp + 0xc]
movzx ebp, byte [esi + 2]
and ebp, 0xff
mov esi, dword [esp + 4]
imul ebp, esi
add edx, ebp
mov ebp, dword [esp + 0x10]
movzx esi, byte [ebp + 2]
and esi, 0xff
mov ebp, esi
mov esi, dword [esp + 8]
imul ebp, esi
add edx, ebp
mov ebp, edx
and ebp, 0xff0000
and eax, 0xffff
xor edx, edx
mov dl, byte [edi + 3]
mov edi, dword [esp]
imul edx, edi
movzx edi, byte [ebx + 3]
and edi, 0xff
mov esi, edi
imul esi, ecx
lea edx, [edx + esi + 0x8000]
mov ebx, dword [esp + 0xc]
xor ecx, ecx
mov cl, byte [ebx + 3]
mov ebx, ecx
mov ecx, dword [esp + 4]
imul ebx, ecx
add ebx, edx
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [ecx + 3]
mov esi, dword [esp + 8]
imul edx, esi
add ebx, edx
shr ebx, 0x10
shl ebx, 0x18
or eax, ebp
or eax, ebx
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov edi, dword [esp + 0x40]
add dword [esp + 0x14], edi
add ecx, 4
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x30], ecx
jne 0x418760
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x5c]
cmp dword [esp + 0x6c], ebx
jle 0x418a70
mov eax, 0x100
mov ebx, dword [esp + 0x20]
sub eax, ebx
shl eax, 8
mov dword [esp + 0xc], eax
shl ebx, 8
mov ecx, ebx
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x8c]
add eax, ebx
mov ebx, dword [esp + 0x34]
lea edx, [ebx + eax]
mov edi, dword [esp + 0x24]
add eax, edi
add eax, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov ebx, dword [esp + 0x68]
nop
movzx edi, byte [edx]
and edi, 0xff
mov ebp, dword [esp + 0xc]
imul edi, ebp
mov eax, dword [esp]
movzx esi, byte [eax]
and esi, 0xff
imul esi, ecx
lea esi, [edi + esi + 0x8000]
shr esi, 0x10
mov eax, esi
mov bl, al
movzx edi, byte [edx + 1]
and edi, 0xff
imul edi, ebp
mov eax, dword [esp]
movzx esi, byte [eax + 1]
and esi, 0xff
imul esi, ecx
lea esi, [edi + esi + 0x8000]
shr esi, 0x10
mov dword [esp + 8], esi
mov bh, byte [esp + 8]
movzx edi, byte [edx + 2]
and edi, 0xff
mov eax, ebp
imul edi, ebp
mov esi, dword [esp]
movzx esi, byte [esi + 2]
and esi, 0xff
imul esi, ecx
lea esi, [edi + esi + 0x8000]
and esi, 0xff0000
mov dword [esp + 8], esi
xor ebp, ebp
mov bp, bx
movzx edi, byte [edx + 3]
and edi, 0xff
imul edi, eax
mov eax, dword [esp]
movzx esi, byte [eax + 3]
and esi, 0xff
imul esi, ecx
lea esi, [edi + esi + 0x8000]
shr esi, 0x10
shl esi, 0x18
mov eax, dword [esp + 8]
or ebp, eax
mov ebx, ebp
or ebx, esi
mov eax, dword [esp + 4]
mov dword [eax], ebx
add eax, 4
mov dword [esp + 4], eax
cmp dword [esp + 0x38], eax
jne 0x418990
mov dword [esp + 0x68], ebx
mov eax, dword [esp + 0x80]
add dword [esp + 0x60], eax
inc dword [esp + 0x44]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x78]
add dword [esp + 0x64], edi
add dword [esp + 0x30], eax
add dword [esp + 0x38], eax
add dword [esp + 0x2c], eax
cmp dword [esp + 0x7c], ebx
jne 0x4185d0
mov ebp, dword [esp + 0x88]
mov edi, eax
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jle 0x418b92
mov eax, dword [esp + 0x70]
lea ebx, [eax - 1]
mov dword [esp], ebx
dec eax
jle 0x417843
mov eax, dword [esp + 0x6c]
lea edx, [eax*4]
xor eax, eax
jmp 0x418b0f
test edx, edx
je 0x418af2
mov bl, byte [esi]
mov byte [ecx], bl
xor ebx, ebx
test ebx, ebx
jne 0x418c99
inc eax
cmp dword [esp + 0x4c], eax
je 0x418b92
mov ebx, dword [esp]
cmp eax, ebx
je 0x418b92
mov ebx, dword [esp + 0x48]
mov edi, dword [ebx + 4]
mov esi, dword [esp + 0x50]
imul esi, edi
mov ebx, dword [esp + 0x54]
add esi, ebx
mov ecx, eax
imul ecx, edi
add ecx, esi
add ecx, ebp
mov ebx, dword [esp + 0x4c]
imul edi, ebx
add esi, edi
add esi, ebp
cmp edx, 4
jb 0x418ae0
mov edi, dword [esi]
mov dword [ecx], edi
mov edi, dword [esi + edx - 4]
mov dword [ecx + edx - 4], edi
lea edi, [ecx + 4]
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x418af2
mov dword [esp + 0x80], ebx
jmp 0x417aa5
mov dword [esp + 0x5c], ecx
jmp 0x417a79
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
cmp eax, ecx
jle 0x417a79
jmp 0x418b60
mov ebp, esi
jmp 0x417a8e
lea esi, [esp + 0x98]
jmp 0x41828c
mov edx, dword [esp + 0x7c]
test edx, edx
jle 0x417843
cmp dword [esp + 0x70], edx
jle 0x417843
mov eax, dword [esp + 0x6c]
lea eax, [eax*4]
lea ebx, [edx - 1]
mov dword [esp], ebx
jmp 0x418bdd
test eax, eax
je 0x418bd2
mov bl, byte [esi]
mov byte [ecx], bl
xor ebx, ebx
test ebx, ebx
jne 0x418c8a
inc edx
cmp dword [esp + 0x70], edx
je 0x417843
mov ebx, dword [esp + 0x48]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x50]
imul edi, esi
mov ebx, dword [esp + 0x54]
add edi, ebx
mov ecx, edx
imul ecx, esi
add ecx, edi
add ecx, ebp
mov ebx, dword [esp]
imul esi, ebx
add esi, edi
add esi, ebp
cmp eax, 4
jb 0x418bc0
mov edi, dword [esi]
mov dword [ecx], edi
mov edi, dword [esi + eax - 4]
mov dword [ecx + eax - 4], edi
lea edi, [ecx + 4]
and edi, 0xfffffffc
sub ecx, edi
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x418bd2
mov si, word [esi + eax - 2]
mov word [ecx + eax - 2], si
jmp 0x4181f2
mov si, word [esi + edx - 2]
mov word [ecx + edx - 2], si
jmp 0x418152
mov dword [esp + 0x7c], ebx
jmp 0x41852b
mov dword [esp + 0x4c], esi
jmp 0x418517
mov dword [esp + 0x5c], ecx
jmp 0x418500
mov dword [esp + 0x58], ebx
jmp 0x4184f0
xor edx, edx
xor esi, esi
jmp 0x417950
xor edi, edi
jmp 0x41799d
mov dword [esp + 0xc], esi
jmp 0x4179fa
mov ecx, edi
jmp 0x417a52
mov si, word [esi + eax - 2]
mov word [ecx + eax - 2], si
jmp 0x418bd2
mov si, word [esi + edx - 2]
mov word [ecx + edx - 2], si
jmp 0x418af2
mov dword [esp + 0x14], esi
jmp 0x41846e
xor ebx, ebx
mov dword [esp], 0
jmp 0x4183ee
xor edx, edx
xor esi, esi
jmp 0x4183a3