Function at 0x41f0f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57eb1d
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5e21c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
test eax, eax
jne 0x41f145
push str.There_is_no_script_or_it_was_launched_without_arguments.
push 0x5ea950
call fcn.0041ea70
push eax
call fcn.0041c8a0
add esp, 0xc
jmp 0x41f511
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401ee0
push dword [esi + 8]
mov dword [ebp - 4], 0
call fcn.00566c54
add esp, 4
mov dword [0x5e6ad0], eax
lea ecx, [ebp - 0x228]
push dword [esi + 0xc]
call fcn.00401ee0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 1
push 0x59032c
push eax
call fcn.00409e80
add esp, 8
mov edx, 0x58de8c
test al, al
mov ecx, 0x5902e4
cmovne ecx, edx
push 1
push ecx
lea ecx, [ebp - 0x228]
call fcn.004094b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00558530
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or edi, 0xffffffff
test eax, eax
je 0x41f294
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004098d0
push 0x5c
push dword [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00558aaa
add esp, 8
test eax, eax
je 0x41f25a
sub eax, dword [ebp - 0x21c]
sar eax, 1
cmp eax, edi
je 0x41f25a
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004079b0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.00404970
mov edx, dword [ebp - 0x224]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f25a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.00405440
mov edx, dword [ebp - 0x21c]
add esp, 4
add edx, 0xfffffff0
lea esi, [eax + 0x10]
mov eax, edi
mov dword [ebp - 0x220], esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f2b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f2b9
mov byte [ebp - 4], 5
call fcn.00420515
mov ecx, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x41f52f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x5e6ae8
call fcn.00404970
lea edx, [esi - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f2e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov eax, dword [ebp - 0x228]
mov ecx, 0x58de8c
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f326
test dx, dx
je 0x41f322
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f326
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f300
xor eax, eax
jmp 0x41f32b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 1
test eax, eax
jne 0x41f37b
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push str.selection
call fcn.004098d0
push ecx
mov esi, esp
mov byte [ebp - 4], 8
mov dword [ebp - 0x220], esi
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
push eax
call fcn.00405440
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.0041ed30
add esp, 8
jmp 0x41f4d9
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
push eax
call fcn.00405440
mov ebx, eax
add esp, 4
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x220], ecx
push 0
mov byte [ebp - 4], 9
call fcn.0041e9c0
mov edx, eax
test edx, edx
jne 0x41f3ad
xor ecx, ecx
jmp 0x41f3c1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f3b2
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x5e6ae8
call fcn.004094b0
lea eax, [ebp - 0x220]
mov dword [0x5e6ac0], 1
push 0x5902e8
push eax
mov dword [0x5e6abc], 0
call fcn.00409e80
add esp, 8
test al, al
je 0x41f403
mov dword [0x5e6ac4], 1
call fcn.0041ef30
test al, al
je 0x41f4c5
push 0
push 0
push 0x41daa0
call fcn.00566dd5
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5e6b50], 0
je 0x41f4a6
cmp dword [0x5e6ac8], 0
je 0x41f4af
push 0x96
lea eax, [ebp - 0x224]
mov ecx, 0x5e6ae4
push eax
call fcn.00408050
push dword [eax]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xa
call fcn.00403b00
mov edx, dword [ebp - 0x224]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f489
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f4a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x5e6ac8], 0
jne 0x41f4bc
cmp dword [0x5e6acc], 0
jne 0x41f4bc
xor eax, eax
jmp 0x41f4bf
or eax, 0xffffffff
push eax
call fcn.0041e9f0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41f4d9
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f4f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41f511
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005533da
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402110
int3