Function at 0x40d140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
call fcn.00422340
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00422340
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.00422340
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.0041e360
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
mov ebx, 3
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], bl
call fcn.0041e840
lea edx, [esp + 0x44]
push 0xb
push edx
lea ecx, [esp + 0x20]
call fcn.0041e8e0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x44]
push 5
push eax
lea ecx, [esp + 0x20]
call fcn.0041e8e0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0x1c]
call fcn.0041e8a0
lea ecx, [esp + 0x44]
push 0x50
push ecx
lea ecx, [esp + 0x20]
call fcn.0041e8e0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x44]
push 5
push edx
lea ecx, [esp + 0x20]
call fcn.0041e8e0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0x16954
jne 0x40d3f8
push esi
push edi
lea ecx, [esp + 0x1c]
push 0x140
push ecx
lea ecx, [esp + 0x28]
call fcn.0041e8e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x48]
push 0x1e
push edx
lea ecx, [esp + 0x28]
call fcn.0041e8e0
lea eax, [esp + 0x4c]
push 0x1e
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 9
call fcn.0041e8e0
push 0x20
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0xa
call sub.MFC42.DLL_CString::Remove
push 0x20
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::Remove
mov esi, dword [esp + 0x48]
lea edx, [ebp + 0x2504]
mov ecx, 0xc03
xor eax, eax
mov edi, edx
push 0x40000001
rep stosd dword es:[edi], eax
mov ecx, dword [esi - 8]
mov edi, edx
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x54]
lea edi, [ebp + 0x2525]
mov ecx, dword [esi - 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
call dword [ebp + 0x5540]
add esp, 8
cmp eax, 1
pop edi
pop esi
jne 0x40d36a
push 0
push 0
push 0x431668
call sub.MFC42.DLL_AfxMessageBox
push 0
mov ecx, ebp
call fcn.0040d0e0
mov ecx, ebp
call fcn.00402440
jmp 0x40d3d4
call dword [ebp + 0x5530]
cmp eax, 0x9c5
je 0x40d3b8
push eax
lea ecx, [esp + 0xc]
push 0x431650
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
call dword [ebp + 0x5534]
push eax
lea edx, [esp + 0x10]
push 0x430440
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
push eax
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x40d3d4
push str.2003
lea ecx, [esp + 0x10]
call fcn.00422328
mov edx, dword [esp + 0xc]
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
mov ecx, ebp
call fcn.00409980
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40d448
push eax
lea eax, [esp + 0xc]
push 0x431638
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x10]
push ecx
push 0x430440
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edx, dword [ebp + 0x20]
push 0
push 0
push 0x532
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.0041e3a0
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 + 8]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8