Function at 0x41e760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d645
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 4
call fcn.004542a5
mov ebp, dword [esp + 0x48]
cmp ebp, ebx
jne 0x41e7da
call sub.MFC71.DLL_AfxGetThread
cmp eax, ebx
je 0x41e7d5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x41e7d7
xor eax, eax
mov ebp, dword [eax + 0x20]
mov ecx, dword [esi + 0x100]
mov eax, dword [ecx]
push 4
lea edx, [esp + 0x1c]
push edx
call dword [eax + 0x6c]
mov ecx, dword [esi + 0x100]
mov eax, dword [ecx]
push 3
lea edx, [esp + 0x18]
push edx
call dword [eax + 0x6c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s_s
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x46a600
push 0x17
push ebx
push 0x46a778
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x41e8a2
mov esi, dword [esp + 0x44]
push 0x464770
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x3c], 3
je 0x41e85b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x3c], 2
je 0x41e86e
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov esi, dword [esp + 0xc]
mov dword [esp + 0xc], ebx
je 0x41e8c1
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x46a6dc
push eax
call dword [ecx]
cmp esi, ebx
je 0x41e8cb
mov eax, dword [esi]
push esi
call dword [eax + 8]
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
call fcn.00441bc8
mov edx, dword [eax]
mov eax, dword [esp + 0xc]
push ebx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
lea ecx, [esp + 0x28]
call fcn.00454307
cmp eax, ebx
je 0x41e91c
push 0xffffffffffffffff
push eax
call fcn.004024b0
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0x48], esi
jne 0x41e922
push 0x8007000e
call fcn.00402330
xor esi, esi
mov dword [esp + 0x48], esi
push edi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push esi
push eax
mov byte [esp + 0x48], 5
call dword [edx + 0x4c]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x44], 4
call esi
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push ebx
push str.LastProjectPath
push 0x468834
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call sub.MFC71.DLL_CWinApp::GetProfileStringA
mov ecx, eax
mov byte [esp + 0x40], 6
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp eax, ebx
je 0x41e990
push 0xffffffffffffffff
push eax
call fcn.004024b0
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x4c], edi
jne 0x41e996
push 0x8007000e
call fcn.00402330
xor edi, edi
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push edi
push eax
mov byte [esp + 0x48], 7
call dword [edx + 0x2c]
push edi
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0x4048
push eax
call dword [ecx + 0xc]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp eax, ebx
je 0x41e9f4
push 0xffffffffffffffff
push eax
call fcn.004024b0
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x4c], edi
jne 0x41e9fa
push 0x8007000e
call fcn.00402330
xor edi, edi
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push edi
push eax
mov byte [esp + 0x48], 8
call dword [edx + 0x44]
push edi
mov byte [esp + 0x44], 4
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebp
push eax
call dword [ecx + 0xc]
cmp dword [esp + 0x30], 1
jne 0x41eb66
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
mov bl, 9
push eax
mov byte [esp + 0x48], bl
call dword [ecx + 0x30]
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, eax
mov byte [esp + 0x40], 0xa
call sub.MFC71.DLL_AfxGetModuleState
mov ebp, dword [eax + 4]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.LastProjectPath
push 0x468834
mov ecx, ebp
call sub.MFC71.DLL_CWinApp::WriteProfileStringA
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x41eb4e
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push 0
push eax
mov byte [esp + 0x4c], 0xb
call dword [ecx + 0x14]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x48]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov edx, dword [esp + 0x4c]
push edx
call esi
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x40], 3
je 0x41eb06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x40], 2
je 0x41eb19
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x4c]
push edx
mov byte [esp + 0x44], 4
call esi
xor ebx, ebx
mov esi, dword [esp + 0x48]
push 0x464770
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x40], 3
je 0x41eb8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x40], 2
je 0x41eb9d
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x38]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8