Function at 0x417560
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 0x41761e
cmp word [esi], di
je 0x41761e
push edi
push 0x441dfc
lea eax, [ebp - 0x18]
push eax
call fcn.0042fbf2
mov dword [ebp - 4], eax
cmp eax, edi
jge 0x4175b3
push 0x441dd8
push eax
call fcn.004314ba
pop ecx
pop ecx
jmp 0x417d8d
push edi
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0042fbf2
mov dword [ebp - 4], eax
cmp eax, edi
jge 0x4175cc
push 0x441dba
jmp 0x4175a6
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 0x41761e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4175f4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jl 0x417602
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x333
push 0x441888
call fcn.004314ce
push 0x43b684
push dword [ebp - 4]
jmp 0x4175a7
push ebx
push 2
mov dword [ebp - 0x10], edi
pop ebx
cmp dword [ebp - 0x14], edi
jle 0x417d31
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 0x417658
cmp ecx, 0x2f
jne 0x417d0b
push 0xffffffffffffffff
push 0x441db6
push 0xffffffffffffffff
add eax, 2
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417ccd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441dae
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417ccd
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441daa
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417cc5
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441da6
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417cc5
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d9c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417cc5
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d98
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417cba
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d8c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417cba
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d88
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417cba
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d7a
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417cba
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d6a
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x41778b
mov eax, dword [ebp + 8]
mov dword [eax + 4], 3
cmp dword [eax + 8], 0
jne 0x417d19
mov dword [eax + 8], 3
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d56
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4177b2
mov eax, dword [ebp + 8]
mov dword [eax + 8], 1
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d3c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4177d9
mov eax, dword [ebp + 8]
mov dword [eax + 8], 4
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d20
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4177fc
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441d12
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417873
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x41781e
mov dword [eax], ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jge 0x417d19
mov eax, dword [esi + 4]
movzx eax, word [eax]
cmp eax, 0x2d
je 0x417d19
cmp eax, 0x2f
je 0x417d19
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.004302c6
mov dword [ebp - 4], eax
test eax, eax
jns 0x417d19
push 0x441ce8
jmp 0x417c44
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441cd4
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4178a2
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x417d19
mov dword [eax], 3
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441cc6
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4178d1
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x417d19
mov dword [eax], 6
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441cb8
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417900
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x417d19
mov dword [eax], 5
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441ca8
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417caa
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441c9a
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
je 0x417caa
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441c86
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x41795b
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441c6c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417986
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x417d19
mov dword [eax], ebx
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402f3c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x4179d8
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jge 0x417da4
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.0042fa38
mov dword [ebp - 4], eax
test eax, eax
js 0x417dc0
mov eax, dword [ebp + 0x24]
or dword [eax], 1
jmp 0x417d19
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 0x417a35
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x417dca
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.00416f44
mov dword [ebp - 4], eax
test eax, eax
js 0x417de6
add dword [ebp - 0x10], ebx
add dword [ebp - 8], ebx
add dword [ebp - 0xc], ebx
add esi, 8
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x4026e0
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417a87
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x417df0
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.00416f44
mov dword [ebp - 4], eax
test eax, eax
jns 0x417a24
push 0x441c44
jmp 0x417c44
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 0x417ad9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x417e0c
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.00416f44
mov dword [ebp - 4], eax
test eax, eax
jns 0x417a24
push 0x441c1e
jmp 0x417c44
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x40289c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b12
mov ecx, dword [ebp + 8]
push 0x441c16
xor eax, eax
inc eax
push 0x20000003
mov dword [ecx + 0x1c], eax
push eax
call fcn.0040c33a
add esp, 0xc
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402870
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b3e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ebx
push 0x441c0e
push 0x20000003
push 1
jmp 0x417b05
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402848
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b67
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 3
push 0x441c08
jmp 0x417b35
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402820
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417b90
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 4
push 0x441c02
jmp 0x417b35
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x402f0c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417bb6
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
jmp 0x417d19
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x40268c
push 0xffffffffffffffff
add eax, ebx
push eax
push 1
push 0x7f
call edi
cmp eax, ebx
jne 0x417bd6
mov eax, dword [ebp + 0x14]
jmp 0x417897
push 0x402edc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, 0x402edc
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 0x417c53
push 0x402edc
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 0x417e2f
add eax, 2
xor ecx, ecx
cmp cx, word [eax]
je 0x417e2f
push ecx
push eax
push dword [ebp + 0x2c]
call fcn.0042fa38
mov dword [ebp - 4], eax
test eax, eax
jns 0x417d19
push 0x441bca
push dword [ebp - 4]
call fcn.004314ba
pop ecx
pop ecx
jmp 0x417d7d
mov eax, dword [esi]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x402ed0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jl 0x417d08
mov ebx, 0x402ed0
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 0x417d0b
mov eax, dword [esi]
add eax, ebx
push eax
push 0xa0000002
jmp 0x417b3a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x417d19
mov dword [eax], 4
jmp 0x417d19
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
jmp 0x417775
mov eax, dword [ebp + 8]
jmp 0x417bab
mov eax, dword [ebp + 0x24]
and dword [eax], 0xfffffffe
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jge 0x417e5f
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.0042fa38
mov dword [ebp - 4], eax
test eax, eax
jns 0x417d19
push 0x441bac
jmp 0x417c44
push 2
pop ebx
push dword [esi]
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.0042ffca
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 0x417645
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
cmp edx, 3
je 0x417e7b
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, ebx
je 0x417d51
cmp eax, 3
jne 0x417e7b
mov dword [ecx], 1
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x417d66
mov dword [eax], 4
cmp dword [eax + 4], ecx
jne 0x417d72
mov dword [eax + 4], 4
cmp dword [eax + 8], ecx
jne 0x417d7d
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
cmp dword [ebp - 0x1c], 0
pop ebx
je 0x417d8d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
pop edi
pop esi
je 0x417d9d
push dword [ebp - 0x18]
call fcn.0042ead8
mov eax, dword [ebp - 4]
leave
ret 0x28
mov esi, 0x80070057
push esi
push 0x3af
push 0x441888
call fcn.004314ce
push 0x441b88
jmp 0x417e26
push 0x441b62
jmp 0x417c44
mov esi, 0x80070057
push esi
push 0x3bd
push 0x441888
call fcn.004314ce
push 0x441b24
jmp 0x417e26
push 0x441afe
jmp 0x417c44
mov esi, 0x80070057
push esi
push 0x3cd
push 0x441888
call fcn.004314ce
push 0x441abe
jmp 0x417e26
mov esi, 0x80070057
push esi
push 0x3dd
push 0x441888
call fcn.004314ce
push 0x441a80
mov dword [ebp - 4], esi
push esi
jmp 0x417c47
mov esi, 0x80070057
push esi
push 0x40f
push 0x441888
call fcn.004314ce
push 0x402edc
push 0x441a54
push esi
mov dword [ebp - 4], esi
call fcn.004314ba
add esp, 0xc
jmp 0x417d7d
mov esi, 0x80070057
push esi
push 0x343
push 0x441888
call fcn.004314ce
push 0x441a36
jmp 0x417e26
cmp edx, ebx
jne 0x417d57
mov eax, dword [ebp + 8]
mov dword [eax + 4], 1
jmp 0x417d5a