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

Disassembly:
mov eax, 0x121c
call fcn.00404f60
mov eax, dword [0x408018]
xor eax, esp
mov dword [esp + 0x1214], eax
mov eax, dword [0x408420]
mov ecx, dword [0x408424]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x20], eax
push edi
lea eax, [esp + 0x20]
lea edx, [esp + 0x118]
mov ebx, 1
push eax
mov dword [esp + 0x24], 0x58
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], str..txt
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x11c], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], str.Load_redirections_from..
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], 0x406588
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test eax, eax
je 0x4020f4
push 0x40658c
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR80.dll_fopen_s]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, esi
jne 0x401eff
mov eax, dword [0x408420]
push esi
push 0x406434
push 0x406590
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4020f4
push eax
lea ecx, [esp + 0x624]
push 0x400
push ecx
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4020e6
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebx, [ebx]
lea edx, [esp + 0x1c]
push edx
push 0x400
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x630]
push str._i__s__i
push edx
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0x18
cmp eax, 3
jne 0x4020c3
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xa24]
push 0x4065d4
push ecx
mov edx, 0x400
call fcn.004045d0
mov edx, dword [0x408418]
add esp, 0xc
push esi
push esi
push 0x1004
push edx
call edi
mov edx, dword [0x408418]
lea ecx, [esp + 0xb0]
push ecx
add eax, 0xa
push esi
mov dword [esp + 0xbc], eax
push 0x104d
lea eax, [esp + 0xa2c]
push edx
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xd4], eax
call edi
push 0x400
mov esi, eax
lea eax, [esp + 0xa24]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x22c]
push ecx
push 0
push 0
call ebp
mov ecx, dword [0x408418]
lea eax, [esp + 0x7c]
push eax
push esi
push 0x1074
lea edx, [esp + 0xa2c]
push ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0xa0], edx
call edi
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0xa24]
push 0x4065d4
push eax
mov edx, 0x400
call fcn.004045d0
mov eax, dword [0x408418]
add esp, 0xc
lea edx, [esp + 0x7c]
push edx
push esi
push 0x1074
lea ecx, [esp + 0xa2c]
push eax
mov dword [esp + 0x94], 2
mov dword [esp + 0xa0], ecx
call edi
mov edx, dword [0x408418]
lea ecx, [esp + 0xe4]
push ecx
push esi
push 0x1074
push edx
mov dword [esp + 0xfc], 3
mov dword [esp + 0x108], 0x406430
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
lea ecx, [esp + 0x22c]
call fcn.00401c20
add esp, 0xc
test al, al
jne 0x4020c1
mov edx, dword [0x408418]
push 0
push esi
push 0x1008
push edx
call edi
xor esi, esi
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x624]
push 0x400
push ecx
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x401f30
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x1224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004045ec
add esp, 0x121c
ret