Function at 0x4040e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512d04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
mov word [ebp - 0x34], 0x3636
mov dword [ebp - 0x31], 0x2e352e30
mov dword [ebp - 0x2d], 0x36363037
mov byte [ebp - 0x32], 0x2e
mov byte [ebp - 0x29], 0
call fcn.0041fa80
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
cmp dword [ecx - 0xc], 0
jne 0x4041a8
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0041fb60
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [edi], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4042b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4041a0
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4042b6
call dword [ebp - 0x20]
jmp 0x4042b6
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.0051de30
mov ebx, eax
test ebx, ebx
je 0x404260
push ebx
call fcn.00426d28
mov edx, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.0052e320
add esp, 0xc
test eax, eax
je 0x404257
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0052a790
add esp, 8
test eax, eax
je 0x404257
cmp dword [ebp - 0x18], 0
je 0x404257
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0xfeef04bd
jne 0x404257
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x40]
mov word [ebp - 0x3e], 0x252e
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x39], 0x64252e64
push eax
mov word [ebp - 0x3b], 0x252e
mov word [ebp - 0x40], 0x6425
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x3c], 0x64
call fcn.00419930
add esp, 0x18
push esi
call fcn.004266a3
add esp, 4
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0041fb60
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [edi], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4042b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4042b3
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x4042b6
call dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x4042fd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4042f9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
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