Function at 0x45b660
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, ecx
mov esi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
cmp esi, ecx
je 0x45ba19
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x18], eax
mov al, byte [ebx + 0x10]
mov byte [esp + 7], al
mov byte [ebx + 0x10], 1
mov eax, dword [ebx + 0x60]
mov edi, dword [ebx + 0x3c]
mov dword [esp + 0x14], eax
xor edx, edx
mov ebp, edi
div edi
mov dword [esp + 0x1c], eax
mov edi, edx
mov eax, dword [esp + 0x58]
test edx, edx
mov dword [esp], ebx
je 0x45b8d3
mov eax, ebp
xor edx, edx
div edi
xor edx, edx
sub ecx, esi
sar ecx, 1
cmp eax, ecx
cmovae eax, ecx
movd xmm0, ecx
movq xmm1, qword [0x4e90e0]
por xmm0, xmm1
subsd xmm0, xmm1
cvtsd2ss xmm2, xmm0
movd xmm0, eax
por xmm0, xmm1
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
divss xmm2, xmm0
mov dword [esp + 0x24], eax
imul eax, edi
cmp ebp, dword [esp + 0x14]
mov ecx, ebp
cmova ecx, edx
add ecx, eax
mov eax, dword [esp + 0x58]
lea eax, [eax + eax*4]
mov esi, dword [esp + 0x18]
mov dword [esi + eax*8 + 0x24], ecx
lea esi, [esi + eax*8 + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 8], esi
movss dword [esp + 0x34], xmm2
jmp 0x45b74f
mov edx, dword [esp + 0x30]
add edx, 1
mov edi, dword [esp + 0x20]
cmp edx, edi
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
je 0x45b8e4
mov eax, dword [ebx + 0x5c]
mov ecx, eax
imul ecx, edx
mov edi, dword [ebx + 0x38]
mov dword [esp + 0x28], ecx
sub edi, ecx
cmp edi, eax
cmovae edi, eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x30], edx
je 0x45b730
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
sar ecx, 1
imul ecx, dword [esp + 0x28]
add ecx, dword [ebx + 0x78]
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0xc]
shl eax, 5
lea eax, [eax + eax*2]
mov dword [esp + 0x10], eax
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x38], edi
nop dword [eax + eax]
push 0x40
call fcn.004a880e
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x5c]
mov word [edi], ax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0xc], eax
mov ecx, dword [ebx + 0x5c]
mov dword [edi + 0x20], ecx
mov ecx, eax
imul ecx, dword [esp + 0x28]
mov edx, dword [esp + 8]
add ecx, dword [edx - 4]
mov dword [edi + 0x28], ecx
movzx ecx, byte [esp + 7]
mov byte [edi + 0x30], cl
mov ecx, dword [ebx + 0x4c]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebx + 0x58]
mov dword [edi + 0x38], ecx
add esi, 1
mov dword [esp + 0x40], esi
movd xmm0, esi
por xmm0, xmmword [0x4e9750]
movsd xmm1, qword [0x4e90e0]
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x34]
cvtss2sd xmm0, xmm0
addsd xmm0, qword [0x4e9760]
cvttsd2si ecx, xmm0
mov dword [edi + 8], ebx
movapd xmm1, xmm0
movsd xmm2, qword [0x4e9768]
subsd xmm1, xmm2
cvttsd2si edx, xmm1
mov esi, dword [esp + 8]
mov dword [edi + 0x3c], esi
xor edx, 0x80000000
ucomisd xmm0, xmm2
mov esi, dword [esp + 0x58]
mov dword [edi + 4], esi
cmovb edx, ecx
sub edx, ebp
mov word [edi + 0x10], dx
mov ecx, ebp
add ecx, ebp
add ecx, dword [ebx + 4]
mov dword [edi + 0x14], ecx
imul eax, ebp
add eax, eax
mov ecx, dword [esp + 8]
add eax, dword [ecx - 0x10]
mov dword [edi + 0x18], eax
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x24], 1
mov eax, ebp
imul eax, ecx
add eax, dword [esp + 0x3c]
mov dword [edi + 0x2c], eax
movzx eax, dx
add ebp, eax
mov eax, dword [esp]
mov ebx, dword [eax + 0x40]
mov esi, dword [esp + 0x10]
add ebx, esi
mov ecx, ebx
call fcn.0044cd20
mov ecx, ebx
mov ebx, dword [esp]
push edi
call fcn.00449500
add dword [esp + 0xc], 1
add esi, 0x60
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x40]
mov esi, eax
cmp eax, dword [esp + 0x24]
jne 0x45b7a0
jmp 0x45b730
lea eax, [eax + eax*4]
mov ecx, ebp
mov ebp, dword [esp + 0x18]
mov dword [ebp + eax*8 + 0x24], ecx
mov eax, dword [esp + 0x14]
cmp ecx, eax
ja 0x45ba19
cmp dword [ebx + 0x3c], 0
jle 0x45ba19
mov eax, dword [esp + 0x58]
lea eax, [eax + eax*4]
lea ecx, [eax*8 + 0x20]
add ecx, ebp
mov dword [esp + 0xc], ecx
lea eax, [eax*8 + 0x24]
add eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [esp + 0x20], edi
mov eax, dword [esp]
mov ebx, dword [eax + 0x5c]
mov ebp, ebx
imul ebp, edi
push 0x40
call fcn.004a880e
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x5c]
mov word [edi], ax
mov eax, dword [esp]
mov eax, dword [eax + 0x1c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x20], ebx
imul eax, ebp
mov edx, dword [esp + 0xc]
add eax, dword [edx]
mov dword [edi + 0x28], eax
movzx eax, byte [esp + 7]
mov byte [edi + 0x30], al
mov eax, dword [esp]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + esi*4]
mov dword [edi + 0x34], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x58]
mov dword [edi + 0x38], eax
mov eax, dword [esp]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 4], eax
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 1
mov word [edi + 0x10], cx
mov dword [edi + 0x14], eax
mov eax, dword [edx - 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x38]
sub eax, ebp
imul ebx, dword [esp + 0x1c]
cmp eax, ebx
cmovb ebx, eax
mov dword [edi + 0x1c], ebx
imul ecx, ebp
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x24], eax
mov eax, dword [esp]
add ecx, dword [eax + 0x78]
mov dword [edi + 0x2c], ecx
mov eax, dword [esp]
mov ebx, dword [eax + 0x40]
mov ebp, dword [esp + 8]
add ebx, ebp
mov ecx, ebx
call fcn.0044cd20
mov ecx, ebx
push edi
mov edi, dword [esp + 0x24]
call fcn.00449500
add edi, dword [esp + 0x1c]
add esi, 1
add ebp, 0x60
mov dword [esp + 8], ebp
mov eax, dword [esp]
cmp esi, dword [eax + 0x3c]
jl 0x45b930
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret 8