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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
mov dword [esp + 0x24], esi
call dword [eax + 0x48]
mov ecx, dword [ebp + 8]
push 0
push 0x4e6484
push 0x4e65c0
push 0
push ecx
call fcn.004a1065
mov edi, eax
add esp, 0x14
test edi, edi
je 0x470c6b
mov eax, dword [edi + 0x10]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x470210
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
mov ecx, esi
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, edi
mov dword [esp + 0x5c], eax
call fcn.00476fe0
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push edx
mov dword [esp + 0x20], eax
call fcn.004a07b0
call fcn.0049f6d4
mov ecx, dword [ebx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
call fcn.004a07b0
call fcn.0049f6d4
fild dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x24], eax
fstp qword [esp + 0x68]
fld qword [ebx]
fsub qword [esp + 0x68]
fadd qword [ebx + 0x10]
fstp qword [esp]
call fcn.004a08e0
call fcn.0049f6d4
fild dword [esp + 0x24]
mov dword [esp + 0x3c], eax
fstp qword [esp + 0x70]
fld qword [ebx + 8]
fsub qword [esp + 0x70]
fadd qword [ebx + 0x18]
fstp qword [esp]
call fcn.004a08e0
call fcn.0049f6d4
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
add esi, 4
mov edi, esi
imul edi, eax
add ecx, 4
shl edi, 4
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x5c], ecx
call fcn.00490214
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [esp + 0x20], 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 ecx, dword [ebp + 8]
add esp, 0xc
call fcn.00476fe0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fcom qword [ebx + 0x10]
fnstsw ax
test ah, 0x41
jp 0x46fc72
fdiv qword [ebx + 0x10]
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x20], 0
fld qword [esp + 0x60]
fsub qword [ebx]
fmul st(1)
fadd qword [0x4c82d8]
jle 0x46fb0c
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea edi, [ecx + eax*4]
mov dword [esp + 0x30], edi
fild dword [esp + 0x20]
fmul st(2)
fadd st(1)
fld st(0)
fadd st(3)
fld st(1)
call fcn.0049f6d4
fld st(0)
mov esi, eax
call fcn.0049f6d4
cmp esi, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edi
jne 0x46f9cc
mov edx, dword [esp + 0x14]
fstp st(0)
fstp st(0)
shl esi, 4
fld st(1)
add esi, edx
fmul qword [0x4ccf40]
call fcn.0049f6d4
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x46fae8
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
shl edx, 4
add edx, 0xfffffff4
mov dword [esp + 0x1c], edx
lea edx, [ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
jmp 0x46f970
mov ecx, dword [edi]
mov edx, ecx
and edx, 0xff
imul edx, eax
add dword [esi], edx
movzx edx, ch
imul edx, eax
add dword [esi + 4], edx
add esi, 4
mov edx, ecx
shr edx, 0x10
movzx edx, dl
imul edx, eax
add dword [esi + 4], edx
mov dword [esp + 0x38], ecx
shr ecx, 0x18
imul ecx, eax
add esi, 4
mov edx, dword [esi + 4]
add esi, 4
add edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi], edx
mov edx, dword [esp + 0x28]
add esi, ecx
mov ecx, dword [esp + 0x2c]
add edi, edx
dec ecx
mov dword [esp + 0x2c], ecx
jne 0x46f970
jmp 0x46fae8
fild dword [esp + 0x38]
fld st(0)
fsub st(3)
fmul qword [0x4ccf40]
call fcn.0049f6d4
fxch st(1)
fsub st(1)
mov dword [esp + 0x38], eax
fmul qword [0x4ccf40]
call fcn.0049f6d4
fstp st(0)
mov ecx, dword [esp + 0x14]
fstp st(0)
shl esi, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
add esi, ecx
test eax, eax
mov ecx, esi
jle 0x46fae8
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x38]
shl eax, 4
add eax, 0xffffffe4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
jmp 0x46fa30
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 [esp + 0x38], esi
shr esi, 0x10
and esi, 0xff
mov eax, esi
imul eax, ebx
add dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
add ecx, 4
shr eax, 0x18
mov dword [esp + 0x38], eax
imul eax, ebx
add dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
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 [esp + 0x38]
mov dword [ecx], edi
imul edx, eax
mov edi, dword [ecx + 4]
mov eax, dword [esp + 0x18]
add ecx, 4
add edi, esi
mov esi, dword [esp + 0x3c]
mov dword [ecx], edi
mov edi, dword [ecx + 4]
add ecx, 4
add edi, edx
mov dword [ecx], edi
mov edi, dword [esp + 0x2c]
shl eax, 2
add edi, eax
mov eax, dword [esp + 0x28]
add ecx, esi
dec eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], eax
jne 0x46fa30
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
jl 0x46f8f4
mov esi, dword [esp + 0xc]
fstp st(0)
mov edi, dword [esp + 0x50]
fstp st(0)
imul edi, esi
shl edi, 4
push edi
call fcn.00490214
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [esp + 0x1c], 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 [esp + 0x30], ecx
add esp, 4
fild dword [esp + 0x2c]
fcom qword [ebx + 0x18]
fnstsw ax
test ah, 0x41
jp 0x46fee2
fdiv qword [ebx + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x28], 0
fstp qword [esp + 0x60]
fld qword [esp + 0x68]
fsub qword [ebx + 8]
fmul qword [esp + 0x60]
fadd qword [0x4c82d8]
fstp qword [esp + 0x70]
jle 0x470087
mov ecx, dword [esp + 0x14]
shl esi, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x20], ecx
jmp 0x46fba0
fild dword [esp + 0x28]
fmul qword [esp + 0x60]
fadd qword [esp + 0x70]
fst qword [esp + 0x48]
mov edx, dword [esp + 0x4c]
fadd qword [esp + 0x60]
mov eax, dword [esp + 0x48]
push edx
push eax
fstp qword [esp + 0x48]
call fcn.004a07b0
call fcn.0049f6d4
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
mov edi, eax
call fcn.004a07b0
add esp, 0x10
call fcn.0049f6d4
cmp edi, eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x34], eax
jne 0x46fde9
mov ebx, dword [esp + 0xc]
fld qword [esp + 0x60]
mov edx, dword [esp + 0x18]
fmul qword [0x4cb840]
imul edi, ebx
shl edi, 4
add edi, edx
call fcn.0049f6d4
test ebx, ebx
jle 0x46feb6
mov ecx, ebx
mov edi, edi
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 0x46fc20
jmp 0x46feb6
fstp st(0)
dec ecx
fld qword [ebx + 0x10]
mov dword [esp + 0x3c], ecx
fsub qword [0x4c82d8]
lea eax, [esi - 1]
cmp eax, 1
fild dword [esp + 0x3c]
mov dword [esp + 0x28], 1
fdivp st(1)
jle 0x46fb0e
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add esi, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
fmul st(1)
fadd qword [ebx]
fld st(0)
call fcn.0049f6d4
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fsubr st(1)
fsubr qword [0x4c82d8]
fmul qword [0x4ccf40]
call fcn.0049f6d4
fstp st(0)
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x30]
mov edi, 0x101
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x10]
sub edi, eax
test edx, edx
mov dword [esp + 0x20], edi
jle 0x46fdbf
mov edx, dword [esp + 0xc]
shl edx, 4
add edx, 0xfffffff4
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x48], 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 [esp + 0x20]
movzx ebx, dh
imul ebx, eax
add edi, ebx
mov ebx, edx
mov dword [esi + 4], edi
mov dword [esp + 0x3c], ecx
movzx edi, byte [esp + 0x3e]
imul edi, dword [esp + 0x20]
add esi, 4
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
mov dword [esp + 0x40], edx
add esi, 4
add edi, ebx
shr ecx, 0x18
mov dword [esi], edi
mov edi, dword [esp + 0x20]
shr edx, 0x18
imul ecx, edi
imul edx, eax
add ecx, edx
mov edx, dword [esp + 0x18]
add esi, 4
mov dword [esi], ecx
add esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
lea edx, [edx*4 - 4]
add ecx, edx
dec dword [esp + 0x34]
jne 0x46fd27
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
inc ecx
add esi, 0x10
dec eax
cmp ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
jl 0x46fcb4
mov esi, dword [esp + 0xc]
jmp 0x46fb0e
fild dword [esp + 0x34]
fld qword [esp + 0x48]
fsubr st(1)
fmul qword [0x4cb840]
call fcn.0049f6d4
fld qword [esp + 0x40]
fsub st(1)
mov ebx, eax
fmul qword [0x4cb840]
call fcn.0049f6d4
fstp st(0)
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
imul edi, edx
shl edi, 4
add edi, ecx
mov ecx, edi
mov edi, dword [esp + 0x34]
imul edi, edx
mov edx, dword [esp + 0x18]
shl edi, 4
add edi, edx
mov edx, edi
mov edi, dword [esp + 0xc]
test edi, edi
jle 0x46feb6
mov dword [esp + 0x34], edi
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 [esp + 0x34]
add ecx, 4
add edx, 4
add ecx, 4
add esi, 4
add edx, 4
dec edi
mov dword [esp + 0x34], edi
jne 0x46fe43
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add edx, ecx
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
jl 0x46fba0
mov esi, dword [esp + 0xc]
jmp 0x470087
fstp st(0)
lea edx, [ecx - 1]
fld qword [ebx + 0x18]
mov dword [esp + 0x50], edx
fsub qword [0x4c82d8]
mov edi, 1
fild dword [esp + 0x50]
inc ecx
cmp ecx, edi
fdivp st(1)
mov dword [esp + 0x30], edi
jle 0x470085
mov ecx, dword [esp + 0x18]
mov eax, esi
shl eax, 4
mov dword [esp + 0x20], eax
lea eax, [eax + ecx + 0x10]
mov dword [esp + 0x2c], eax
fld qword [ebx + 8]
mov dword [esp + 0x10], eax
fld st(0)
call fcn.0049f6d4
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
dec edi
mov dword [esp + 0x50], edi
fsubp st(1)
fild dword [esp + 0x50]
fmul st(2)
faddp st(1)
fld st(0)
call fcn.0049f6d4
mov edi, eax
mov dword [esp + 0x50], edi
fild dword [esp + 0x50]
fxch st(1)
fsub st(1)
fsubr qword [0x4c82d8]
fmul qword [0x4cb840]
call fcn.0049f6d4
fld qword [ebx + 8]
fadd qword [ebx + 0x10]
mov ecx, edi
imul ecx, esi
fsub qword [0x4c82d8]
fxch st(1)
fcompp
mov edx, pe_nt_image_headers32
sub edx, eax
inc ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
shl ecx, 4
add ecx, eax
fnstsw ax
test ah, 0x44
jp 0x46ffa1
mov eax, ecx
jmp 0x46ffb1
lea eax, [edi + 1]
mov edi, dword [esp + 0x14]
imul eax, esi
inc eax
shl eax, 4
add eax, edi
lea edi, [esi - 1]
cmp edi, 1
jle 0x47005f
dec edi
mov dword [esp + 0x34], edi
mov edi, dword [ecx]
imul edi, dword [esp + 0x1c]
mov esi, dword [eax]
imul esi, edx
add edi, esi
mov esi, dword [esp + 0x10]
mov dword [esi], edi
mov edi, dword [ecx + 4]
imul edi, dword [esp + 0x1c]
add esi, 4
mov dword [esp + 0x10], esi
mov esi, dword [eax + 4]
imul esi, edx
add eax, 4
add ecx, 4
add edi, esi
mov esi, dword [esp + 0x10]
mov dword [esi], edi
mov edi, dword [ecx + 4]
imul edi, dword [esp + 0x1c]
add esi, 4
mov dword [esp + 0x10], esi
mov esi, dword [eax + 4]
imul esi, edx
add eax, 4
add ecx, 4
add edi, esi
mov esi, dword [esp + 0x10]
mov dword [esi], edi
mov edi, dword [ecx + 4]
imul edi, dword [esp + 0x1c]
add esi, 4
mov dword [esp + 0x10], esi
mov esi, dword [eax + 4]
add eax, 4
imul esi, edx
add ecx, 4
add edi, esi
mov esi, dword [esp + 0x10]
mov dword [esi], edi
add esi, 4
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x34]
add eax, 4
add ecx, 4
dec esi
mov dword [esp + 0x34], esi
jne 0x46ffc2
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov edx, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [edx + 0xc]
inc edi
inc ecx
cmp edi, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
jl 0x46ff21
fstp st(0)
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
xor edx, edx
test ecx, ecx
mov dword [esp + 0x30], edx
jle 0x470c4b
mov ecx, dword [esp + 0x18]
shl esi, 4
lea eax, [esi + ecx + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov edi, edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x24]
mov ebx, dword [ecx]
add eax, edx
imul eax, dword [edi + 4]
mov edi, dword [esp + 0x5c]
add eax, ebx
lea eax, [edi + eax*4]
mov edi, dword [ecx + 8]
test edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 0
jle 0x4701ee
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
lea ebx, [ebx]
movzx ebx, word [ecx + 6]
test ebx, ebx
movzx edx, word [ecx - 6]
mov dword [esp + 0x50], edx
je 0x4701c1
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 [esp + 0x48], edx
mov eax, ebx
imul eax, eax, 0xff
add esi, ebx
cdq
idiv esi
mov edx, dword [esp + 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 [esp + 0x50]
movzx edx, dh
sar ebx, 8
add edx, ebx
or edi, edx
mov edx, dword [esp + 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 [esp + 0x48]
or edi, ecx
mov ecx, dword [esp + 0x10]
shl eax, 0x18
or edi, eax
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov edx, dword [esp + 0x34]
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 8]
add eax, 4
inc edx
add ecx, 0x10
cmp edx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], ecx
jl 0x4700f0
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
inc edx
add edi, esi
cmp edx, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edi
jl 0x4700b0
jmp 0x470c4b
mov eax, dword [edi + 0x14]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x2c], eax
call dword [edx + 0x48]
mov ecx, edi
mov dword [esp + 0x60], eax
call fcn.00476fe0
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
push eax
push ecx
call fcn.004a07b0
call fcn.0049f6d4
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 8]
push edx
push eax
call fcn.004a07b0
call fcn.0049f6d4
fild dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x20], eax
fstp qword [esp + 0x70]
fld qword [ebx]
fsub qword [esp + 0x70]
fadd qword [ebx + 0x10]
fstp qword [esp]
call fcn.004a08e0
call fcn.0049f6d4
fild dword [esp + 0x20]
mov dword [esp + 0x40], eax
fstp qword [esp + 0x78]
fld qword [ebx + 8]
fsub qword [esp + 0x78]
fadd qword [ebx + 0x18]
fstp qword [esp]
call fcn.004a08e0
call fcn.0049f6d4
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 [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], ecx
call fcn.00490214
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [esp + 0x20], 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 ecx, dword [ebp + 8]
add esp, 0xc
call fcn.00476fe0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fcom qword [ebx + 0x10]
fnstsw ax
test ah, 0x41
jp 0x4706d2
fdiv qword [ebx + 0x10]
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x20], 0
fld qword [esp + 0x68]
fsub qword [ebx]
fmul st(1)
fadd qword [0x4c82d8]
jle 0x470569
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x1c]
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x5c], eax
fild dword [esp + 0x20]
fmul st(2)
fadd st(1)
fld st(0)
fadd st(3)
fld st(1)
call fcn.0049f6d4
fld st(0)
mov esi, eax
call fcn.0049f6d4
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
add edx, ecx
cmp esi, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], edx
jne 0x470420
mov edx, dword [esp + 0x14]
fstp st(0)
fstp st(0)
shl esi, 4
fld st(1)
add esi, edx
fmul qword [0x4ccf40]
call fcn.0049f6d4
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x47054d
mov edx, dword [esp + 0xc]
shl edx, 4
add edx, 0xfffffff4
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x18]
mov edi, ecx
jmp 0x4703c0
movzx ecx, byte [edx]
mov ebx, dword [esp + 0x30]
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 [esp + 0x50], ecx
shr ecx, 0x18
imul ecx, eax
add esi, 4
mov ebx, dword [esi + 4]
add esi, 4
add ebx, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi], ebx
mov ebx, dword [esp + 0x1c]
add esi, ecx
add edx, ebx
dec edi
jne 0x4703c0
mov dword [esp + 0x18], edx
jmp 0x47054d
fild dword [esp + 0x50]
fld st(0)
fsub st(3)
fmul qword [0x4ccf40]
call fcn.0049f6d4
fxch st(1)
fsub st(1)
mov ebx, eax
fmul qword [0x4ccf40]
call fcn.0049f6d4
fstp st(0)
mov ecx, dword [esp + 0x14]
fstp st(0)
shl esi, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
add esi, ecx
test eax, eax
mov ecx, esi
jle 0x47054d
mov edx, dword [esp + 0xc]
shl edx, 4
add edx, 0xffffffe4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], edx
lea esp, [esp]
movzx edx, byte [eax]
mov eax, dword [esp + 0x30]
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 [esp + 0x50], 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 [esp + 0x48], edi
mov edi, dword [ecx + 4]
add edi, eax
mov eax, dword [esp + 0x34]
imul eax, dword [esp + 0x50]
add ecx, 4
mov dword [ecx], edi
mov edi, dword [ecx + 4]
add ecx, 4
add edi, eax
mov eax, dword [esp + 0x34]
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 [esp + 0x48]
imul edx, esi
mov esi, dword [esp + 0x1c]
add ecx, 4
add edi, edx
mov dword [ecx], edi
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0x40]
add ecx, 4
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
add eax, esi
add ecx, edi
dec edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
jne 0x470480
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x470347
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0xc]
fstp st(0)
mov edi, dword [esp + 0x3c]
fstp st(0)
imul edi, esi
shl edi, 4
push edi
call fcn.00490214
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [esp + 0x1c], 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 [esp + 0x30], ecx
add esp, 4
fild dword [esp + 0x2c]
fcom qword [ebx + 0x18]
fnstsw ax
test ah, 0x41
jp 0x470944
fdiv qword [ebx + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x2c], 0
fstp qword [esp + 0x50]
fld qword [esp + 0x70]
fsub qword [ebx + 8]
fmul qword [esp + 0x50]
fadd qword [0x4c82d8]
fstp qword [esp + 0x70]
jle 0x470ac6
mov ecx, dword [esp + 0x14]
shl esi, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x28], ecx
jmp 0x470600
fild dword [esp + 0x2c]
fmul qword [esp + 0x50]
fadd qword [esp + 0x70]
fst qword [esp + 0x48]
mov edx, dword [esp + 0x4c]
fadd qword [esp + 0x50]
mov eax, dword [esp + 0x48]
push edx
push eax
fstp qword [esp + 0x48]
call fcn.004a07b0
call fcn.0049f6d4
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
mov edi, eax
call fcn.004a07b0
add esp, 0x10
call fcn.0049f6d4
cmp edi, eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], eax
jne 0x47084b
mov ebx, dword [esp + 0xc]
fld qword [esp + 0x50]
mov edx, dword [esp + 0x18]
fmul qword [0x4cb840]
imul edi, ebx
shl edi, 4
add edi, edx
call fcn.0049f6d4
test ebx, ebx
jle 0x470918
mov ecx, ebx
mov edi, edi
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 0x470680
jmp 0x470918
fstp st(0)
dec ecx
fld qword [ebx + 0x10]
mov dword [esp + 0x5c], ecx
fsub qword [0x4c82d8]
lea eax, [esi - 1]
cmp eax, 1
fild dword [esp + 0x5c]
mov dword [esp + 0x20], 1
fdivp st(1)
jle 0x47056b
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
add eax, ecx
add esi, 0x10
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], esi
lea ebx, [ebx]
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
dec edx
mov dword [esp + 0x5c], edx
fild dword [esp + 0x5c]
fmul st(1)
fadd qword [eax]
fld st(0)
call fcn.0049f6d4
mov edi, eax
mov dword [esp + 0x5c], edi
fild dword [esp + 0x5c]
fsubr st(1)
fsubr qword [0x4c82d8]
fmul qword [0x4ccf40]
call fcn.0049f6d4
fstp st(0)
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov ebx, 0x101
sub ebx, eax
add ecx, edi
test edx, edx
mov dword [esp + 0x28], ebx
jle 0x47081e
mov edx, dword [esp + 0xc]
shl edx, 4
add edx, 0xfffffff4
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], edx
lea ecx, [ecx]
movzx edx, byte [ecx]
inc ecx
mov dword [esp + 0x40], 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 [esp + 0x28]
movzx ebx, dh
imul ebx, eax
add edi, ebx
mov ebx, edx
mov dword [esp + 0x5c], ecx
add esi, 4
mov dword [esi], edi
movzx edi, byte [esp + 0x5e]
imul edi, dword [esp + 0x28]
shr ebx, 0x10
movzx ebx, bl
imul ebx, eax
mov dword [esp + 0x48], edx
shr ecx, 0x18
add edi, ebx
mov ebx, dword [esp + 0x28]
shr edx, 0x18
imul ecx, ebx
imul edx, eax
add esi, 4
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esi], edi
add esi, 4
mov dword [esi], ecx
add esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
dec edx
add ecx, edx
dec dword [esp + 0x38]
jne 0x470790
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
inc ecx
add esi, 0x10
dec eax
cmp ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], esi
jl 0x470720
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0xc]
jmp 0x47056b
fild dword [esp + 0x38]
fld qword [esp + 0x48]
fsubr st(1)
fmul qword [0x4cb840]
call fcn.0049f6d4
fld qword [esp + 0x40]
fsub st(1)
mov ebx, eax
fmul qword [0x4cb840]
call fcn.0049f6d4
fstp st(0)
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
imul edi, edx
shl edi, 4
add edi, ecx
mov ecx, edi
mov edi, dword [esp + 0x38]
imul edi, edx
mov edx, dword [esp + 0x18]
shl edi, 4
add edi, edx
mov edx, edi
mov edi, dword [esp + 0xc]
test edi, edi
jle 0x470918
mov dword [esp + 0x38], edi
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 [esp + 0x38]
add ecx, 4
add edx, 4
add ecx, 4
add esi, 4
add edx, 4
dec edi
mov dword [esp + 0x38], edi
jne 0x4708a5
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
jl 0x470600
mov esi, dword [esp + 0xc]
jmp 0x470ac6
fstp st(0)
lea edx, [ecx - 1]
fld qword [ebx + 0x18]
mov dword [esp + 0x5c], edx
fsub qword [0x4c82d8]
mov edi, 1
fild dword [esp + 0x5c]
inc ecx
cmp ecx, edi
fdivp st(1)
mov dword [esp + 0x34], edi
jle 0x470ac4
mov eax, dword [esp + 0x18]
shl esi, 4
mov dword [esp + 0x28], esi
lea esi, [eax + esi + 0x10]
mov dword [esp + 0x30], esi
fld qword [ebx + 8]
fld st(0)
call fcn.0049f6d4
mov dword [esp + 0x5c], eax
fild dword [esp + 0x5c]
dec edi
mov dword [esp + 0x5c], edi
fsubp st(1)
fild dword [esp + 0x5c]
fmul st(2)
faddp st(1)
fld st(0)
call fcn.0049f6d4
mov edi, eax
mov dword [esp + 0x5c], edi
fild dword [esp + 0x5c]
fxch st(1)
fsub st(1)
fsubr qword [0x4c82d8]
fmul qword [0x4cb840]
call fcn.0049f6d4
fld qword [ebx + 8]
fadd qword [ebx + 0x10]
mov ecx, edi
imul ecx, dword [esp + 0xc]
fsub qword [0x4c82d8]
fxch st(1)
fcompp
mov edx, pe_nt_image_headers32
sub edx, eax
inc ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
shl ecx, 4
add ecx, eax
fnstsw ax
test ah, 0x44
jp 0x4709ff
mov eax, ecx
jmp 0x470a11
lea eax, [edi + 1]
imul eax, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
inc eax
shl eax, 4
add eax, edi
mov edi, dword [esp + 0xc]
dec edi
cmp edi, 1
jle 0x470a9a
dec edi
mov dword [esp + 0x38], edi
mov edi, dword [ecx]
imul edi, dword [esp + 0x20]
mov ebx, dword [eax]
imul ebx, edx
add edi, ebx
mov dword [esi], edi
mov edi, dword [ecx + 4]
imul edi, dword [esp + 0x20]
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 [esp + 0x20]
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 [esp + 0x20]
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 [esp + 0x38]
add esi, 4
add eax, 4
add ecx, 4
dec edi
mov dword [esp + 0x38], edi
jne 0x470a20
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov ecx, dword [ebp + 0xc]
add esi, edx
mov edx, dword [ecx + 0xc]
inc edi
inc edx
cmp edi, edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
jl 0x470981
mov esi, dword [esp + 0xc]
fstp st(0)
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
xor edx, edx
test ecx, ecx
mov dword [esp + 0x34], edx
jle 0x470c4b
mov ecx, dword [esp + 0x18]
shl esi, 4
lea eax, [ecx + esi + 0x18]
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], eax
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x24]
mov ebx, dword [ecx]
add eax, edx
imul eax, dword [edi + 4]
mov edi, dword [esp + 0x60]
add eax, ebx
lea eax, [edi + eax*4]
mov edi, dword [ecx + 8]
test edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0
jle 0x470c2e
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
lea ebx, [ebx]
movzx ebx, word [ecx + 6]
test ebx, ebx
movzx edx, word [ecx - 6]
mov dword [esp + 0x5c], edx
je 0x470c01
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 [esp + 0x50], edx
mov eax, ebx
imul eax, eax, 0xff
add esi, ebx
cdq
idiv esi
mov edx, dword [esp + 0x1c]
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 [esp + 0x5c]
movzx edx, dh
sar ebx, 8
add edx, ebx
or edi, edx
mov edx, dword [esp + 0x1c]
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 [esp + 0x50]
or edi, ecx
mov ecx, dword [esp + 0x1c]
shl eax, 0x18
or edi, eax
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
mov edx, dword [esp + 0x38]
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 8]
add eax, 4
inc edx
add ecx, 0x10
cmp edx, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], ecx
jl 0x470b30
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
inc edx
add edi, esi
cmp edx, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], edi
jl 0x470af0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0049f22c
mov edx, dword [esp + 0x18]
push edx
call fcn.0049f22c
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
add esp, 8
call dword [eax + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14