Function at 0x4606a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ecx]
push edi
mov dword [ebp - 0x14], ecx
call dword [eax + 0x50]
mov ecx, dword [ebp + 8]
push 0
push 0x52c31c
push 0x52c300
push 0
push ecx
call fcn.004db5d9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4619ad
mov eax, dword [edi + 0x24]
test eax, eax
push ebx
push esi
mov dword [ebp - 0x24], eax
jne 0x461043
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x50]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, edi
mov dword [ebp - 0x4c], eax
call fcn.00457310
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov dword [ebp - 0xc], eax
call fcn.004db200
call fcn.004d8d68
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call fcn.004db200
call fcn.004d8d68
fild dword [ebp - 0x20]
add esp, 8
mov dword [ebp - 0x10], eax
fstp qword [ebp - 0x54]
fld qword [esi]
fsub qword [ebp - 0x54]
fadd qword [esi + 0x10]
fstp qword [esp]
call fcn.004db0e0
call fcn.004d8d68
fild dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
fstp qword [ebp - 0x5c]
fld qword [esi + 8]
fsub qword [ebp - 0x5c]
fadd qword [esi + 0x18]
fstp qword [esp]
call fcn.004db0e0
call fcn.004d8d68
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 8]
add ebx, 4
mov edi, ebx
imul edi, eax
mov ecx, edx
mov ecx, dword [ecx + 0xc]
add ecx, 4
shl edi, 4
push edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp - 0x44], ecx
call fcn.004c9574
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [ebp - 8], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
add esp, 0xc
fild dword [ebp - 0x1c]
fcom qword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x460b22
fdiv qword [esi + 0x10]
mov eax, dword [ebp - 0x28]
test eax, eax
mov dword [ebp - 0x18], 0
fld qword [ebp - 0x54]
fsub qword [esi]
fmul st(1)
fadd qword [0x4fc220]
jle 0x4609dd
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
lea edi, [ecx + eax*4]
mov dword [ebp - 0x24], edi
mov edi, edi
fild dword [ebp - 0x18]
fmul st(2)
fadd st(1)
fld st(0)
fadd st(3)
fld st(1)
call fcn.004d8d68
fld st(0)
mov esi, eax
call fcn.004d8d68
cmp esi, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], edi
jne 0x4608c1
mov edx, dword [ebp - 8]
fstp st(0)
fstp st(0)
shl esi, 4
fld st(1)
add esi, edx
fmul qword [0x502110]
call fcn.004d8d68
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x4609bc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
shl edx, 4
add edx, 0xfffffff4
mov dword [ebp - 0x10], edx
lea edx, [ecx*4]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 4]
lea esp, [esp]
mov ecx, dword [edi]
mov ebx, ecx
and ebx, 0xff
imul ebx, eax
add dword [esi], ebx
movzx ebx, ch
imul ebx, eax
add dword [esi + 4], ebx
add esi, 4
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
add dword [esi + 4], ebx
mov dword [ebp - 0x2c], ecx
shr ecx, 0x18
imul ecx, eax
add esi, 4
mov ebx, dword [esi + 4]
add esi, 4
add ebx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi], ebx
mov ebx, dword [ebp - 0x20]
add esi, ecx
add edi, ebx
dec edx
jne 0x460870
jmp 0x4609bc
fild dword [ebp - 0x2c]
fld st(0)
fsub st(3)
fmul qword [0x502110]
call fcn.004d8d68
fxch st(1)
fsub st(1)
mov ebx, eax
fmul qword [0x502110]
call fcn.004d8d68
fstp st(0)
mov ecx, dword [ebp - 8]
fstp st(0)
shl esi, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add esi, ecx
test eax, eax
mov ecx, esi
jle 0x4609bc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
shl eax, 4
add eax, 0xffffffe4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], edx
mov esi, dword [edi]
mov edx, dword [ecx]
mov edi, esi
and edi, 0xff
mov eax, edi
imul eax, ebx
add edx, eax
mov dword [ecx], edx
mov edx, esi
shr edx, 8
and edx, 0xff
mov eax, edx
imul eax, ebx
add dword [ecx + 4], eax
add ecx, 4
mov dword [ebp - 0x2c], esi
shr esi, 0x10
and esi, 0xff
mov eax, esi
imul eax, ebx
add dword [ecx + 4], eax
mov eax, dword [ebp - 0x2c]
add ecx, 4
shr eax, 0x18
mov dword [ebp - 0x2c], eax
imul eax, ebx
add dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
imul edi, eax
imul edx, eax
imul esi, eax
add ecx, 4
add dword [ecx + 4], edi
add ecx, 4
mov edi, dword [ecx + 4]
add ecx, 4
add edi, edx
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edi
imul edx, eax
mov edi, dword [ecx + 4]
mov eax, dword [ebp - 0xc]
add ecx, 4
add edi, esi
mov esi, dword [ebp - 0x30]
mov dword [ecx], edi
mov edi, dword [ecx + 4]
add ecx, 4
add edi, edx
mov dword [ecx], edi
mov edi, dword [ebp - 0x20]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x1c]
add ecx, esi
dec eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
jne 0x460912
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
inc eax
add edi, 4
cmp eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edi
jl 0x460800
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
fstp st(0)
mov edi, dword [ebp - 0x44]
fstp st(0)
imul edi, ebx
shl edi, 4
push edi
call fcn.004c9574
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [ebp - 0xc], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
add esp, 4
fild dword [ebp - 0x20]
fcom qword [esi + 0x18]
fnstsw ax
test ah, 0x41
jp 0x460d66
fdiv qword [esi + 0x18]
mov eax, dword [ebp - 4]
test eax, eax
mov dword [ebp + 0x10], 0
fstp qword [ebp - 0x54]
fld qword [ebp - 0x5c]
fsub qword [esi + 8]
fmul qword [ebp - 0x54]
fadd qword [0x4fc220]
fstp qword [ebp - 0x64]
jle 0x460ed6
mov ecx, dword [ebp - 8]
shl ebx, 4
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x1c], ecx
lea esp, [esp]
fild dword [ebp + 0x10]
fmul qword [ebp - 0x54]
fadd qword [ebp - 0x64]
fst qword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
fadd qword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
push edx
push eax
fstp qword [ebp - 0x38]
call fcn.004db200
call fcn.004d8d68
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push ecx
push edx
mov edi, eax
call fcn.004db200
add esp, 0x10
call fcn.004d8d68
cmp edi, eax
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
jne 0x460c78
mov ebx, dword [ebp + 8]
fld qword [ebp - 0x54]
mov edx, dword [ebp - 0xc]
fmul qword [0x502108]
imul edi, ebx
shl edi, 4
add edi, edx
call fcn.004d8d68
test ebx, ebx
jle 0x460d41
mov ecx, ebx
nop
mov edx, dword [esi]
mov ebx, dword [edi]
imul edx, eax
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
add esi, 4
add edi, 4
dec ecx
jne 0x460ad0
jmp 0x460d41
fstp st(0)
dec ecx
fld qword [esi + 0x10]
mov dword [ebp - 0x30], ecx
fsub qword [0x4fc220]
lea eax, [ebx - 1]
cmp eax, 1
fild dword [ebp - 0x30]
mov dword [ebp - 0x1c], 1
fdivp st(1)
jle 0x4609df
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
add esi, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
lea esp, [esp]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
dec ecx
mov dword [ebp - 0x30], ecx
fild dword [ebp - 0x30]
fmul st(1)
fadd qword [edx]
fld st(0)
call fcn.004d8d68
mov ebx, eax
mov dword [ebp - 0x30], ebx
fild dword [ebp - 0x30]
fsubr st(1)
fsubr qword [0x4fc220]
fmul qword [0x502110]
call fcn.004d8d68
fstp st(0)
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
add ecx, ebx
mov edi, 0x101
lea ecx, [edx + ecx*4]
mov edx, dword [ebp - 4]
sub edi, eax
test edx, edx
mov dword [ebp - 0x18], edi
jle 0x460c51
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0xfffffff4
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov edx, dword [ecx]
add ecx, 4
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ecx]
mov ebx, ecx
and ebx, 0xff
imul ebx, edi
mov edi, edx
and edi, 0xff
imul edi, eax
add ebx, edi
mov dword [esi], ebx
movzx edi, ch
imul edi, dword [ebp - 0x18]
movzx ebx, dh
imul ebx, eax
add edi, ebx
mov ebx, edx
mov dword [esi + 4], edi
mov dword [ebp - 0x30], ecx
movzx edi, byte [ebp - 0x2e]
imul edi, dword [ebp - 0x18]
add esi, 4
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
mov dword [ebp - 0x34], edx
add esi, 4
add edi, ebx
shr ecx, 0x18
mov dword [esi], edi
mov edi, dword [ebp - 0x18]
shr edx, 0x18
imul ecx, edi
imul edx, eax
add ecx, edx
mov edx, dword [ebp - 0xc]
add esi, 4
mov dword [esi], ecx
add esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*4 - 4]
add ecx, edx
dec dword [ebp - 0x28]
jne 0x460bc7
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
inc ecx
add esi, 0x10
dec eax
cmp ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], esi
jl 0x460b60
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
jmp 0x4609df
fild dword [ebp - 0x28]
fld qword [ebp - 0x40]
fsubr st(1)
fmul qword [0x502108]
call fcn.004d8d68
fld qword [ebp - 0x38]
fsub st(1)
mov ebx, eax
fmul qword [0x502108]
call fcn.004d8d68
fstp st(0)
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
imul edi, edx
shl edi, 4
add edi, ecx
mov ecx, edi
mov edi, dword [ebp - 0x28]
imul edi, edx
mov edx, dword [ebp - 0xc]
shl edi, 4
add edi, edx
mov edx, edi
mov edi, dword [ebp + 8]
test edi, edi
jle 0x460d41
mov dword [ebp - 0x28], edi
lea esp, [esp]
mov edi, dword [esi]
imul edi, ebx
add dword [ecx], edi
mov edi, dword [esi]
imul edi, eax
add dword [edx], edi
mov edi, dword [esi + 4]
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add esi, 4
imul edi, eax
add dword [edx + 4], edi
mov edi, dword [esi + 4]
add ecx, 4
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add edx, 4
imul edi, eax
add dword [edx + 4], edi
add esi, 4
mov edi, dword [esi + 4]
add ecx, 4
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add edx, 4
imul edi, eax
add dword [edx + 4], edi
add esi, 4
mov edi, dword [ebp - 0x28]
add ecx, 4
add edx, 4
add ecx, 4
add esi, 4
add edx, 4
dec edi
mov dword [ebp - 0x28], edi
jne 0x460cd0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
add edx, ecx
mov ecx, dword [ebp - 4]
inc eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x1c], edx
jl 0x460a60
mov ebx, dword [ebp + 8]
jmp 0x460ed6
fstp st(0)
lea edx, [ecx - 1]
fld qword [esi + 0x18]
mov dword [ebp - 0x44], edx
fsub qword [0x4fc220]
inc ecx
cmp ecx, 1
fild dword [ebp - 0x44]
mov dword [ebp - 0x18], 1
fdivp st(1)
jle 0x460ed4
mov eax, dword [ebp - 0xc]
shl ebx, 4
lea edi, [ebx + eax + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edi
lea ecx, [ecx]
mov esi, dword [ebp + 0x10]
fld qword [esi + 8]
fld st(0)
call fcn.004d8d68
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
dec ecx
mov dword [ebp - 0x44], ecx
fsubp st(1)
fild dword [ebp - 0x44]
fmul st(2)
faddp st(1)
fld st(0)
call fcn.004d8d68
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fxch st(1)
fsub st(1)
fsubr qword [0x4fc220]
fmul qword [0x502108]
call fcn.004d8d68
fld qword [esi + 8]
mov ecx, dword [ebp - 0x1c]
fadd qword [esi + 0x18]
imul ecx, dword [ebp + 8]
fsub qword [0x4fc220]
fxch st(1)
fcompp
mov ebx, eax
mov eax, dword [ebp - 8]
mov edx, pe_nt_image_headers32
sub edx, ebx
inc ecx
shl ecx, 4
add ecx, eax
mov dword [ebp - 0x10], ebx
fnstsw ax
test ah, 0x44
jp 0x460e1c
mov eax, ecx
jmp 0x460e2d
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
inc eax
imul eax, dword [ebp + 8]
inc eax
shl eax, 4
add eax, esi
mov esi, dword [ebp + 8]
dec esi
cmp esi, 1
jle 0x460eb0
dec esi
mov dword [ebp - 0x28], esi
jmp 0x460e40
mov ebx, dword [ebp - 0x10]
nop
mov esi, dword [ecx]
imul esi, ebx
mov ebx, dword [eax]
imul ebx, edx
add esi, ebx
mov dword [edi], esi
mov esi, dword [ecx + 4]
imul esi, dword [ebp - 0x10]
mov ebx, dword [eax + 4]
add eax, 4
imul ebx, edx
add ecx, 4
add esi, ebx
mov dword [edi + 4], esi
mov esi, dword [ecx + 4]
mov ebx, dword [eax + 4]
imul esi, dword [ebp - 0x10]
add edi, 4
imul ebx, edx
add eax, 4
add ecx, 4
add esi, ebx
mov dword [edi + 4], esi
mov esi, dword [ecx + 4]
mov ebx, dword [eax + 4]
imul esi, dword [ebp - 0x10]
add edi, 4
imul ebx, edx
add eax, 4
add ecx, 4
add edi, 4
add esi, ebx
mov dword [edi], esi
mov esi, dword [ebp - 0x28]
add edi, 4
add eax, 4
add ecx, 4
dec esi
mov dword [ebp - 0x28], esi
jne 0x460e3c
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
inc eax
add edi, ebx
inc ecx
cmp eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edi
jl 0x460da0
mov ebx, dword [ebp + 8]
fstp st(0)
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
xor edx, edx
test ecx, ecx
mov dword [ebp - 0x24], edx
jle 0x46198e
mov ecx, dword [ebp - 0xc]
shl ebx, 4
lea eax, [ebx + ecx + 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx]
add eax, edx
imul eax, dword [esi + 4]
mov esi, dword [ebp - 0x4c]
add eax, edi
lea eax, [esi + eax*4]
mov esi, dword [ecx + 8]
test esi, esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x28], 0
jle 0x461024
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], ecx
movzx ebx, word [ecx + 6]
test ebx, ebx
movzx edx, word [ecx - 6]
mov dword [ebp - 0x44], edx
je 0x460ffd
mov ecx, dword [eax]
mov esi, ecx
shr esi, 0x18
mov edi, 0xff
sub edi, esi
imul edi, ebx
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, esi
mov dword [ebp - 0x3c], edx
mov eax, ebx
imul eax, eax, 0xff
add esi, ebx
cdq
idiv esi
mov edx, dword [ebp + 0x10]
movzx edi, word [edx + 2]
mov edx, ecx
and edx, 0xff0000
mov esi, pe_nt_image_headers32
sub esi, eax
imul edi, eax
imul edx, esi
shr edx, 8
and edx, 0xff0000
and edi, 0xffffff00
shl edi, 8
add edi, edx
mov edx, ecx
and edx, 0xff
mov ebx, eax
imul edx, esi
imul ebx, dword [ebp - 0x44]
movzx edx, dh
sar ebx, 8
add edx, ebx
or edi, edx
mov edx, dword [ebp + 0x10]
movzx edx, word [edx - 2]
and ecx, 0xff00
imul eax, edx
imul ecx, esi
shr ecx, 8
and eax, 0xffffff00
and ecx, 0xff00
add ecx, eax
mov eax, dword [ebp - 0x3c]
or edi, ecx
mov ecx, dword [ebp + 0x10]
shl eax, 0x18
or edi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 8]
add eax, 4
inc edx
add ecx, 0x10
cmp edx, edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x28], edx
mov dword [ebp + 0x10], ecx
jl 0x460f34
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
inc edx
add esi, ebx
cmp edx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], esi
jl 0x460f00
jmp 0x46198e
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0x20], eax
call dword [edx + 0x50]
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.00457310
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
push eax
push ecx
call fcn.004db200
call fcn.004d8d68
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push edx
push eax
call fcn.004db200
call fcn.004d8d68
fild dword [ebp - 0x28]
add esp, 8
mov dword [ebp - 0xc], eax
fstp qword [ebp - 0x5c]
fld qword [ebx]
fsub qword [ebp - 0x5c]
fadd qword [ebx + 0x10]
fstp qword [esp]
call fcn.004db0e0
call fcn.004d8d68
fild dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
fstp qword [ebp - 0x64]
fld qword [ebx + 8]
fsub qword [ebp - 0x64]
fadd qword [ebx + 0x18]
fstp qword [esp]
call fcn.004db0e0
call fcn.004d8d68
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
add esi, 4
mov edi, esi
imul edi, eax
mov edx, ecx
mov ecx, dword [edx + 0xc]
add ecx, 4
shl edi, 4
push edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ecx
call fcn.004c9574
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [ebp - 8], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
add esp, 0xc
fild dword [ebp - 0x1c]
fcom qword [ebx + 0x10]
fnstsw ax
test ah, 0x41
jp 0x461492
fdiv qword [ebx + 0x10]
mov eax, dword [ebp - 0x2c]
test eax, eax
mov dword [ebp - 0x18], 0
fld qword [ebp - 0x5c]
fsub qword [ebx]
fmul st(1)
fadd qword [0x4fc220]
jle 0x46134a
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x4c], eax
lea esp, [esp]
fild dword [ebp - 0x18]
fmul st(2)
fadd st(1)
fld st(0)
fadd st(3)
fld st(1)
call fcn.004d8d68
fld st(0)
mov esi, eax
call fcn.004d8d68
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
add edx, ecx
cmp esi, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xc], edx
jne 0x461221
mov edx, dword [ebp - 8]
fstp st(0)
fstp st(0)
shl esi, 4
fld st(1)
add esi, edx
fmul qword [0x502110]
call fcn.004d8d68
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x461332
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0xfffffff4
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0xc]
mov edi, ecx
movzx ecx, byte [edx]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebx + ecx*4]
mov ebx, ecx
and ebx, 0xff
imul ebx, eax
add dword [esi], ebx
movzx ebx, ch
imul ebx, eax
add dword [esi + 4], ebx
add esi, 4
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
add dword [esi + 4], ebx
mov dword [ebp - 0x44], ecx
shr ecx, 0x18
imul ecx, eax
add esi, 4
mov ebx, dword [esi + 4]
add esi, 4
add ebx, ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi], ebx
mov ebx, dword [ebp - 0x10]
add esi, ecx
add edx, ebx
dec edi
jne 0x4611c6
mov dword [ebp - 0xc], edx
jmp 0x461332
fild dword [ebp - 0x44]
fld st(0)
fsub st(3)
fmul qword [0x502110]
call fcn.004d8d68
fxch st(1)
fsub st(1)
mov ebx, eax
fmul qword [0x502110]
call fcn.004d8d68
fstp st(0)
mov ecx, dword [ebp - 8]
fstp st(0)
shl esi, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
add esi, ecx
test eax, eax
mov ecx, esi
jle 0x461332
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0xffffffe4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
movzx edx, byte [eax]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax + edx*4]
mov esi, dword [ecx]
mov eax, edi
and eax, 0xff
mov edx, ebx
imul edx, eax
add esi, edx
mov dword [ecx], esi
mov esi, dword [ecx + 4]
mov edx, edi
mov dword [ebp - 0x44], eax
shr edx, 8
and edx, 0xff
add ecx, 4
mov eax, ebx
imul eax, edx
add esi, eax
mov dword [ecx], esi
mov esi, edi
shr esi, 0x10
and esi, 0xff
mov eax, ebx
imul eax, esi
add dword [ecx + 4], eax
shr edi, 0x18
add ecx, 4
mov eax, ebx
imul eax, edi
mov dword [ebp - 0x3c], edi
mov edi, dword [ecx + 4]
add edi, eax
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x44]
add ecx, 4
mov dword [ecx], edi
mov edi, dword [ecx + 4]
add ecx, 4
add edi, eax
mov eax, dword [ebp - 0x28]
mov dword [ecx], edi
mov edi, eax
imul edi, edx
mov edx, dword [ecx + 4]
add ecx, 4
add edx, edi
mov dword [ecx], edx
mov edi, dword [ecx + 4]
mov edx, eax
imul eax, dword [ebp - 0x3c]
imul edx, esi
mov esi, dword [ebp - 0x10]
add ecx, 4
add edi, edx
mov dword [ecx], edi
mov edx, dword [ecx + 4]
mov edi, dword [ebp - 0x34]
add ecx, 4
add edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ecx], edx
mov edx, dword [ebp - 0x20]
add eax, esi
add ecx, edi
dec edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], edx
jne 0x461272
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jl 0x461160
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
fstp st(0)
mov edi, dword [ebp - 0x30]
fstp st(0)
imul edi, esi
shl edi, 4
push edi
call fcn.004c9574
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [ebp - 0xc], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
add esp, 4
fild dword [ebp - 0x20]
fcom qword [ebx + 0x18]
fnstsw ax
test ah, 0x41
jp 0x4616c6
fdiv qword [ebx + 0x18]
mov eax, dword [ebp - 4]
test eax, eax
mov dword [ebp + 0x10], 0
fstp qword [ebp - 0x48]
fld qword [ebp - 0x64]
fsub qword [ebx + 8]
fmul qword [ebp - 0x48]
fadd qword [0x4fc220]
fstp qword [ebp - 0x64]
jle 0x46182c
mov ecx, dword [ebp - 8]
shl esi, 4
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x20], ecx
lea esp, [esp]
fild dword [ebp + 0x10]
fmul qword [ebp - 0x48]
fadd qword [ebp - 0x64]
fst qword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
fadd qword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
push edx
push eax
fstp qword [ebp - 0x38]
call fcn.004db200
call fcn.004d8d68
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push ecx
push edx
mov edi, eax
call fcn.004db200
add esp, 0x10
call fcn.004d8d68
cmp edi, eax
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
jne 0x4615d8
mov ebx, dword [ebp + 8]
fld qword [ebp - 0x48]
mov edx, dword [ebp - 0xc]
fmul qword [0x502108]
imul edi, ebx
shl edi, 4
add edi, edx
call fcn.004d8d68
test ebx, ebx
jle 0x4616a1
mov ecx, ebx
nop
mov edx, dword [esi]
mov ebx, dword [edi]
imul edx, eax
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
mov edx, dword [esi + 4]
mov ebx, dword [edi + 4]
imul edx, eax
add esi, 4
add edi, 4
add ebx, edx
mov dword [edi], ebx
add esi, 4
add edi, 4
dec ecx
jne 0x461440
jmp 0x4616a1
fstp st(0)
dec ecx
fld qword [ebx + 0x10]
mov dword [ebp - 0x4c], ecx
fsub qword [0x4fc220]
lea eax, [esi - 1]
cmp eax, 1
fild dword [ebp - 0x4c]
mov dword [ebp - 0x18], 1
fdivp st(1)
jle 0x46134c
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
add eax, ecx
add esi, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], esi
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
dec edx
mov dword [ebp - 0x4c], edx
fild dword [ebp - 0x4c]
fmul st(1)
fadd qword [eax]
fld st(0)
call fcn.004d8d68
mov edi, eax
mov dword [ebp - 0x4c], edi
fild dword [ebp - 0x4c]
fsubr st(1)
fsubr qword [0x4fc220]
fmul qword [0x502110]
call fcn.004d8d68
fstp st(0)
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
mov ebx, 0x101
sub ebx, eax
add ecx, edi
test edx, edx
mov dword [ebp - 0x1c], ebx
jle 0x4615b1
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0xfffffff4
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
movzx edx, byte [ecx]
inc ecx
mov dword [ebp - 0x34], ecx
movzx ecx, byte [ecx]
mov edi, ecx
and edi, 0xff
imul edi, ebx
mov ebx, edx
and ebx, 0xff
imul ebx, eax
add edi, ebx
mov dword [esi], edi
movzx edi, ch
imul edi, dword [ebp - 0x1c]
movzx ebx, dh
imul ebx, eax
add edi, ebx
mov ebx, edx
mov dword [ebp - 0x4c], ecx
add esi, 4
mov dword [esi], edi
movzx edi, byte [ebp - 0x4a]
imul edi, dword [ebp - 0x1c]
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
mov dword [ebp - 0x3c], edx
shr ecx, 0x18
add edi, ebx
mov ebx, dword [ebp - 0x1c]
shr edx, 0x18
imul ecx, ebx
imul edx, eax
add esi, 4
add ecx, edx
mov edx, dword [ebp - 0x10]
mov dword [esi], edi
add esi, 4
mov dword [esi], ecx
add esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
dec edx
add ecx, edx
dec dword [ebp - 0x2c]
jne 0x461532
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
inc ecx
add esi, 0x10
dec eax
cmp ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], esi
jl 0x4614d1
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
jmp 0x46134c
fild dword [ebp - 0x2c]
fld qword [ebp - 0x40]
fsubr st(1)
fmul qword [0x502108]
call fcn.004d8d68
fld qword [ebp - 0x38]
fsub st(1)
mov ebx, eax
fmul qword [0x502108]
call fcn.004d8d68
fstp st(0)
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
imul edi, edx
shl edi, 4
add edi, ecx
mov ecx, edi
mov edi, dword [ebp - 0x2c]
imul edi, edx
mov edx, dword [ebp - 0xc]
shl edi, 4
add edi, edx
mov edx, edi
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4616a1
mov dword [ebp - 0x2c], edi
lea esp, [esp]
mov edi, dword [esi]
imul edi, ebx
add dword [ecx], edi
mov edi, dword [esi]
imul edi, eax
add dword [edx], edi
mov edi, dword [esi + 4]
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add esi, 4
imul edi, eax
add dword [edx + 4], edi
mov edi, dword [esi + 4]
add ecx, 4
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add edx, 4
imul edi, eax
add dword [edx + 4], edi
add esi, 4
mov edi, dword [esi + 4]
add ecx, 4
imul edi, ebx
add dword [ecx + 4], edi
mov edi, dword [esi + 4]
add edx, 4
imul edi, eax
add dword [edx + 4], edi
add esi, 4
mov edi, dword [ebp - 0x2c]
add ecx, 4
add edx, 4
add ecx, 4
add esi, 4
add edx, 4
dec edi
mov dword [ebp - 0x2c], edi
jne 0x461630
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
add edx, ecx
mov ecx, dword [ebp - 4]
inc eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x20], edx
jl 0x4613d0
mov esi, dword [ebp + 8]
jmp 0x46182c
fstp st(0)
lea edx, [ecx - 1]
fld qword [ebx + 0x18]
mov dword [ebp - 0x4c], edx
fsub qword [0x4fc220]
mov edi, 1
fild dword [ebp - 0x4c]
inc ecx
cmp ecx, edi
fdivp st(1)
mov dword [ebp - 0x28], edi
jle 0x46182a
mov eax, dword [ebp - 0xc]
shl esi, 4
mov dword [ebp - 0x20], esi
lea esi, [eax + esi + 0x10]
mov dword [ebp - 0x24], esi
lea ecx, [ecx]
fld qword [ebx + 8]
fld st(0)
call fcn.004d8d68
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
dec edi
mov dword [ebp - 0x4c], edi
fsubp st(1)
fild dword [ebp - 0x4c]
fmul st(2)
faddp st(1)
fld st(0)
call fcn.004d8d68
mov edi, eax
mov dword [ebp - 0x4c], edi
fild dword [ebp - 0x4c]
fxch st(1)
fsub st(1)
fsubr qword [0x4fc220]
fmul qword [0x502108]
call fcn.004d8d68
fld qword [ebx + 8]
fadd qword [ebx + 0x18]
mov ecx, edi
imul ecx, dword [ebp + 8]
fsub qword [0x4fc220]
fxch st(1)
fcompp
mov edx, pe_nt_image_headers32
sub edx, eax
inc ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
shl ecx, 4
add ecx, eax
fnstsw ax
test ah, 0x44
jp 0x461775
mov eax, ecx
jmp 0x461785
lea eax, [edi + 1]
imul eax, dword [ebp + 8]
mov edi, dword [ebp - 8]
inc eax
shl eax, 4
add eax, edi
mov edi, dword [ebp + 8]
dec edi
cmp edi, 1
jle 0x461806
dec edi
mov dword [ebp - 0x2c], edi
mov edi, dword [ecx]
imul edi, dword [ebp - 0x18]
mov ebx, dword [eax]
imul ebx, edx
add edi, ebx
mov dword [esi], edi
mov edi, dword [ecx + 4]
imul edi, dword [ebp - 0x18]
mov ebx, dword [eax + 4]
add eax, 4
imul ebx, edx
add ecx, 4
add edi, ebx
mov dword [esi + 4], edi
mov edi, dword [ecx + 4]
mov ebx, dword [eax + 4]
imul edi, dword [ebp - 0x18]
add esi, 4
imul ebx, edx
add eax, 4
add ecx, 4
add edi, ebx
mov dword [esi + 4], edi
mov edi, dword [ecx + 4]
mov ebx, dword [eax + 4]
imul edi, dword [ebp - 0x18]
add esi, 4
imul ebx, edx
add eax, 4
add ecx, 4
add esi, 4
add edi, ebx
mov dword [esi], edi
mov edi, dword [ebp - 0x2c]
add esi, 4
add eax, 4
add ecx, 4
dec edi
mov dword [ebp - 0x2c], edi
jne 0x461792
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
add esi, edx
mov edx, dword [ecx + 0xc]
inc edi
inc edx
cmp edi, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
jl 0x461700
mov esi, dword [ebp + 8]
fstp st(0)
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
xor edx, edx
test ecx, ecx
mov dword [ebp - 0x28], edx
jle 0x46198e
mov ecx, dword [ebp - 0xc]
shl esi, 4
lea eax, [ecx + esi + 0x18]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
nop
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ecx]
add eax, edx
imul eax, dword [edi + 4]
mov edi, dword [ebp - 0x50]
add eax, ebx
lea eax, [edi + eax*4]
mov edi, dword [ecx + 8]
test edi, edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], 0
jle 0x461974
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], ecx
movzx ebx, word [ecx + 6]
test ebx, ebx
movzx edx, word [ecx - 6]
mov dword [ebp - 0x4c], edx
je 0x46194d
mov ecx, dword [eax]
mov esi, ecx
shr esi, 0x18
mov edi, 0xff
sub edi, esi
imul edi, ebx
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, esi
mov dword [ebp - 0x44], edx
mov eax, ebx
imul eax, eax, 0xff
add esi, ebx
cdq
idiv esi
mov edx, dword [ebp + 0x10]
movzx edi, word [edx + 2]
mov edx, ecx
and edx, 0xff0000
mov esi, pe_nt_image_headers32
sub esi, eax
imul edi, eax
imul edx, esi
shr edx, 8
and edx, 0xff0000
and edi, 0xffffff00
shl edi, 8
add edi, edx
mov edx, ecx
and edx, 0xff
mov ebx, eax
imul edx, esi
imul ebx, dword [ebp - 0x4c]
movzx edx, dh
sar ebx, 8
add edx, ebx
or edi, edx
mov edx, dword [ebp + 0x10]
movzx edx, word [edx - 2]
and ecx, 0xff00
imul eax, edx
imul ecx, esi
shr ecx, 8
and eax, 0xffffff00
and ecx, 0xff00
add ecx, eax
mov eax, dword [ebp - 0x44]
or edi, ecx
mov ecx, dword [ebp + 0x10]
shl eax, 0x18
or edi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 8]
add eax, 4
inc edx
add ecx, 0x10
cmp edx, edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp + 0x10], ecx
jl 0x461884
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
inc edx
add edi, esi
cmp edx, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edi
jl 0x461850
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004d88be
mov edx, dword [ebp - 8]
push edx
call fcn.004d88be
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
add esp, 8
call dword [eax + 0x38]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14