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

Disassembly:
mov eax, 0x4aa0a4
call fcn.004a51d0
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
and dword [edi + 0x30], 0
lea eax, [edi + 0x2c]
mov dword [ebp - 0x10], eax
push 0x40
mov eax, dword [eax]
push 0x4c81b0
and word [eax], 0
call fcn.004013ea
test al, al
jne 0x41207e
push dword [edi + 0x20]
lea ecx, [ebp - 0x28]
push dword [edi + 0x14]
call fcn.00422421
lea eax, [ebp - 0x28]
push 0x4bba70
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [sym.imp.MSVCRT.dll__iob]
mov ebx, dword [sym.imp.MSVCRT.dll__fileno]
call ebx
push eax
call dword [sym.imp.MSVCRT.dll__isatty]
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 ebx
push eax
call dword [sym.imp.MSVCRT.dll__isatty]
test eax, eax
setne al
mov byte [esi + 4], al
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call ebx
push eax
call dword [sym.imp.MSVCRT.dll__isatty]
add esp, 0x18
test eax, eax
setne al
mov byte [esi + 5], al
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x4120ec
cmp byte [eax + 0x14], 0
jne 0x4120ec
cmp byte [eax + 0x28], 0
jne 0x4120ec
xor eax, eax
jmp 0x4120ef
push 1
pop eax
mov byte [esi], al
mov eax, dword [edi]
mov al, byte [eax + 0xc8]
mov byte [esi + 0xa], al
mov eax, dword [edi]
mov al, byte [eax + 0x280]
mov byte [esi + 6], al
mov eax, dword [edi]
mov al, byte [eax + 0x294]
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 + 0x2f8], 0
je 0x412153
mov eax, dword [eax + 0x300]
lea ecx, [ebp - 0x28]
mov edx, dword [eax]
call fcn.00412444
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x1c]
call fcn.004028b2
push dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
call fcn.00401e9f
pop ecx
mov eax, dword [edi]
cmp byte [eax + 0x30c], 0
je 0x41216f
cmp byte [eax + 0x30d], 0
mov byte [esi + 0xf], 1
sete al
mov byte [esi + 0xe], al
mov eax, dword [edi]
cmp byte [eax + 0x320], 0
je 0x412189
cmp byte [eax + 0x321], 0
sete al
mov byte [0x4c86f8], al
mov eax, dword [edi]
mov al, byte [eax + 0x2e4]
mov byte [esi + 0xc], al
mov eax, dword [edi]
mov al, byte [eax + 0x64]
mov byte [esi + 0xd], al
mov eax, dword [edi]
cmp byte [eax + 0x50], 0
je 0x4121a8
mov byte [esi + 9], 1
mov eax, dword [edi]
cmp byte [eax + 0x50], 0
jne 0x4121bc
cmp byte [esi + 7], 0
jne 0x4121bc
cmp byte [esi + 4], 0
jne 0x4121c3
and dword [esi + 0x230], 0
cmp byte [esi + 7], 0
je 0x4121d0
and dword [esi + 0x228], 0
mov eax, dword [edi]
add eax, 0x8c
cmp byte [eax], 0
je 0x4121e5
mov eax, dword [eax + 4]
mov dword [esi + 0x228], eax
mov eax, dword [edi]
add eax, 0xa0
cmp byte [eax], 0
je 0x4121fa
mov eax, dword [eax + 4]
mov dword [esi + 0x22c], eax
mov eax, dword [edi]
add eax, 0xb4
cmp byte [eax], 0
je 0x41220f
mov eax, dword [eax + 4]
mov dword [esi + 0x230], eax
mov eax, dword [edi]
cmp byte [eax + 0x78], 0
je 0x412265
mov eax, dword [eax + 0x80]
mov ebx, dword [eax]
cmp dword [ebx + 4], 0
jne 0x412231
mov dword [esi + 0x234], 1
jmp 0x412265
mov ecx, dword [ebx]
lea edx, [ebp + 8]
call fcn.00412471
test al, al
jne 0x41225c
push dword [ebx]
lea ecx, [ebp - 0x28]
push str.Unsupported_switch_postfix__bb
call fcn.00422421
lea eax, [ebp - 0x28]
push 0x4bba70
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
mov dword [esi + 0x234], eax
mov eax, dword [edi]
cmp byte [eax + 0x370], 0
je 0x412286
cmp byte [eax + 0x371], 0
sete al
mov byte [0x4c86e8], al
mov byte [esi + 2], al
mov byte [esi + 1], 1
call fcn.00412459
mov eax, dword [edi]
cmp byte [eax + 0x2a8], 0
je 0x4122d3
and dword [ebp + 8], 0
mov eax, dword [eax + 0x2b0]
mov esi, dword [eax]
cmp dword [esi + 4], 0
jne 0x41236d
mov dword [ebp + 8], 1
call fcn.0040979a
cmp dword [ebp + 8], eax
jbe 0x4122d3
call fcn.004894a0
mov dl, 1
mov ecx, str.SeLockMemoryPrivilege
call fcn.00409714
mov byte [0x4c8844], al
mov edi, dword [edi]
cmp byte [edi + 0x208], 0
je 0x412416
mov eax, dword [edi + 0x210]
mov esi, dword [eax]
cmp dword [esi + 4], 0
je 0x412416
lea ecx, [ebp - 0x1c]
call fcn.004027d4
push dword [esi]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.00402903
mov ebx, dword [ebp - 0x10]
push str.Set_process_affinity_mask:
mov ecx, ebx
call fcn.004034c1
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + 8]
call fcn.00403e81
mov edi, eax
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x41233b
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x18], 0
and byte [eax], 0
cmp dword [ebp - 0x18], 0
je 0x412427
cmp edx, 1
jb 0x4123b4
ja 0x412350
test edi, edi
jb 0x4123b4
push dword [esi]
lea ecx, [ebp - 0x28]
push str.unsupported_value__stm
call fcn.00422421
lea eax, [ebp - 0x28]
push 0x4bba70
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi]
push 0x4b201c
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x4122b3
mov ecx, dword [esi]
lea edx, [ebp + 8]
call fcn.00412471
test al, al
jne 0x4122b3
push dword [esi]
lea ecx, [ebp - 0x28]
push str.Unsupported_switch_postfix_for__slp
call fcn.00422421
lea eax, [ebp - 0x28]
push 0x4bba70
push eax
call sub.MSVCRT.dll__CxxThrowException
push edx
push edi
mov ecx, ebx
call fcn.004124ac
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
jne 0x412406
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str._:_ERROR_:
mov ecx, ebx
mov esi, eax
call fcn.004034c1
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00405c52
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00403485
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00401e9f
pop ecx
mov ecx, ebx
call fcn.00403406
push dword [ebp - 0x1c]
call fcn.00401e9f
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
push dword [esi]
lea ecx, [ebp - 0x34]
push str.Unsupported_switch_postfix__stm
call fcn.00422421
lea eax, [ebp - 0x34]
push 0x4bba70
push eax
call sub.MSVCRT.dll__CxxThrowException