Function at 0x405da0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479f50
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x493024]
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
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 0x94]
mov esi, eax
cmp ecx, 4
jne 0x406048
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e26
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.00404560
mov edx, dword [esi + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e70
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00404560
mov edx, dword [esi + 0xc]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405eb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00404560
mov byte [ebp - 4], 2
call fcn.004313f6
cmp dword [ebp - 0x74], 8
lea esi, [ebp - 0x88]
mov edi, eax
lea eax, [ebp - 0x8c]
cmovae esi, dword [ebp - 0x88]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.004338d5
add esp, 0xc
mov ebx, eax
cmp esi, dword [ebp - 0x8c]
je 0x4062d1
cmp dword [edi], 0x22
je 0x4062db
call fcn.004313f6
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
mov edi, eax
lea eax, [ebp - 0x8c]
cmovae esi, dword [ebp - 0x40]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.004338d5
add esp, 0xc
cmp esi, dword [ebp - 0x8c]
je 0x4062e5
cmp dword [edi], 0x22
je 0x4062ef
lea ecx, [ebp - 0x70]
push ecx
push eax
push ebx
call fcn.00405bd0
mov ecx, dword [ebp - 0x5c]
xor ebx, ebx
add esp, 0xc
test al, al
sete bl
cmp ecx, 8
jb 0x405fa2
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405f98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062f9
push ecx
push edx
call fcn.00422b71
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 8
jb 0x405ff0
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405fe6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062f9
push ecx
push edx
call fcn.00422b71
add esp, 8
mov ecx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x406041
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406037
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062f9
push ecx
push edx
call fcn.00422b71
add esp, 8
mov eax, ebx
jmp 0x4062b5
cmp ecx, 3
jne 0x4062b2
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406074
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00404560
mov edx, dword [esi + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4060b7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404560
mov byte [ebp - 4], 4
call fcn.004313f6
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
mov edi, eax
lea eax, [ebp - 0x90]
cmovae esi, dword [ebp - 0x58]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.004338d5
add esp, 0xc
cmp esi, dword [ebp - 0x90]
je 0x4062fe
cmp dword [edi], 0x22
je 0x406308
test eax, eax
je 0x40622a
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [ebp - 0x8c]
xor bl, bl
test esi, esi
je 0x406195
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
call fcn.004058e0
add esp, 0xc
movzx ebx, bl
test al, al
mov ecx, 1
cmovne ebx, ecx
mov byte [ebp - 0x90], bl
push dword [ebp - 0x90]
push str.__result:
push esi
push str.safeInject__pid:
push 0x494aa8
call fcn.00401490
add esp, 8
mov ecx, eax
call fcn.00402b40
push eax
call fcn.00401490
add esp, 8
mov ecx, eax
call fcn.00402cf0
mov ecx, dword [ebp - 0x14]
movzx esi, bl
xor esi, 1
cmp ecx, 8
jb 0x4061d5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4061cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406312
push ecx
push edx
call fcn.00422b71
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x406223
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406219
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406312
push ecx
push edx
call fcn.00422b71
add esp, 8
mov eax, esi
jmp 0x4062b5
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x406264
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40625a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406317
push ecx
push edx
call fcn.00422b71
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4062ae
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4062a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406317
push ecx
push edx
call fcn.00422b71
add esp, 8
xor eax, eax
jmp 0x4062b5
or eax, 0xffffffff
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.00422b7f
mov esp, ebp
pop ebp
ret
push str.invalid_stoul_argument
call fcn.00406a87
push str.stoul_argument_out_of_range
call fcn.00406ac7
push str.invalid_stoul_argument
call fcn.00406a87
push str.stoul_argument_out_of_range
call fcn.00406ac7
call fcn.0043128f
push str.invalid_stoul_argument
call fcn.00406a87
push str.stoul_argument_out_of_range
call fcn.00406ac7
call fcn.0043128f
call fcn.0043128f
int3