Function at 0x402540
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x435014]
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 - 0x90]
mov dword [ebp - 0x90], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov eax, dword [ebp - 0x90]
cmp eax, 4
jne 0x402741
push dword [esi + 4]
lea ecx, [ebp - 0x58]
call fcn.00402d50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [esi + 8]
call fcn.00402d50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push dword [esi + 0xc]
call fcn.00402d50
mov byte [ebp - 4], 2
call fcn.0040eaba
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
mov edi, eax
lea eax, [ebp - 0x8c]
cmovae esi, dword [ebp - 0x58]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.0040e9af
add esp, 0xc
mov ebx, eax
cmp esi, dword [ebp - 0x8c]
je 0x402801
cmp dword [edi], 0x22
je 0x40280b
call fcn.0040eaba
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov edi, eax
lea eax, [ebp - 0x8c]
cmovae esi, dword [ebp - 0x28]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.0040e9af
add esp, 0xc
cmp esi, dword [ebp - 0x8c]
je 0x402815
cmp dword [edi], 0x22
je 0x40281f
lea ecx, [ebp - 0x40]
mov edx, eax
push ecx
mov ecx, ebx
call fcn.004024d0
mov ecx, dword [ebp - 0x2c]
xor ebx, ebx
add esp, 4
test al, al
sete bl
cmp ecx, 8
jb 0x40269e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402694
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402829
push ecx
push edx
call fcn.00408014
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x4026ec
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4026e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402829
push ecx
push edx
call fcn.00408014
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 0x40273a
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402730
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402829
push ecx
push edx
call fcn.00408014
add esp, 8
mov eax, ebx
jmp 0x4027e5
cmp eax, 3
jne 0x4027e2
push dword [esi + 4]
lea ecx, [ebp - 0x88]
call fcn.00402d50
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x70]
push dword [esi + 8]
call fcn.00402d50
push ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.004021a0
add esp, 4
test eax, eax
je 0x4027cb
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea ecx, [ebp - 0x70]
mov edx, eax
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.004024d0
add esp, 4
lea ecx, [ebp - 0x70]
xor ebx, ebx
test al, al
sete bl
call fcn.00402bf0
lea ecx, [ebp - 0x88]
call fcn.00402bf0
mov eax, ebx
jmp 0x4027e5
lea ecx, [ebp - 0x70]
call fcn.00402bf0
lea ecx, [ebp - 0x88]
call fcn.00402bf0
xor eax, eax
jmp 0x4027e5
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.00407fd1
mov esp, ebp
pop ebp
ret
push str.invalid_stoul_argument
call fcn.00405fcb
push str.stoul_argument_out_of_range
call fcn.0040600e
push str.invalid_stoul_argument
call fcn.00405fcb
push str.stoul_argument_out_of_range
call fcn.0040600e
call fcn.0040ee17
int3