Function at 0x4386c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b09e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
jmp 0x4386ed
mov eax, dword [0x54ed40]
test eax, eax
jne 0x438706
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x50
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
mov dword [ebp - 4], 0
je 0x43875d
lea ecx, [edi + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_3
jmp 0x43875f
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0xffffffff
mov ax, word [esi + 0x38]
mov word [edi + 0xc], ax
mov ecx, dword [esi + 0x3c]
mov dword [edi + 0x10], ecx
mov ebx, dword [esi + 0x10]
mov edx, ebx
mov dword [edi], ebx
shl edx, 5
add edx, 4
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [ebp - 4], 5
je 0x4387be
push 0x438a60
mov dword [eax], ebx
push 0x438a00
add eax, 4
push ebx
push 0x20
push eax
mov dword [ebp - 0x14], eax
call fcn.00423d72
mov eax, dword [ebp - 0x14]
jmp 0x4387c0
xor eax, eax
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x58]
lea ecx, [edi + 0x18]
push ebx
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 0x3c], esi
call sub.MFC42.DLL_CString::operator_3
mov dword [edi + 0x40], 0
mov ecx, dword [esi + 0x50]
lea edx, [esi + 0x20]
mov dword [edi + 0x1c], ecx
push edx
lea ecx, [edi + 0x28]
call sub.MFC42.DLL_CString::operator_3
lea eax, [esi + 0x24]
lea ecx, [edi + 0x2c]
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esi + 0x64]
push ecx
lea ecx, [edi + 0x30]
call sub.MFC42.DLL_CString::operator_3
mov dx, word [esi + 0x30]
push 0x55b7e8
mov word [edi + 0x20], dx
mov ax, word [esi + 0x32]
mov word [edi + 0x22], ax
mov cx, word [0x54ed44]
mov word [edi + 0x24], cx
mov dx, word [0x55bdc4]
mov word [edi + 0x26], dx
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 8
neg eax
sbb eax, eax
push 0
push 0
push 0
neg eax
push 0
mov dword [edi + 0x14], eax
call ebx
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x438877
push 0
push 0
push 1
push 0
call ebx
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], 0
mov dword [edi + 0x38], eax
jmp 0x438894
mov eax, dword [esi + 0x10]
test eax, eax
je 0x438978
mov eax, dword [esi + 8]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x438978
xor esi, esi
mov dword [ebp + 0xc], esi
mov ecx, dword [edi + 4]
add eax, 0xc
add esi, ecx
mov ecx, dword [eax - 4]
mov dword [esi], ecx
mov edx, dword [eax]
lea ecx, [esi + 4]
mov edi, ecx
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, eax
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [edi + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edx, eax
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov edx, dword [edx + 8]
mov dword [edi + 8], edx
mov eax, dword [eax]
mov edi, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [edi + 0x1c]
lea edx, [edi + 0x20]
shl eax, 0x1f
sar eax, 0x1f
xor eax, ecx
push edx
and eax, 1
xor eax, ecx
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x1c]
shl ecx, 0x1e
sar ecx, 0x1e
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::operator_3
lea eax, [edi + 0x24]
lea ecx, [esi + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_3
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
mov edi, dword [ebp - 0x10]
add esi, 0x20
test eax, eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x14], eax
jne 0x4388b2
mov esi, dword [ebp + 8]
mov ecx, dword [0x55bd6c]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call ebx
mov edx, dword [esi + 0x44]
push edx
call ebx
push 0
push 0
push 0
push 0
push edi
push 0x44b040
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x40], eax
je 0x4389e7
mov eax, dword [edi + 0x34]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4389cf
mov ecx, dword [eax + 0x30]
push 0
push ecx
call fcn.00451bd0
mov ecx, eax
call fcn.00452580
mov edx, dword [edi + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esi + 0x40]
test esi, esi
je 0x4389e7
mov dword [esi + 0x28], 1
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret