Function at 0x405b40
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x457768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov eax, dword [esp + 0x80]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call sub.MFC42u.DLL_CString::CString_5
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], esi
call sub.MFC42u.DLL_CString::MakeLower
lea ecx, [esp + 0x38]
call fcn.004090a0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x10]
mov bl, 1
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x8c], bl
call sub.MFC42u.DLL_CString::CString_5
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x58]
push edx
mov byte [esp + 0x8c], 2
call fcn.00407c70
lea eax, [esp + 0x54]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [ebp + 4]
mov byte [esp + 0x90], 3
call fcn.00408300
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x64]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x88], 5
call fcn.00406af0
lea ecx, [esp + 0x64]
mov byte [esp + 0x88], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x88], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x88], 6
call fcn.00406af0
lea ecx, [esp + 0x38]
mov byte [esp + 0x88], 0
call sub.MFC42u.DLL_CString::CString
lea ebx, [esi + 0x10]
mov edi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x1c]
lea esi, [ebx + 0x10]
mov eax, dword [edi]
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x405ccc
mov ecx, eax
cmp eax, ecx
jne 0x405ccc
cmp edi, edi
jne 0x405ccc
mov ebp, dword [edi + 4]
mov eax, dword [0x473078]
cmp ebp, eax
mov edi, ebp
je 0x405ca2
mov ecx, dword [edi + 8]
push ecx
mov ecx, esi
call fcn.004080c0
mov edi, dword [edi]
push 0
lea ecx, [ebp + 0xc]
call fcn.00409030
push ebp
call sub.MFC42u.DLL_operatordelete
mov eax, dword [0x473078]
add esp, 4
cmp edi, eax
mov ebp, edi
jne 0x405c77
mov edx, dword [esi + 4]
mov ecx, esi
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00406e50
mov ebp, dword [esp + 0x18]
jmp 0x405cfa
cmp eax, edi
je 0x405cf6
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.004082b0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00406e60
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x405cd0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x405d1d
lea edi, [ebx + 0xc]
mov ecx, dword [esi + 0xc]
push ecx
push edi
mov ecx, ebp
call fcn.004059f0
mov esi, dword [esi]
test esi, esi
jne 0x405d0b
mov edx, dword [esp + 0x90]
lea ecx, [ebx + 0xc]
push edx
call sub.MFC42u.DLL_CString::operator_1
mov dword [ebx + 8], ebx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x405d3f
mov dword [eax], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebx + 4], eax
mov dword [ebp + 0x24], ebx
mov dword [ebx], 0
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x405d52
mov dword [ebp + 0x28], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret 4