Function at 0x101599f
Capabilities:
Accept command line arguments

Disassembly:
push 0x250
mov eax, 0x101a190
call fcn.01012582
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x22c], edi
call fcn.0101292a
xor ebx, ebx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
call fcn.0101292a
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0101292a
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x1015eab
cmp edi, ebx
je 0x1015eab
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x248]
push eax
push esi
call fcn.010140ae
cmp eax, ebx
mov dword [ebp - 0x21c], eax
jge 0x1015a64
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push dword [ebp - 0x21c]
push 0x1002c38
push 0xda
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
jmp 0x1015e6a
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x248]
call fcn.01012949
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [ebp - 0x228], ecx
cmp ecx, ebx
jne 0x1015acf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1015a9d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push dword [ebp - 0x21c]
push 0x1002c38
push 0xdb
jmp 0x1015a54
mov esi, dword [ebp - 0x224]
cmp esi, 2
jge 0x1015b18
mov dword [ebp - 0x21c], 0x80004005
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push 0x1002c38
push 0xdc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
jmp 0x1015e6a
xor eax, eax
inc eax
cmp eax, esi
jge 0x1015b38
mov edx, dword [ecx + eax*4]
movzx edx, word [edx]
cmp dx, 0x2f
je 0x1015b31
cmp dx, 0x2d
jne 0x1015b36
inc eax
cmp eax, esi
jl 0x1015b1f
cmp eax, esi
jne 0x1015b6a
mov dword [ebp - 0x21c], 0x80004005
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push 0x1002c38
push 0xdd
jmp 0x1015b08
mov edi, dword [ecx + eax*4]
push 0x2c
push edi
mov dword [ebp - 0x230], edi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
cmp eax, ebx
jne 0x1015bb4
mov dword [ebp - 0x21c], 0x80004005
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push 0x1002c38
push 0xde
jmp 0x1015b08
xor ecx, ecx
push 0x2e
push edi
mov word [eax], cx
call sub.msvcrt.dll_wcsrchr
push 0x5c
push edi
mov esi, eax
call sub.msvcrt.dll_wcschr
add esp, 0x10
test eax, eax
jne 0x1015d7c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x1015c25
mov eax, dword [0x101d014]
mov edi, 0x101d014
cmp eax, edi
je 0x1015c1d
test byte [eax + 0x1c], 1
je 0x1015c1d
push dword [ebp - 0x21c]
push 0x1002c38
push 0xdf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dc70
mov dword [ebp - 0x220], ebx
jmp 0x1015c2a
mov edi, 0x101d014
lea ecx, [ebp - 0x23c]
call fcn.010133e7
cmp eax, ebx
mov dword [ebp - 0x21c], eax
jge 0x1015c6b
mov eax, dword [0x101d014]
cmp eax, edi
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push dword [ebp - 0x21c]
push 0x1002c38
push 0xe0
jmp 0x1015a54
push ebx
push dword [ebp - 0x220]
lea ecx, [ebp - 0x254]
call fcn.01013455
cmp eax, ebx
mov dword [ebp - 0x21c], eax
jge 0x1015cb3
mov eax, dword [0x101d014]
cmp eax, edi
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push dword [ebp - 0x21c]
push 0x1002c38
push 0xe1
jmp 0x1015a54
lea ecx, [ebp - 0x23c]
call fcn.01012949
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x25c], eax
call fcn.01012949
neg esi
sbb esi, esi
not esi
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x21c], 0x80070002
and esi, 0x1002e84
mov edi, 0x104
push 0
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push dword [ebp - 0x230]
push dword [ebp + ebx*4 - 0x25c]
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, edi
ja 0x1015d49
test eax, eax
jne 0x1015dc8
inc ebx
cmp ebx, 2
jb 0x1015cf0
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push 0x1002c38
push 0xe3
jmp 0x1015b08
mov dword [ebp - 0x21c], 0x8007007a
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push 0x1002c38
push 0xe2
jmp 0x1015b08
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.01006418
cmp eax, ebx
mov dword [ebp - 0x21c], eax
jge 0x1015dca
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push dword [ebp - 0x21c]
push 0x1002c38
push 0xe4
jmp 0x1015a54
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x2e
push eax
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
cmp eax, ebx
jne 0x1015e21
push 0x1002e84
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.01012be9
cmp eax, ebx
mov dword [ebp - 0x21c], eax
jge 0x1015e21
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push dword [ebp - 0x21c]
push 0x1002c38
push 0xe5
jmp 0x1015a54
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
call fcn.01012cbe
cmp eax, ebx
mov dword [ebp - 0x21c], eax
jge 0x1015e64
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015e6a
test byte [eax + 0x1c], 1
je 0x1015e6a
push dword [ebp - 0x21c]
push 0x1002c38
push 0xe6
jmp 0x1015a54
mov dword [ebp - 0x21c], ebx
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0101293c
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.0101293c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0101293c
mov eax, dword [ebp - 0x21c]
jmp 0x1015f04
mov eax, dword [0x101d014]
cmp eax, 0x101d014
je 0x1015ed2
test byte [eax + 0x1c], 1
je 0x1015ed2
push 0x1002c38
push 0xd9
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010043b6
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0101293c
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.0101293c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0101293c
mov eax, 0x80070057
call fcn.01012614
ret 8