Function at 0x416530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c57b8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x51eee0]
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 eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x54], eax
call fcn.00442860
push str.success
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0
call fcn.00442820
lea eax, [ebp - 0x68]
push eax
push 0x4d968c
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.00442a70
lea eax, [ebp - 0x4c]
push eax
call fcn.0044fb80
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.0044ef60
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00442780
lea eax, [ebp - 0x68]
push eax
push str.path
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00442a70
cmp dword [ebp - 0x14], 0x10
jb 0x416607
push dword [ebp - 0x28]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41663c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x48]
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 6
call fcn.00417940
test al, al
jne 0x4166f7
mov edx, dword [0x520340]
xor edi, edi
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, edi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
inc edi
add edx, eax
cmp edi, 0x100
jl 0x416674
mov dword [0x520340], edx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x416715
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x416734
xor ecx, ecx
jmp 0x41674a
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416740
sub ecx, dword [ebp - 0x50]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x58]
push eax
call fcn.0044ee90
add esp, 0x1c
mov ecx, dword [eax]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 8
cmp edx, edi
je 0x4167b7
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4167a8
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4167a8
push edx
call fcn.00404840
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4167a0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x50]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
jmp 0x4167b7
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00409950
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4167d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x4167ec
push dword [ebp - 0x28]
call fcn.004a5bbe
add esp, 4
mov edi, dword [ebp - 0x54]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41680a
call fcn.0040c2e0
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x416828
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x48], 0x4d9684
jb 0x416844
push dword [ebp - 0x44]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00444ab0
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
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.004a63c4
mov esp, ebp
pop ebp
ret