Function at 0x410b24
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, edx
xor edx, edx
push ebx
inc edx
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
push esi
mov esi, edx
cmp ebx, edx
jle 0x410d0c
push edi
mov ecx, dword [eax + esi*4]
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x410b59
sub edi, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
cmp edi, 6
jne 0x410b8c
push 5
push 0x405900
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x410bb9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], 1
cmp edi, 0xb
jne 0x410bb9
push 0xa
push 0x405908
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x410bb9
lea eax, [esi + 1]
cmp eax, ebx
jge 0x410bb9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + esi*4 + 4]
mov esi, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
inc esi
cmp esi, ebx
jl 0x410b51
cmp dword [ebp - 0xc], 0
je 0x410d0b
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x70], esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
push dword [edi]
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x410c3b
push edi
mov dword [ebp - 4], 0x95e
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x410d0b
mov ecx, dword [edi]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x410c40
sub ecx, esi
sar ecx, 1
push edi
lea ebx, [edx + ecx*2]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp word [ebx], 0x22
jne 0x410c6a
push 2
pop eax
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ecx, 0x208
call fcn.0040de00
mov esi, eax
mov edi, 0x104
test esi, esi
je 0x410c96
push edi
push esi
push 0x405914
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, eax
cmp edx, edi
jae 0x410c96
test edx, edx
jne 0x410cbc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x410cb0
push edi
push esi
push 0xffffffffffffffff
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, eax
jmp 0x410cbc
and dword [ebp - 8], 0
mov esi, 0x4059c0
push 0xa
pop edx
mov ecx, ebx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x410cc3
sub ecx, edi
sar ecx, 1
inc ecx
add edx, ecx
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov eax, edx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0040de00
mov edi, eax
test edi, edi
jne 0x410d1d
cmp dword [ebp - 8], ebx
je 0x410d04
test esi, esi
je 0x410d04
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 4], 0x95e
pop edi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x410d2b
cmp eax, 0x7fffffff
jbe 0x410d30
mov ebx, 0x80070057
test ebx, ebx
js 0x410d44
push ecx
push esi
push ecx
mov edx, eax
mov ecx, edi
call fcn.00410993
mov ebx, eax
jmp 0x410d4d
test eax, eax
je 0x410d4d
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 8], 0
je 0x410d5f
test esi, esi
je 0x410d5f
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test ebx, ebx
je 0x410d68
mov dword [ebp - 4], ebx
jmp 0x410d7c
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, edi
call fcn.00410925
test eax, eax
je 0x410d86
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x410d0b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
xor eax, eax
push eax
push eax
push eax
push 1
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
je 0x410d04
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410d0b