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

Disassembly:
mov eax, 0x43f308
call fcn.0043e100
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
and dword [esi + 0x30], 0
lea eax, [esi + 0x2c]
mov dword [ebp - 0x14], eax
push 0x3d
mov eax, dword [eax]
push 0x450090
and word [eax], 0
call fcn.004013f5
test al, al
jne 0x40ed19
push dword [esi + 0x20]
lea ecx, [ebp - 0x2c]
push dword [esi + 0x14]
call fcn.0041f0dc
lea eax, [ebp - 0x2c]
push 0x449b88
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [sym.imp.MSVCRT.dll__iob]
mov edi, dword [sym.imp.MSVCRT.dll__fileno]
call edi
mov ebx, dword [sym.imp.MSVCRT.dll__isatty]
push eax
call ebx
mov esi, dword [ebp + 0xc]
test eax, eax
setne al
mov byte [esi + 3], al
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x20
push eax
call edi
push eax
call ebx
test eax, eax
setne al
mov byte [esi + 4], al
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call edi
push eax
call ebx
mov edi, dword [ebp - 0x10]
add esp, 0x18
test eax, eax
setne al
mov byte [esi + 5], al
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x40ed84
cmp byte [eax + 0x14], 0
jne 0x40ed84
cmp byte [eax + 0x28], 0
jne 0x40ed84
xor eax, eax
jmp 0x40ed87
push 1
pop eax
mov byte [esi], al
mov eax, dword [edi]
mov al, byte [eax + 0x26c]
mov byte [esi + 6], al
mov eax, dword [edi]
mov al, byte [eax + 0x280]
mov byte [esi + 7], al
mov eax, dword [edi]
cmp byte [eax + 0x3c], 0
sete al
mov byte [esi + 8], al
mov eax, dword [edi]
cmp byte [eax + 0x2e4], 0
je 0x40ede0
mov eax, dword [eax + 0x2ec]
lea ecx, [ebp - 0x2c]
mov edx, dword [eax]
call fcn.0040f08b
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x1c]
call fcn.00402584
push dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
call fcn.00401c56
pop ecx
mov eax, dword [edi]
mov al, byte [eax + 0x2d0]
mov byte [esi + 0xb], al
mov eax, dword [edi]
mov al, byte [eax + 0x64]
mov byte [esi + 0xc], al
mov eax, dword [edi]
cmp byte [eax + 0x50], 0
jne 0x40ee07
cmp byte [esi + 7], 0
jne 0x40ee07
cmp byte [esi + 4], 0
jne 0x40ee0e
and dword [esi + 0x228], 0
cmp byte [esi + 7], 0
je 0x40ee1b
and dword [esi + 0x220], 0
mov eax, dword [edi]
add eax, 0x8c
cmp byte [eax], 0
je 0x40ee30
mov eax, dword [eax + 4]
mov dword [esi + 0x220], eax
mov eax, dword [edi]
add eax, 0xa0
cmp byte [eax], 0
je 0x40ee45
mov eax, dword [eax + 4]
mov dword [esi + 0x224], eax
mov eax, dword [edi]
add eax, 0xb4
cmp byte [eax], 0
je 0x40ee5a
mov eax, dword [eax + 4]
mov dword [esi + 0x228], eax
mov eax, dword [edi]
cmp byte [eax + 0x78], 0
je 0x40eeb0
mov eax, dword [eax + 0x80]
mov ebx, dword [eax]
cmp dword [ebx + 4], 0
jne 0x40ee7c
mov dword [esi + 0x22c], 1
jmp 0x40eeb0
mov ecx, dword [ebx]
lea edx, [ebp + 8]
call fcn.0040f0b8
test al, al
jne 0x40eea7
push dword [ebx]
lea ecx, [ebp - 0x2c]
push str.Unsupported_switch_postfix__bb
call fcn.0041f0dc
lea eax, [ebp - 0x2c]
push 0x449b88
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
mov dword [esi + 0x22c], eax
mov eax, dword [edi]
cmp byte [eax + 0x334], 0
je 0x40eed1
cmp byte [eax + 0x335], 0
sete al
mov byte [0x4504a0], al
mov byte [esi + 2], al
mov byte [esi + 1], 1
call fcn.0040f0a0
mov eax, dword [edi]
cmp byte [eax + 0x294], 0
je 0x40ef1e
and dword [ebp + 8], 0
mov eax, dword [eax + 0x29c]
mov esi, dword [eax]
cmp dword [esi + 4], 0
jne 0x40efa9
mov dword [ebp + 8], 1
call fcn.00408b98
cmp dword [ebp + 8], eax
jbe 0x40ef1e
call fcn.0043dbe0
mov dl, 1
mov ecx, str.SeLockMemoryPrivilege
call fcn.00408b12
mov byte [0x4505f8], al
mov edi, dword [edi]
cmp byte [edi + 0x208], 0
je 0x40f07a
mov eax, dword [edi + 0x210]
mov esi, dword [eax]
cmp dword [esi + 4], 0
je 0x40f07a
lea ecx, [ebp - 0x20]
call fcn.004024a6
push dword [esi]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.004025d5
mov ebx, dword [ebp - 0x14]
push str.Set_process_affinity_mask:
mov ecx, ebx
call fcn.00402fac
mov ecx, dword [ebp - 0x20]
lea edx, [ebp + 8]
call fcn.00403894
mov edi, eax
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x40ef86
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x1c], 0
and byte [eax], 0
cmp dword [ebp - 0x1c], 0
jne 0x40eff0
push dword [esi]
lea ecx, [ebp - 0x2c]
push str.Unsupported_switch_postfix__stm
call fcn.0041f0dc
lea eax, [ebp - 0x2c]
push 0x449b88
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi]
push 0x443c10
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x40eefe
mov ecx, dword [esi]
lea edx, [ebp + 8]
call fcn.0040f0b8
test al, al
jne 0x40eefe
push dword [esi]
lea ecx, [ebp - 0x2c]
push str.Unsupported_switch_postfix_for__slp
call fcn.0041f0dc
lea eax, [ebp - 0x2c]
push 0x449b88
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp edx, 1
jb 0x40f018
ja 0x40effb
test edi, edi
jb 0x40f018
push dword [esi]
lea ecx, [ebp - 0x2c]
push str.unsupported_value__stm
call fcn.0041f0dc
lea eax, [ebp - 0x2c]
push 0x449b88
push eax
call sub.MSVCRT.dll__CxxThrowException
push edx
push edi
mov ecx, ebx
call fcn.0040f0f3
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
jne 0x40f06a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str._:_ERROR_:
mov ecx, ebx
mov esi, eax
call fcn.00402fac
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.0040517b
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402f70
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00401c56
pop ecx
mov ecx, ebx
call fcn.00402efd
push dword [ebp - 0x20]
call fcn.00401c56
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8