Function at 0x509b00
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5bee08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push str.CVOF:
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp + 0x48]
xor ebx, ebx
mov byte [esp + 0x28], 1
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov esi, dword [esp + 0x28]
mov byte [esp + 0x2c], bl
mov dword [ecx], esi
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 1
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x30], 0x39
mov dword [ecx + 4], esi
mov byte [esp + 0x31], 0x51
mov byte [esp + 0x32], 0x70
mov byte [esp + 0x33], 2
mov esi, dword [esp + 0x30]
mov dl, 0x20
mov dword [ecx + 8], esi
mov byte [esp + 0x34], 0x1b
mov byte [esp + 0x35], 0xb
mov byte [esp + 0x36], dl
mov byte [esp + 0x37], dl
mov esi, dword [esp + 0x34]
mov dword [ecx + 0xc], esi
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 0xf
mov si, word [esp + 0x38]
mov word [ecx + 0x10], si
mov al, 0x1e
mov dword [esp + 0x44], ebx
mov byte [ecx + 0x12], al
mov esi, dword [ebp + 0x48]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esi, 0x13
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
mov ecx, dword [ebp + 0x48]
add eax, 0x13
mov dword [ebp + 0x44], eax
mov byte [eax + ecx], dl
mov esi, dword [ebp + 0x44]
mov edx, dword [ebp + 0x48]
inc esi
mov eax, esi
mov dword [ebp + 0x44], esi
mov byte [eax + edx], 3
mov edx, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x48]
inc edx
mov eax, edx
mov dword [ebp + 0x44], edx
sar eax, 8
mov byte [ecx + 2], al
mov edx, dword [ebp + 0x48]
mov al, byte [ebp + 0x44]
lea ecx, [esp + 0x10]
mov byte [edx + 3], al
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x62cd20
push edx
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x641030]
add esp, 0xc
cmp eax, ebx
je 0x509cb0
cmp byte [eax + 0x40], bl
je 0x509cb0
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a850
push eax
mov eax, dword [ebp + 0x74]
push 0x6145d8
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x641030]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ed3c0
mov eax, dword [0x641030]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x4c], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x6145d8
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp + 0x74]
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x54], 4
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x6192e0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63bc8c]
mov byte [esp + 0x54], 1
call fcn.00459390
mov eax, dword [ebp + 0x74]
cmp eax, ebx
je 0x509d2b
cmp byte [eax + 0x95], bl
je 0x509d2b
xor cl, cl
jmp 0x509d2d
mov cl, 1
mov dl, byte [eax + 0x96]
mov eax, dword [eax + 0xdc]
push edx
mov edx, dword [ebp + 0x48]
push eax
push ecx
mov ecx, dword [ebp + 0x44]
push ecx
push edx
mov ecx, ebp
call sym.ETermProxy.exe_public:_void___thiscall_CClientObject::RestoreID_unsigned_char___int__bool__int__bool_
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x48]
mov eax, dword [ebp]
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x1c]
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret