Function at 0x41f120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
movzx ecx, word [esi]
push edi
mov edi, dword [sym.imp.MSVCR80.dll_iswspace]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
call edi
add esp, 4
test eax, eax
je 0x41f167
movzx edx, word [esi + 2]
add esi, 2
push edx
call edi
add esp, 4
test eax, eax
jne 0x41f152
mov dword [esp + 0x14], esi
movzx eax, word [ebx]
push eax
call edi
add esp, 4
test eax, eax
je 0x41f189
movzx ecx, word [ebx + 2]
add ebx, 2
push ecx
call edi
add esp, 4
test eax, eax
jne 0x41f174
mov dword [esp + 0x20], ebx
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f190
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, esi
mov dword [esp + 0x24], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f1b0
sub eax, edx
sar eax, 1
test edi, edi
mov ebx, eax
mov dword [esp + 0x1c], ebx
jbe 0x41f1f4
mov edx, dword [esp + 0x20]
lea esi, [edx + edi*2 - 2]
movzx eax, word [esi]
push eax
call dword [sym.imp.MSVCR80.dll_iswspace]
add esp, 4
test eax, eax
je 0x41f1ec
sub edi, 1
sub esi, 2
test edi, edi
ja 0x41f1d1
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], edi
test ebx, ebx
jbe 0x41f21f
lea esi, [esi + ebx*2 - 2]
lea esp, [esp]
movzx ecx, word [esi]
push ecx
call dword [sym.imp.MSVCR80.dll_iswspace]
add esp, 4
test eax, eax
je 0x41f21b
sub ebx, 1
sub esi, 2
test ebx, ebx
ja 0x41f200
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x38]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f230
sub eax, edx
mov edx, dword [esi + 0x18]
sar eax, 1
mov dword [esp + 0x10], eax
add eax, ebx
add eax, edi
lea eax, [edx + eax*2 + 9]
and eax, 0xfffffffc
add eax, 0xa8
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41f42c
lea eax, [ebx + 0xa8]
mov ecx, 0xc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov edx, eax
sub edx, ebx
mov dword [ebx], ecx
mov word [ebx + 0x38], dx
mov edx, dword [esp + 0x18]
lea ecx, [edi + edi + 2]
push ecx
mov ecx, dword [edx + 0x38]
push ecx
push eax
call sub.MSVCR80.dll_memcpy
lea esi, [ebx + 0xa8]
lea esi, [esi + edi*2 + 2]
mov edi, dword [esp + 0x30]
add esp, 0xc
lea eax, [edi + edi]
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov edx, esi
push eax
sub edx, ebx
push esi
mov word [ebx + 0x3a], dx
call sub.MSVCR80.dll_memcpy
mov ecx, edi
and ecx, 0x3f
mov dx, word [ecx*2 + 0x436170]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
test edi, edi
mov word [ecx + esi], dx
jbe 0x41f308
lea esp, [esp]
mov edx, eax
and edx, 0x3f
mov dx, word [edx*2 + 0x436170]
xor word [esi + eax*2], dx
add eax, 1
cmp eax, edi
jb 0x41f2f0
mov edi, dword [esp + 0x1c]
lea esi, [ecx + esi + 2]
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, ebx
mov word [ebx + 0x3c], ax
lea eax, [edi + edi]
push eax
push ecx
push esi
mov dword [esp + 0x1c], eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x1c]
mov edx, edi
and edx, 0x3f
mov ax, word [edx*2 + 0x436170]
mov word [ecx + esi], ax
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x41f368
lea esp, [esp]
mov edx, eax
and edx, 0x3f
mov dx, word [edx*2 + 0x436170]
xor word [esi + eax*2], dx
add eax, 1
cmp eax, edi
jb 0x41f350
mov edi, dword [esp + 0x18]
lea esi, [ecx + esi + 2]
mov eax, esi
sub eax, ebx
mov word [ebx + 0x3e], ax
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x30]
push ecx
push edx
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [edi + 4], 4
jge 0x41f3c5
mov ecx, dword [edi + 0x3c]
push 0x1c
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f3c5
mov edx, dword [esp + 0x30]
push edx
push str.0x_X
lea eax, [ebx + 0x40]
push 0x14
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x10
mov word [ebx + 0x66], 0
jmp 0x41f3cb
mov word [ebx + 0x40], 0
mov ecx, dword [edi + 0x34]
push 0x5c
push ecx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
mov edx, dword [edi + 0x34]
push 0x2f
push edx
mov esi, eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 0x10
cmp esi, eax
ja 0x41f3ee
mov esi, eax
test esi, esi
jne 0x41f3f7
mov esi, dword [edi + 0x34]
jmp 0x41f3fa
add esi, 2
push 0x20
lea eax, [ebx + 0x68]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
cmp dword [0x4366fc], 0
mov word [ebx + 0xa6], 0
jne 0x41f421
call fcn.0041f470
mov eax, dword [0x4366fc]
push ebx
call fcn.0041f050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret