Function at 0x401fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40db35
push eax
mov eax, 0x2954
mov dword fs:[0], esp
call fcn.0040d270
push ebp
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2968], esi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1150]
mov byte [esp + 0x2968], 1
mov dword [esp + 0x18], esi
call fcn.00405080
push 0x413a44
lea ecx, [esp + 0x18]
mov byte [esp + 0x296c], 2
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1150]
push eax
push esi
mov byte [esp + 0x2970], 3
call fcn.004050b0
mov eax, dword [esp + 0x2970]
lea ecx, [esp + 0x150]
push 0x1000
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x1160]
call fcn.00405120
mov ebp, eax
cmp ebp, esi
jne 0x4024f0
push ebx
lea ecx, [esp + 0x1154]
call fcn.00405110
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040ce88
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x296c], 4
call fcn.00405230
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x2970], 5
call fcn.0040a260
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 1
mov ebp, ecx
mov bl, 6
push edi
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x2974], bl
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x402140
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
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 + 0x24]
mov dword [esp + 0x28], ebp
mov edi, 1
mov byte [ecx + ebp], 0
lea edx, [esp + 0x30]
push edi
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x5c]
call fcn.004052d0
test al, al
je 0x40218a
push str.mark
lea ecx, [esp + 0x34]
xor ebp, ebp
call fcn.0040aec0
mov ecx, eax
call fcn.0040b010
test al, al
jne 0x402194
push str.mark
lea ecx, [esp + 0x34]
call fcn.0040aec0
mov ecx, eax
call fcn.0040aa00
jmp 0x40219e
mov ebp, 0x411
jmp 0x402361
mov ebp, 0x412
jmp 0x402361
add eax, 2
cmp eax, 4
ja case.default.0x4021aa
jmp dword [eax*4 + 0x4025b0]
push 0xffffffffffffffff
mov ecx, 0x413a48
call sub.MFC42.DLL_CSyncObject::Lock
mov eax, dword [0x413b8c]
mov ecx, 0x413a48
mov dword [eax + 4], edi
call sub.MFC42.DLL_CMutex::Unlock
jmp 0x402361
push 0xffffffffffffffff
mov ecx, 0x413a48
call sub.MFC42.DLL_CSyncObject::Lock
mov eax, dword [0x413b8c]
mov ecx, 0x413a48
mov dword [eax + 4], 2
call sub.MFC42.DLL_CMutex::Unlock
jmp 0x402361
push 0xffffffffffffffff
mov ecx, 0x413a48
call sub.MFC42.DLL_CSyncObject::Lock
mov eax, dword [0x413b8c]
mov ecx, 0x413a48
mov dword [eax + 4], 3
call sub.MFC42.DLL_CMutex::Unlock
push 0
lea ecx, [esp + 0xec]
mov ebp, 0x413
call fcn.00404000
lea ecx, [esp + 0xe8]
mov byte [esp + 0x296c], 7
mov dword [esp + 0x148], 2
call sub.MFC42.DLL_CDialog::DoModal
lea ecx, [esp + 0x14c]
mov byte [esp + 0x296c], 8
call fcn.0040c0f0
mov byte [esp + 0x296c], bl
lea ecx, [esp + 0xe8]
jmp 0x40235c
push 0xffffffffffffffff
mov ecx, 0x413a48
call sub.MFC42.DLL_CSyncObject::Lock
mov eax, dword [0x413b8c]
mov ecx, 0x413a48
mov dword [eax + 4], 5
call sub.MFC42.DLL_CMutex::Unlock
push 0
lea ecx, [esp + 0xec]
mov ebp, 0x414
call fcn.00404000
lea ecx, [esp + 0xe8]
mov byte [esp + 0x296c], 9
mov dword [esp + 0x148], edi
call sub.MFC42.DLL_CDialog::DoModal
lea ecx, [esp + 0x14c]
mov byte [esp + 0x296c], 0xa
call fcn.0040c0f0
mov byte [esp + 0x296c], bl
lea ecx, [esp + 0xe8]
jmp 0x40235c
push 0xffffffffffffffff
mov ecx, 0x413a48
call sub.MFC42.DLL_CSyncObject::Lock
mov eax, dword [0x413b8c]
mov ecx, 0x413a48
mov dword [eax + 4], 0x63
call sub.MFC42.DLL_CMutex::Unlock
push 0
lea ecx, [esp + 0xec]
mov ebp, 0x415
call fcn.00404000
lea ecx, [esp + 0xe8]
mov byte [esp + 0x296c], 0xb
mov dword [esp + 0x148], edi
call sub.MFC42.DLL_CDialog::DoModal
lea ecx, [esp + 0x14c]
mov byte [esp + 0x296c], 0xc
call fcn.0040c0f0
mov byte [esp + 0x296c], bl
lea ecx, [esp + 0xe8]
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esp + 0x30]
mov byte [esp + 0x296c], 5
call fcn.0040a780
push edi
lea ecx, [esp + 0xd8]
mov byte [esp + 0x2970], 0xf
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2970], 0xe
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0xac]
mov byte [esp + 0x296c], 0xd
test eax, eax
pop ebx
je 0x402403
mov eax, dword [esp + 0x88]
push 0
mov ecx, eax
add eax, 0x20
mov dword [esp + 0x8c], eax
call fcn.00402a00
mov eax, dword [esp + 0xa8]
dec eax
mov dword [esp + 0xa8], eax
je 0x4023ef
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
cmp ecx, eax
jne 0x4023f8
lea ecx, [esp + 0x7c]
call fcn.00402970
mov eax, dword [esp + 0xa8]
test eax, eax
jne 0x4023b2
mov eax, dword [esp + 0x78]
mov byte [esp + 0x2968], 4
test eax, eax
je 0x4024cb
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x78]
add ecx, 4
dec eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x78], eax
je 0x40243b
mov eax, dword [esp + 0x54]
mov edx, ecx
cmp edx, eax
jne 0x4024bf
mov ecx, dword [esp + 0x5c]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x5c], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x7c]
add esp, 4
test eax, eax
jne 0x4024a3
lea ecx, [esp + 0x3c]
call fcn.004029f0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], ecx
push eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4024bf
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x402417
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x402544
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4024e5
cmp al, 0xff
je 0x4024e5
dec al
mov byte [ecx], al
jmp 0x402544
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x402544
push esi
lea ecx, [esp + 0xe8]
call fcn.00404000
lea ecx, [esp + 0xe4]
mov byte [esp + 0x2968], 0x10
mov dword [esp + 0x144], 1
call sub.MFC42.DLL_CDialog::DoModal
lea ecx, [esp + 0x148]
mov byte [esp + 0x2968], 0x11
call fcn.0040c0f0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x2968], 3
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esp + 0x14]
mov byte [esp + 0x2968], 2
call fcn.0040ce8e
lea ecx, [esp + 0x1150]
mov byte [esp + 0x2968], 1
call fcn.00405110
lea ecx, [esp + 0x10]
mov byte [esp + 0x2968], 0
call fcn.0040ce8e
lea ecx, [esp + 0x2970]
mov dword [esp + 0x2968], 0xffffffff
call fcn.0040ce8e
mov ecx, dword [esp + 0x2960]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2960
ret 4