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

Disassembly:
push 0xffffffffffffffff
push 0x40fd8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x48]
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0xa4], ebx
call sub.MFC42.DLL_CWnd::GetWindowTextA
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
cmp eax, dword [esi + 0x48]
jne 0x404165
cmp byte [0x41518c], bl
jne 0x404165
test byte [esi + 0x64], 8
je 0x403ece
cmp dword [esi + 0xd4], ebx
je 0x403ece
mov cl, byte [esp + 0x13]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x3c], cl
push ebx
lea ecx, [esp + 0x40]
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 edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x44]
mov byte [esp + 0xa0], 1
cmp eax, ebx
mov ebp, eax
jne 0x403d50
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4041a6
mov eax, dword [esi + 0x48]
lea edx, [esp + 0x90]
lea ecx, [esp + 0x28]
push edx
mov edx, dword [eax + 0x20]
push ecx
push 0xb0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x68]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov edi, 0x415188
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xa0], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x415188
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov eax, dword [esi + 0xb8]
mov byte [esp + 0xa0], 3
mov eax, dword [eax]
mov dword [esi + 0xc0], eax
mov ecx, dword [esi + 0xb8]
cmp eax, ecx
je 0x403e9b
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, dword [esi + 0xc0]
add edi, 8
mov edx, dword [ecx]
lea ecx, [esp + 0x68]
push edx
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x78], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esi + 0xc0]
mov edx, dword [edi + 0x18]
add ecx, 8
cmp eax, ebx
mov dword [esp + 0x80], edx
jne 0x403e24
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x44]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
cmp eax, ebx
je 0x403e53
mov eax, dword [esi + 0xc0]
mov eax, dword [eax]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xb8]
cmp dword [esi + 0xc0], eax
jne 0x403dd8
jmp 0x403e9b
mov byte [0x41518c], 1
mov eax, dword [esi + 0xc0]
add eax, 8
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x403e6f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esi + 0x48]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x10]
mov ecx, dword [esi + 0x48]
push eax
push ebp
mov edx, dword [ecx + 0x20]
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [0x41518c], bl
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa4], 1
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 1
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp byte [0x41518c], bl
jne 0x404165
test byte [esi + 0x64], 0x10
je 0x404165
mov al, byte [esp + 0x13]
push ebx
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00404770
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov cl, byte [esp + 0x13]
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x2c], cl
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 4
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 edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [esp + 0x34]
mov byte [esp + 0xa0], 5
cmp eax, ebx
jne 0x403f9e
cmp dword [esi + 0x98], ebx
je 0x403f53
mov edx, dword [esi + 0x20]
push ebx
push ebx
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 4
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 + 0x1c]
mov byte [esp + 0xa0], bl
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00404710
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jmp 0x4041a6
mov eax, dword [esi + 0x48]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x94]
lea ecx, [esp + 0x84]
push edx
mov edx, dword [eax + 0x20]
push ecx
push 0xb0
push edx
call ebp
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
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 edi, 0x415188
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xa0], 6
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x415188
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov eax, dword [esi + 0xb8]
mov byte [esp + 0xa0], 7
mov eax, dword [eax]
mov dword [esi + 0xc0], eax
mov ecx, dword [esi + 0xb8]
cmp eax, ecx
je 0x4040be
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, dword [esi + 0xc0]
add edi, 8
mov edx, dword [ecx]
lea ecx, [esp + 0x4c]
push edx
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x5c], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0xc0]
mov edx, dword [edi + 0x18]
add ecx, 8
cmp eax, ebx
mov dword [esp + 0x64], edx
jne 0x404075
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x34]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
cmp eax, ebx
jne 0x40409e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004045d0
mov eax, dword [esi + 0xc0]
mov eax, dword [eax]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xb8]
cmp dword [esi + 0xc0], eax
jne 0x40402c
cmp dword [esi + 0x98], ebx
je 0x4040d3
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0x402
push ecx
call ebp
cmp dword [esp + 0x20], ebx
je 0x4040e5
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.004029d0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0xa4], 5
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 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 4
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 + 0x1c]
mov byte [esp + 0xa0], bl
mov edi, eax
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x24], ecx
je 0x404154
lea eax, [esp + 0x88]
push ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.004047a0
mov ecx, dword [eax]
lea edx, [esp + 0x8c]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00404630
cmp dword [esp + 0x24], edi
jne 0x404124
mov eax, dword [esp + 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp dword [esi + 0x98], ebx
jne 0x4041a6
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov edi, eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov esi, dword [esi + 0x20]
mov ecx, dword [eax + 0x20]
and edi, 0xffff
push esi
or edi, 0x60000
push edi
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret