Function at 0x404500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
call fcn.00406580
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00407480
mov ecx, eax
call fcn.00406a50
mov ecx, eax
call fcn.004069f0
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406bd0
push 0x4df41c
push dword [eax]
call fcn.0048ccf3
mov edx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
sete bl
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4045aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4045f1
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov eax, dword [eax - 0xc]
dec eax
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00406b20
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00407500
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4045f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], 0
call fcn.00401910
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x404614
push 0x80004005
call fcn.00401330
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test edi, edi
jne 0x4046a3
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
test edx, edx
jne 0x40463c
xor ecx, ecx
jmp 0x40464a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404641
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00407a20
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x40466b
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004075f0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.0048bc86
add esp, 8
test eax, eax
js 0x404699
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x404699
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov byte [eax + ecx], 0
jmp 0x4046d1
push 0x80070057
call fcn.00401330
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4046a8
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.00407a20
lea ecx, [ebp - 0x14]
call fcn.00407480
mov ecx, eax
call fcn.00406a50
mov ecx, eax
call fcn.004069f0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
or ebx, 0xffffffff
call fcn.00402280
mov edx, eax
test esi, esi
je 0x404704
jmp 0x4046f0
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edx + ecx*4]
dec esi
jne 0x4046f0
not ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x20]
push eax
lea ecx, [ebx + 4]
call fcn.00407050
test eax, eax
je 0x404723
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x404780
push 0x50
call fcn.0048cdd1
mov esi, eax
add esp, 4
test esi, esi
je 0x40474b
push 0x50
push 0
push esi
call fcn.0048f5e0
add esp, 0xc
mov ecx, esi
call fcn.004029c0
mov esi, eax
jmp 0x40474d
xor esi, esi
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
call dword [eax + 0x1c]
mov edi, eax
test edi, edi
jns 0x40476b
push esi
call fcn.0048b08b
add esp, 4
jmp 0x404782
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 4]
call fcn.00406f00
mov ecx, dword [ebp - 0x24]
mov dword [ecx], esi
xor edi, edi
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4047a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4047c6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc