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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_CDialog::OnInitDialog
mov eax, dword [0x4fa100]
mov ecx, dword [eax + 0x34cc]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [0x4fa100]
lea ecx, [ebp + 0x4868]
mov eax, dword [edx + 0x34cc]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [0x4fa100]
lea ecx, [ebp + 0x48a8]
mov eax, dword [edx + 0x52c]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [0x4fa100]
lea ecx, [ebp + 0x48e8]
mov eax, dword [edx + 0x34d0]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [ebp + 0x4998]
lea edx, [ebp + 0x4a78]
lea eax, [ebp + 0x4b58]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
lea ecx, [ebp + 0x4c38]
lea edx, [ebp + 0x4d18]
lea eax, [ebp + 0x4df8]
mov esi, dword [ebp + 0x60]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
lea ecx, [ebp + 0x4928]
lea edx, [ebp + 0x4a08]
lea eax, [ebp + 0x4ae8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
lea ecx, [ebp + 0x4bc8]
lea edx, [ebp + 0x4ca8]
lea eax, [ebp + 0x4d88]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [ebp + 0x4864], 0
jmp 0x401509
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
mov esi, dword [esp + 0x24]
mov ecx, dword [ebp + 0x4864]
push 0x400
shl ecx, 0xa
push esi
lea edx, [ecx + ebp + 0x64]
push edx
call fcn.004625f0
mov eax, dword [ebp + 0x4864]
push 0x7c
shl eax, 0xa
lea ecx, [eax + ebp + 0x64]
push ecx
call edi
add esp, 0x14
test eax, eax
je 0x40189e
mov edx, dword [ebp + 0x4864]
push 0x7c
shl edx, 0xa
lea eax, [edx + ebp + 0x64]
push eax
call edi
mov byte [eax], 0
mov ecx, dword [ebp + 0x4864]
shl ecx, 0xa
lea edx, [ecx + ebp + 0x64]
push edx
call fcn.00462680
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x40189e
push 0x7c
push esi
call edi
mov ebx, eax
mov eax, dword [ebp + 0x4864]
shl eax, 0xa
inc ebx
push 0x400
lea ecx, [eax + ebp + 0x1864]
push ebx
push ecx
call fcn.004625f0
mov edx, dword [ebp + 0x4864]
push 0x7c
shl edx, 0xa
lea eax, [edx + ebp + 0x1864]
push eax
call edi
add esp, 0x1c
test eax, eax
je 0x40189e
mov ecx, dword [ebp + 0x4864]
push 0x7c
shl ecx, 0xa
lea edx, [ecx + ebp + 0x1864]
push edx
call edi
mov byte [eax], 0
mov eax, dword [ebp + 0x4864]
shl eax, 0xa
mov esi, 0x4d11bc
lea ecx, [eax + ebp + 0x1864]
push ecx
call fcn.00462680
add esp, 0xc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401612
test cl, cl
je 0x40160e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401612
add eax, 2
add esi, 2
test cl, cl
jne 0x4015ee
xor eax, eax
jmp 0x401617
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40162c
mov eax, dword [ebp + 0x4864]
shl eax, 0xa
mov byte [eax + ebp + 0x1864], 0
push 0x7c
push ebx
call edi
mov ecx, dword [ebp + 0x4864]
mov ebx, eax
shl ecx, 0xa
inc ebx
push 0x400
lea edx, [ecx + ebp + 0x3064]
push ebx
push edx
call fcn.004625f0
mov eax, dword [ebp + 0x4864]
push 0x7c
shl eax, 0xa
lea ecx, [eax + ebp + 0x3064]
push ecx
call edi
add esp, 0x1c
test eax, eax
je 0x40189e
mov edx, dword [ebp + 0x4864]
push 0x7c
shl edx, 0xa
lea eax, [edx + ebp + 0x3064]
push eax
call edi
mov byte [eax], 0
mov ecx, dword [ebp + 0x4864]
shl ecx, 0xa
mov esi, 0x4d11bc
lea edx, [ecx + ebp + 0x3064]
push edx
call fcn.00462680
add esp, 0xc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4016ca
test cl, cl
je 0x4016c6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4016ca
add eax, 2
add esi, 2
test cl, cl
jne 0x4016a6
xor eax, eax
jmp 0x4016cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4016e4
mov eax, dword [ebp + 0x4864]
shl eax, 0xa
mov byte [eax + ebp + 0x3064], 0
push 0x7c
push ebx
call edi
mov ecx, dword [ebp + 0x4864]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
shl ecx, 0xa
add esp, 8
inc eax
lea edx, [ecx + ebp + 0x64]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x6c]
push str._s
push eax
call esi
mov ecx, dword [ebp + 0x4864]
shl ecx, 0xa
lea edx, [ecx + ebp + 0x1864]
push edx
call fcn.00462680
mov cl, byte [eax]
add esp, 0x10
test cl, cl
je 0x401774
mov eax, dword [ebp + 0x4864]
shl eax, 0xa
lea ecx, [eax + ebp + 0x1864]
push ecx
call fcn.00463500
mov edx, dword [0x4fa100]
push ecx
lea edi, [esp + 0x70]
or ecx, 0xffffffff
mov eax, dword [edx + 0x69c]
fstp qword [esp]
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.____s_.3lf
lea ecx, [esp + ecx + 0x78]
push ecx
call esi
add esp, 0x14
mov edx, dword [ebp + 0x4864]
shl edx, 0xa
lea eax, [edx + ebp + 0x3064]
push eax
call fcn.00462680
mov cl, byte [eax]
add esp, 4
test cl, cl
je 0x4017ee
mov ecx, dword [ebp + 0x4864]
mov edi, 0x4d7690
shl ecx, 0xa
lea eax, [ecx + ebp]
mov cl, byte [ecx + ebp + 0x1864]
test cl, cl
jne 0x4017b4
mov edi, 0x4d11a4
add eax, 0x3064
push eax
call fcn.00463500
mov edx, dword [0x4fa100]
push ecx
or ecx, 0xffffffff
mov eax, dword [edx + 0x6a0]
fstp qword [esp]
push eax
push edi
lea edi, [esp + 0x78]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.__s_s_.3lf
lea ecx, [esp + ecx + 0x7c]
push ecx
call esi
add esp, 0x18
mov edx, dword [ebp + 0x4864]
shl edx, 0xa
mov cl, byte [edx + ebp + 0x1864]
lea eax, [edx + ebp]
test cl, cl
jne 0x40180f
mov cl, byte [eax + 0x3064]
test cl, cl
je 0x40183d
mov edi, 0x4d1194
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x68]
push eax
call fcn.00462680
mov edx, eax
mov edi, 0x4d1190
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x4864]
mov ecx, dword [esp + eax*4 + 0x2c]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [ebp + 0x4864]
inc ecx
mov eax, ecx
mov dword [ebp + 0x4864], ecx
cmp eax, 6
jl 0x4014ff
mov eax, dword [ebp + 0x4864]
cmp eax, 6
jge 0x4018ce
lea esi, [eax*4]
mov ecx, dword [esp + esi + 0x28]
push 0
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [esp + esi + 0x40]
push 0
call sub.MFC42.DLL_CWnd::ShowWindow
add esi, 4
cmp esi, 0x18
jl 0x4018b0
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x14]
mov eax, dword [edx + 0x20]
push ecx
push eax
call edi
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x58]
push ecx
mov eax, dword [edx + 0x20]
push eax
call edi
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x4864]
sub esi, ecx
mov ecx, 6
lea edx, [esp + 0x14]
sub ecx, eax
mov eax, dword [ebp + 0x4888]
push edx
push eax
imul esi, ecx
call edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x20], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x1c]
sub edx, eax
push edx
push ecx
push eax
lea ecx, [ebp + 0x4868]
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [ebp + 0x48c8]
lea eax, [esp + 0x14]
push eax
push ecx
call edi
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov ebx, esi
lea eax, [esp + 0x14]
neg ebx
push ebx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [ebp + 0x48a8]
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [ebp + 0x4908]
lea eax, [esp + 0x14]
push eax
push ecx
call edi
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
push ebx
lea eax, [esp + 0x18]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [ebp + 0x48e8]
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x20], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x1c]
sub edx, eax
push edx
push ecx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MoveWindow
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::CenterWindow
cmp dword [ebp + 0x4864], 1
jge 0x401a44
mov ecx, ebp
call sub.MFC42.DLL_CDialog::OnCancel
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret