Function at 0x516f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
mov byte [ebp - 4], 1
mov word [ebp - 0x71], 0x7068
mov word [ebp - 0x6e], 0x6975
mov dword [ebp - 0x67], 0x73253d6d
mov dword [ebp - 0x75], 0x702e7364
mov dword [ebp - 0x6b], 0x2673253d
mov word [ebp - 0x78], 0x752f
mov byte [ebp - 0x6c], 0x64
mov byte [ebp - 0x76], 0x69
mov byte [ebp - 0x63], 0
mov byte [ebp - 0x6f], 0x3f
call fcn.00420480
mov ecx, eax
test ecx, ecx
jne 0x517029
push 0x80004005
call fcn.00420020
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51703e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x517040
call edx
add eax, 0x10
mov dword [ebp - 0x40], eax
push str.a28d2cc7764b4884adda9021233272ff
mov byte [ebp - 4], 2
lea eax, [ebp - 0x78]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00419930
add esp, 0x10
call fcn.00420480
mov ecx, eax
test ecx, ecx
jne 0x517077
push 0x80004005
call fcn.00420020
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51708c
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x51708e
call edx
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x57], 0x732573
mov word [ebp - 0x60], 0x7468
mov dword [ebp - 0x5b], 0x252f2f3a
mov word [ebp - 0x5d], 0x7370
mov byte [ebp - 0x5e], 0x74
call fcn.0040c0e0
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x40]
push ebx
push dword [eax]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00419930
mov byte [ebp - 4], 3
add esp, 0x10
mov ecx, dword [ebp - 0x20]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x517112
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51710e
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x517112
mov ecx, edx
call esi
mov edi, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x20], eax
nop word [eax + eax]
cmp eax, 3
jne 0x51715b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], 0x7068702e
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x73646975
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x16], 0x7068702e
mov byte [ebp - 0x12], 0
mov word [ebp - 0x18], 0x6475
call fcn.00411d50
mov edi, dword [ebp - 0x44]
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x51716f
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x517181
cmp ecx, dword [esi]
jne 0x517181
lock inc dword [eax]
jmp 0x5171b2
mov eax, dword [ecx]
push 1
push dword [esi + 4]
call dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x5174ed
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea eax, [esi + 0x10]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 0x1c]
inc edx
push edx
push eax
lea ecx, [esi + 0x10]
call fcn.004980c0
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x2f], 0x64253d
mov word [ebp - 0x34], 0x7426
mov word [ebp - 0x31], 0x656d
mov byte [ebp - 0x32], 0x69
call fcn.0052a8c0
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041f4f0
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x90]
add esp, 0xc
push eax
push esi
call fcn.00525c50
test al, al
je 0x5172ba
call fcn.00420480
test eax, eax
je 0x51701f
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x517224
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x517228
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x7c], 0x10
mov word [ebp - 0xf], 0x73
cmovae eax, dword [ebp - 0x90]
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x25
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00419930
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00414ee0
mov ecx, eax
call fcn.00414e40
mov eax, dword [eax]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
cmp dword [eax - 0xc], 0x6c
je 0x51730b
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5172ba
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x40]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5172b5
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5172ba
mov ecx, edx
call dword [ebp - 0x24]
mov ecx, 0x12c
call fcn.00522bf0
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5172f9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5172f7
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5172f9
call edx
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 6
jl 0x517120
jmp 0x517377
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x517342
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x40]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x51733d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x517342
mov ecx, edx
call dword [ebp - 0x24]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x517377
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x517375
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x517377
call edx
cmp dword [ebp - 0x80], 0
je 0x5173fc
cmp dword [ebp - 0x7c], 0x10
lea eax, [ebp - 0x90]
push ecx
cmovae eax, dword [ebp - 0x90]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov dword [ebp - 0x3c], 0x74666f53
mov dword [ebp - 0x2e], 0x656469
mov dword [ebp - 0x36], 0x535c6572
mov dword [ebp - 0x32], 0x766f7250
mov word [ebp - 0x38], 0x6177
mov dword [ebp - 0x18], 0x6b636954
mov word [ebp - 0x14], 0x7465
mov byte [ebp - 0x12], 0
call fcn.0041fa80
push ecx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0041fa80
push ecx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
mov ecx, esp
push eax
call fcn.0041fa80
mov byte [ebp - 4], 3
call fcn.00401d90
add esp, 0xc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x28], esp
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 0x10], edx
mov esi, dword [edx]
mov dword [ebp - 0x20], esi
mov eax, dword [esi]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x51742d
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x20], eax
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
jl 0x517444
cmp esi, dword [edx]
jne 0x517444
mov esi, edx
lock inc dword [eax]
jmp 0x51750f
mov eax, dword [esi]
mov ecx, dword [edx + 4]
mov ebx, dword [eax]
mov dword [ebp - 0x24], ebx
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5174d9
mov eax, ecx
not eax
shr eax, 0x1f
test eax, eax
jne 0x517468
xor esi, esi
jmp 0x5174e6
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jl 0x517464
inc ecx
lea eax, [ecx + 7]
and eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
cmp ecx, eax
jle 0x517486
xor esi, esi
jmp 0x5174e6
mov eax, 1
mul dword [ebp - 0x1c]
test edx, edx
ja 0x5174d5
jb 0x517499
cmp eax, 0xffffffff
ja 0x5174d5
cmp eax, 0xffffffef
ja 0x5174d5
mov ecx, dword [esi + 4]
add eax, 0x10
push eax
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x10]
mov esi, eax
test esi, esi
je 0x5174e6
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [esi + 0xc], 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
jmp 0x5174e6
xor esi, esi
jmp 0x5174e3
push 1
push ecx
mov ecx, esi
call dword [ebp - 0x24]
mov esi, eax
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x40]
test esi, esi
jne 0x5174f2
call fcn.0041fd10
mov eax, dword [edx + 4]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [edx + 4]
mov eax, dword [ebp - 0x10]
inc edx
push edx
add eax, 0x10
push eax
call fcn.004980c0
add esp, 8
mov ecx, dword [ebp - 0x28]
lea eax, [esi + 0x10]
mov edx, dword [ebp - 0x94]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x98]
call fcn.00524c80
or esi, 0xffffffff
mov byte [ebp - 4], 2
add esp, 0x10
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x517564
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x517562
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x51756a
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x51759a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x517598
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x51759a
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x5175eb
mov ecx, dword [ebp - 0x90]
inc eax
cmp eax, 0x1000
jb 0x5175e2
test cl, 0x1f
je 0x5175be
call fcn.0044d762
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x5175ca
call fcn.0044d762
sub ecx, eax
cmp ecx, 4
jae 0x5175d6
call fcn.0044d762
cmp ecx, 0x23
jbe 0x5175e0
call fcn.0044d762
mov ecx, eax
push ecx
call fcn.00426633
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x7c], 0xf
add ecx, 0xfffffff0
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x517645
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x517641
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret