Function at 0x417524
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
cmp esi, edi
je 0x4175e2
cmp word [esi], di
je 0x4175e2
push edi
push 0x44209e
lea eax, [ebp - 0x18]
push eax
call fcn.0042fcf8
mov dword [ebp - 4], eax
cmp eax, edi
jge 0x417577
push 0x44207a
push eax
call fcn.004315b6
pop ecx
pop ecx
jmp 0x417d51
push edi
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0042fcf8
mov dword [ebp - 4], eax
cmp eax, edi
jge 0x417590
push 0x44205c
jmp 0x41756a
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x4175e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4175b8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jl 0x4175c6
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x333
push 0x441b2c
call fcn.004315ca
push 0x43b9e8
push dword [ebp - 4]
jmp 0x41756b
push ebx
push 2
mov dword [ebp - 0x10], edi
pop ebx
cmp dword [ebp - 0x14], edi
jle 0x417cf5
mov esi, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringW]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 3
mov eax, dword [esi]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x41761c
cmp ecx, 0x2f
jne 0x417ccf
push 0xffffffffffffffff
push 0x442058
push 0xffffffffffffffff
add eax, 2
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c91
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x442050
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c91
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x44204c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c89
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x442048
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c89
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x44203e
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c89
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x44203a
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c7e
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x44202e
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c7e
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x44202a
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c7e
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x44201c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c7e
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x44200c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x41774f
mov eax, dword [ebp + 8]
mov dword [eax + 4], 3
cmp dword [eax + 8], 0
jne 0x417cdd
mov dword [eax + 8], 3
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441ff8
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417776
mov eax, dword [ebp + 8]
mov dword [eax + 8], 1
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441fde
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x41779d
mov eax, dword [ebp + 8]
mov dword [eax + 8], 4
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441fc2
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4177c0
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441fb4
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417837
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x4177e2
mov dword [eax], ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jge 0x417cdd
mov eax, dword [esi + 4]
movzx eax, word [eax]
cmp eax, 0x2d
je 0x417cdd
cmp eax, 0x2f
je 0x417cdd
mov eax, dword [ebp + 8]
inc dword [ebp - 0x10]
inc dword [ebp - 8]
inc dword [ebp - 0xc]
push 3
add esi, 4
push dword [esi]
add eax, 0x20
push eax
call fcn.004303cc
mov dword [ebp - 4], eax
test eax, eax
jns 0x417cdd
push 0x441f8a
jmp 0x417c08
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441f76
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417866
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x417cdd
mov dword [eax], 3
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441f68
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417895
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x417cdd
mov dword [eax], 6
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441f5a
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4178c4
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x417cdd
mov dword [eax], 5
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441f4a
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c6e
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441f3c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417c6e
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441f28
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x41791f
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441f0e
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x41794a
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x417cdd
mov dword [eax], ebx
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402f5c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x41799c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jge 0x417d68
inc dword [ebp - 0x10]
inc dword [ebp - 8]
inc dword [ebp - 0xc]
push 0
add esi, 4
push dword [esi]
push dword [ebp + 0x28]
call fcn.0042fb3e
mov dword [ebp - 4], eax
test eax, eax
js 0x417d84
mov eax, dword [ebp + 0x24]
or dword [eax], 1
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402720
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4179f9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x417d8e
mov eax, dword [ebp + 0x1c]
inc dword [ebp - 0x10]
inc dword [ebp - 8]
inc dword [ebp - 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0xc]
add esi, 4
call fcn.00416f06
mov dword [ebp - 4], eax
test eax, eax
js 0x417daa
add dword [ebp - 0x10], ebx
add dword [ebp - 8], ebx
add dword [ebp - 0xc], ebx
add esi, 8
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402700
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417a4b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x417db4
mov eax, dword [ebp + 0x1c]
inc dword [ebp - 0x10]
inc dword [ebp - 8]
inc dword [ebp - 0xc]
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
add esi, 4
call fcn.00416f06
mov dword [ebp - 4], eax
test eax, eax
jns 0x4179e8
push 0x441ee6
jmp 0x417c08
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402f7c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417a9d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x417dd0
mov eax, dword [ebp + 0x14]
inc dword [ebp - 0x10]
inc dword [ebp - 8]
inc dword [ebp - 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
add esi, 4
call fcn.00416f06
mov dword [ebp - 4], eax
test eax, eax
jns 0x4179e8
push 0x441ec0
jmp 0x417c08
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x4028bc
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417ad6
mov ecx, dword [ebp + 8]
push 0x441eb8
xor eax, eax
inc eax
push 0x20000003
mov dword [ecx + 0x1c], eax
push eax
call fcn.0040c35a
add esp, 0xc
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402890
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b02
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ebx
push 0x441eb0
push 0x20000003
push 1
jmp 0x417ac9
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402868
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b2b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 3
push 0x441eaa
jmp 0x417af9
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402840
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b54
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 4
push 0x441ea4
jmp 0x417af9
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402f2c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b7a
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
jmp 0x417cdd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x4026ac
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b9a
mov eax, dword [ebp + 0x14]
jmp 0x41785b
push 0x402efc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, 0x402efc
push eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [esi]
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417c17
push 0x402efc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
lea eax, [ecx + eax*2 + 2]
push 0x3d
pop ecx
cmp cx, word [eax]
jne 0x417df3
add eax, 2
xor ecx, ecx
cmp cx, word [eax]
je 0x417df3
push ecx
push eax
push dword [ebp + 0x2c]
call fcn.0042fb3e
mov dword [ebp - 4], eax
test eax, eax
jns 0x417cdd
push 0x441e6c
push dword [ebp - 4]
call fcn.004315b6
pop ecx
pop ecx
jmp 0x417d41
mov eax, dword [esi]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x402ef0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jl 0x417ccc
mov ebx, 0x402ef0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [esi]
push 2
pop ebx
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417ccf
mov eax, dword [esi]
add eax, ebx
push eax
push 0xa0000002
jmp 0x417afe
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x417cdd
mov dword [eax], 4
jmp 0x417cdd
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
jmp 0x417739
mov eax, dword [ebp + 8]
jmp 0x417b6f
mov eax, dword [ebp + 0x24]
and dword [eax], 0xfffffffe
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jge 0x417e23
inc dword [ebp - 0x10]
inc dword [ebp - 8]
inc dword [ebp - 0xc]
push 0
add esi, 4
push dword [esi]
push dword [ebp + 0x28]
call fcn.0042fb3e
mov dword [ebp - 4], eax
test eax, eax
jns 0x417cdd
push 0x441e4e
jmp 0x417c08
push 2
pop ebx
push dword [esi]
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.004300d0
inc dword [ebp - 0x10]
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0xc]
add esi, 4
cmp eax, dword [ebp - 0x14]
jl 0x417609
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
cmp edx, 3
je 0x417e3f
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, ebx
je 0x417d15
cmp eax, 3
jne 0x417e3f
mov dword [ecx], 1
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x417d2a
mov dword [eax], 4
cmp dword [eax + 4], ecx
jne 0x417d36
mov dword [eax + 4], 4
cmp dword [eax + 8], ecx
jne 0x417d41
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
cmp dword [ebp - 0x1c], 0
pop ebx
je 0x417d51
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
pop edi
pop esi
je 0x417d61
push dword [ebp - 0x18]
call fcn.0042ecb2
mov eax, dword [ebp - 4]
leave
ret 0x28
mov esi, 0x80070057
push esi
push 0x3af
push 0x441b2c
call fcn.004315ca
push 0x441e2a
jmp 0x417dea
push 0x441e04
jmp 0x417c08
mov esi, 0x80070057
push esi
push 0x3bd
push 0x441b2c
call fcn.004315ca
push 0x441dc6
jmp 0x417dea
push 0x441da0
jmp 0x417c08
mov esi, 0x80070057
push esi
push 0x3cd
push 0x441b2c
call fcn.004315ca
push 0x441d60
jmp 0x417dea
mov esi, 0x80070057
push esi
push 0x3dd
push 0x441b2c
call fcn.004315ca
push 0x441d22
mov dword [ebp - 4], esi
push esi
jmp 0x417c0b
mov esi, 0x80070057
push esi
push 0x40f
push 0x441b2c
call fcn.004315ca
push 0x402efc
push 0x441cf6
push esi
mov dword [ebp - 4], esi
call fcn.004315b6
add esp, 0xc
jmp 0x417d41
mov esi, 0x80070057
push esi
push 0x343
push 0x441b2c
call fcn.004315ca
push 0x441cd8
jmp 0x417dea
cmp edx, ebx
jne 0x417d1b
mov eax, dword [ebp + 8]
mov dword [eax + 4], 1
jmp 0x417d1e