Function at 0x41eb80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45ed35
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.00455237
mov ebp, dword [esp + 0x48]
cmp ebp, ebx
jne 0x41ebfa
call sub.MFC71.DLL_AfxGetThread
cmp eax, ebx
je 0x41ebf5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x41ebf7
xor eax, eax
mov ebp, dword [eax + 0x20]
mov ecx, dword [esi + 0x104]
mov eax, dword [ecx]
push 4
lea edx, [esp + 0x1c]
push edx
call dword [eax + 0x6c]
mov ecx, dword [esi + 0x104]
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 0x46b638
push 0x17
push ebx
push 0x46b7cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x41ecc2
mov esi, dword [esp + 0x44]
push 0x465798
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 0x41ec7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x3c], 2
je 0x41ec8e
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 0x41ece1
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x46b730
push eax
call dword [ecx]
cmp esi, ebx
je 0x41eceb
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.004425b4
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.00455299
cmp eax, ebx
je 0x41ed3c
push 0xffffffffffffffff
push eax
call fcn.004024d0
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0x48], esi
jne 0x41ed42
push 0x8007000e
call fcn.00402310
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 0x46985c
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 0x41edb0
push 0xffffffffffffffff
push eax
call fcn.004024d0
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x4c], edi
jne 0x41edb6
push 0x8007000e
call fcn.00402310
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 0x6048
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 0x41ee14
push 0xffffffffffffffff
push eax
call fcn.004024d0
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x4c], edi
jne 0x41ee1a
push 0x8007000e
call fcn.00402310
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 0x41ef86
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 0x46985c
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 0x41ef6e
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 0x41ef26
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x40], 2
je 0x41ef39
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 0x465798
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 0x41efaa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x40], 2
je 0x41efbd
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