Function at 0x401730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7d4
mov eax, dword [0x414014]
xor eax, esp
mov dword [esp + 0x7d0], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.mfc140.dll_Ordinal_7961]
push 0xc
call dword [sym.imp.mfc140.dll_Ordinal_1507]
add esp, 4
test eax, eax
je 0x401770
mov ecx, eax
call dword [sym.imp.mfc140.dll_Ordinal_952]
mov esi, eax
jmp 0x401772
xor esi, esi
call dword [sym.imp.mfc140.dll_Ordinal_7282]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_13378]
push 0x40ecac
mov ecx, edi
call dword [sym.imp.mfc140.dll_Ordinal_13830]
lea eax, [esp + 0x6d0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
add esp, 8
lea eax, [esp + 0x6d0]
mov ecx, 0x415824
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1529]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x104
lea eax, [esp + 0x5cc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x5c8]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0x12
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_12863]
push 0x40eccc
push dword [eax]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test bl, bl
je 0x40184a
lea eax, [esp + 0x10]
push 0x40ece0
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 8
lea ecx, [esp + 0x10]
push 0
push 0
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_2298]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0xff
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
mov dword [esp + 0x1c], ebx
push 0xff
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [0x40eccc]
add esp, 0xc
movups xmmword [ebx], xmm0
mov cx, word [0x40ecdc]
mov word [ebx + 0x10], cx
mov ecx, 0x415824
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov eax, dword [0x415824]
push 1
push 0x40ed0c
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4018d1
mov eax, dword [esp + 0x18]
sub ecx, edx
push ecx
push ebx
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
mov ecx, dword [esp + 0x28]
add esp, 0x14
call fcn.004015b0
cmp eax, 2
lea ecx, [esp + 0x14]
sete bl
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test bl, bl
je 0x401977
push dword [esp + 0x1c]
mov edx, 0x415824
lea ecx, [esp + 0x18]
push 0x40ed0c
call fcn.00401250
add esp, 4
lea ecx, [esp + 0x20]
mov edx, eax
call fcn.00401250
add esp, 4
push dword [eax]
lea eax, [esp + 0x14]
push 0x40ed10
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push 0
push 0
lea ecx, [esp + 0x18]
jmp 0x401835
push ecx
lea ecx, [esp + 0x24]
call fcn.00402290
lea eax, [esp + 0x20]
mov ecx, eax
mov dword [edi + 0x20], eax
call dword [sym.imp.mfc140.dll_Ordinal_4084]
test esi, esi
je 0x40199d
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
lea ecx, [esp + 0x20]
call fcn.004019d0
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [esp + 0x7dc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bb2c
mov esp, ebp
pop ebp
ret