Function at 0x100f8cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 0x21c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x218], eax
cmp eax, ebx
jne 0x100f936
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
jmp 0x100fef7
mov esi, 0x100
push esi
push ebx
push ebx
push dword [eax]
lea edi, [esi + 5]
push edi
push 0x10123c0
call fcn.0100ef29
push esi
push ebx
push ebx
push 0x1007d54
xor eax, eax
push 0x10
push 0x10123a0
mov word [0x1012740], ax
mov word [0x1012b80], ax
call fcn.0100ef29
xor eax, eax
cmp dword [ebp - 0x21c], 1
mov word [0x1012620], ax
mov word [0x1012960], ax
mov word [0x1012fc0], ax
mov dword [0x1012024], ebx
je 0x100feeb
mov eax, dword [ebp - 0x218]
push dword [eax + 4]
call fcn.0100ed50
test eax, eax
je 0x100fe68
mov eax, dword [ebp - 0x218]
push esi
push ebx
push ebx
push dword [eax + 4]
push 0x101
push 0x1012da0
call fcn.0100ef29
push edi
lea eax, [ebp - 0x210]
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [ebp - 0x21c], 3
jne 0x100fa3f
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 8]
push 0x2f
pop ecx
cmp cx, word [eax]
jne 0x100fa96
lea edx, [eax + 2]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x214], ecx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100fa0c
sub eax, dword [ebp - 0x214]
sar eax, 1
je 0x100fa96
lea eax, [ebp - 0x210]
push eax
push edx
call fcn.0100f322
test eax, eax
je 0x100fa38
push 2
jmp 0x100feea
cmp dword [ebp - 0x21c], 3
jbe 0x100fa89
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 8]
push 0x2f
pop ecx
cmp cx, word [eax]
jne 0x100fa89
lea edx, [eax + 2]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x214], ecx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100fa60
sub eax, dword [ebp - 0x214]
sar eax, 1
je 0x100fa89
lea eax, [ebp - 0x210]
push eax
push edx
call fcn.0100f322
test eax, eax
jne 0x100fee8
cmp dword [ebp - 0x21c], 2
jbe 0x100fb49
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 8]
cmp word [ecx], 0x2f
je 0x100fb49
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x214], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x100fab4
sub eax, dword [ebp - 0x214]
sar eax, 1
cmp eax, esi
ja 0x100fee8
push esi
push ebx
push ebx
push ecx
push 0x101
push 0x1012740
call fcn.0100ef29
cmp dword [ebp - 0x21c], 3
jbe 0x100fb3d
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 0xc]
cmp word [ecx], 0x2f
je 0x100fb3d
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x214], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x100fb04
sub eax, dword [ebp - 0x214]
sar eax, 1
cmp eax, esi
ja 0x100fee8
push esi
push ebx
push ebx
push ecx
push 0x101
push 0x1012b80
call fcn.0100ef29
mov dword [ebp - 0x220], 4
jmp 0x100fb53
mov dword [ebp - 0x220], 3
jmp 0x100fb53
mov dword [ebp - 0x220], 2
mov eax, dword [ebp - 0x21c]
cmp dword [ebp - 0x220], eax
jae 0x100fe58
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x220]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
cmp word [eax], 0x2f
jne 0x100fee8
push edi
lea eax, [ebp - 0x210]
push eax
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi]
inc eax
inc eax
push eax
call fcn.0100f322
test eax, eax
je 0x100fbf1
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, ebx
je 0x100fee8
push 0xf
add eax, 2
push eax
push 0x10
mov esi, 0x10123a0
push esi
call fcn.0100f04a
test eax, eax
jl 0x100fe60
xor eax, eax
push esi
mov word [0x10123be], ax
call dword [sym.imp.msvcrt.dll__wcsupr]
pop ecx
jmp 0x100fe40
push edi
lea eax, [ebp - 0x210]
push eax
push 3
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi]
inc eax
inc eax
push eax
call fcn.0100f322
test eax, eax
je 0x100fc85
cmp word [0x1012620], bx
jne 0x100fee8
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, ebx
je 0x100fee8
lea edx, [eax + 2]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100fc47
sub eax, esi
sar eax, 1
je 0x100fee8
push 0x80
push edx
push 0x81
push 0x1012620
call fcn.0100f04a
test eax, eax
jl 0x100fe60
xor eax, eax
mov word [0x1012720], ax
jmp 0x100fe40
push edi
lea eax, [ebp - 0x210]
push eax
push 0x1f
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi]
inc eax
inc eax
push eax
call fcn.0100f322
test eax, eax
je 0x100fd8a
cmp word [0x1012960], bx
jne 0x100fee8
push edi
push 0x1012960
push 0x1007d24
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, ebx
je 0x100fee8
lea edx, [eax + 2]
mov eax, edx
mov dword [ebp - 0x214], edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100fcf6
sub eax, esi
sar eax, 1
je 0x100fee8
mov eax, edx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100fd0f
sub eax, edx
sar eax, 1
mov esi, 0x1012960
mov ecx, esi
mov dword [ebp - 0x224], eax
lea eax, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, bx
jne 0x100fd2d
push 0x100
push ebx
sub ecx, eax
mov eax, dword [ebp - 0x224]
push ebx
push dword [ebp - 0x214]
sar ecx, 1
add ecx, eax
push edi
push esi
cmp ecx, 0x103
ja 0x100fd80
call fcn.0100f099
push esi
call fcn.0100ee7a
test eax, eax
jne 0x100fe40
push 0x100
push ebx
push ebx
push dword [ebp - 0x214]
push edi
push 0x1012960
call fcn.0100ef29
jmp 0x100fe40
push edi
lea eax, [ebp - 0x210]
push eax
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi]
inc eax
inc eax
push eax
call fcn.0100f322
test eax, eax
je 0x100fe05
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, ebx
je 0x100fee8
lea edx, [eax + 2]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100fdd3
sub eax, esi
sar eax, 1
je 0x100fee8
push edx
push 0x81
push 0x1012fc0
call fcn.0100eeef
test eax, eax
jl 0x100fe60
xor eax, eax
mov word [0x10130c0], ax
jmp 0x100fe40
push edi
lea eax, [ebp - 0x210]
push eax
push 0x21
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi]
inc eax
inc eax
push eax
call fcn.0100f322
test eax, eax
je 0x100fee8
mov dword [0x1012024], 1
inc dword [ebp - 0x220]
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x21c]
jb 0x100fb65
xor ebx, ebx
inc ebx
jmp 0x100feeb
or eax, 0xffffffff
jmp 0x100fef9
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 4]
inc eax
inc eax
push eax
call fcn.0100f322
test eax, eax
jne 0x100fee8
push edi
lea eax, [ebp - 0x210]
push eax
push 5
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 4]
inc eax
inc eax
push eax
call fcn.0100f322
test eax, eax
je 0x100fee8
xor eax, eax
xor ebx, ebx
cmp dword [ebp - 0x21c], 2
mov word [0x1012da0], ax
setne bl
inc ebx
jmp 0x100fe5a
push 3
pop ebx
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101098f
leave
ret