Function at 0x403800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::CStringArray
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_2
push 0x414
mov ecx, esi
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CWnd::IsDlgButtonChecked
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
test eax, eax
je 0x4038af
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push 0x417
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
push 1
push ebx
push 0x418
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItemInt
mov ecx, dword [esp + 0x10]
push eax
push ecx
call edi
add esp, 4
lea edx, [esp + 0x10]
push eax
push str._d:_d
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x34]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x415
mov ecx, esi
call sub.MFC42.DLL_CWnd::IsDlgButtonChecked
test eax, eax
je 0x403910
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push 0x419
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
push 1
push ebx
push 0x41b
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItemInt
push eax
mov eax, dword [esp + 0x14]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x10]
push eax
push str._d:_d
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x34]
add esp, 0x10
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x416
mov ecx, esi
call sub.MFC42.DLL_CWnd::IsDlgButtonChecked
test eax, eax
je 0x403971
lea ecx, [esp + 0x10]
push ecx
push 0x41a
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
push 1
push ebx
push 0x41c
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItemInt
mov edx, dword [esp + 0x10]
push eax
push edx
call edi
add esp, 4
push eax
lea eax, [esp + 0x14]
push str._d:_d
push eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x24]
dec eax
cmp eax, 0xffffffff
jne 0x4039bd
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00416f64
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
cmp dword [esi + 0x168], eax
jle 0x4039cb
mov dword [esi + 0x168], ebx
mov ecx, dword [esi + 0x168]
push ebp
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00404270
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.00416eb6
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
push 0x420084
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
mov ebp, dword [eax]
push ebx
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [esi + 0x16c]
mov ebx, eax
push ebp
sub ebx, ecx
call edi
add esp, 8
cmp ebx, eax
lea ecx, [esp + 0x18]
setg bl
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebp
je 0x403a74
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov dword [esi + 0x16c], eax
mov eax, dword [esi + 0x168]
add esp, 4
inc eax
mov dword [esi + 0x168], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
lea esi, [edx + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00416f64
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret