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 0x441d9c
lea eax, [ebp - 0x18]
push eax
call fcn.0042fb8a
mov dword [ebp - 4], eax
cmp eax, edi
jge 0x4175b3
push 0x441d78
push eax
call fcn.00431454
pop ecx
pop ecx
jmp 0x417d8d
push edi
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0042fb8a
mov dword [ebp - 4], eax
cmp eax, edi
jge 0x4175cc
push 0x441d5a
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 0x441828
call fcn.00431468
push 0x43b624
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 0x441d56
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 0x441d4e
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 0x441d4a
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 0x441d46
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 0x441d3c
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 0x441d38
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 0x441d2c
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 0x441d28
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 0x441d1a
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 0x441d0a
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 0x441cf6
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 0x441cdc
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 0x441cc0
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 0x441cb2
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.0043025e
mov dword [ebp - 4], eax
test eax, eax
jns 0x417d19
push 0x441c88
jmp 0x417c44
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x441c74
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 0x441c66
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 0x441c58
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 0x441c48
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 0x441c3a
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 0x441c26
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 0x441c0c
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.0042f9d0
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 0x441be4
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 0x441bbe
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 0x441bb6
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 0x441bae
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 0x441ba8
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 0x441ba2
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.0042f9d0
mov dword [ebp - 4], eax
test eax, eax
jns 0x417d19
push 0x441b6a
push dword [ebp - 4]
call fcn.00431454
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.0042f9d0
mov dword [ebp - 4], eax
test eax, eax
jns 0x417d19
push 0x441b4c
jmp 0x417c44
push 2
pop ebx
push dword [esi]
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.0042ff62
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.0042ea70
mov eax, dword [ebp - 4]
leave
ret 0x28
mov esi, 0x80070057
push esi
push 0x3af
push 0x441828
call fcn.00431468
push 0x441b28
jmp 0x417e26
push 0x441b02
jmp 0x417c44
mov esi, 0x80070057
push esi
push 0x3bd
push 0x441828
call fcn.00431468
push 0x441ac4
jmp 0x417e26
push 0x441a9e
jmp 0x417c44
mov esi, 0x80070057
push esi
push 0x3cd
push 0x441828
call fcn.00431468
push 0x441a5e
jmp 0x417e26
mov esi, 0x80070057
push esi
push 0x3dd
push 0x441828
call fcn.00431468
push 0x441a20
mov dword [ebp - 4], esi
push esi
jmp 0x417c47
mov esi, 0x80070057
push esi
push 0x40f
push 0x441828
call fcn.00431468
push 0x402edc
push 0x4419f4
push esi
mov dword [ebp - 4], esi
call fcn.00431454
add esp, 0xc
jmp 0x417d7d
mov esi, 0x80070057
push esi
push 0x343
push 0x441828
call fcn.00431468
push 0x4419d6
jmp 0x417e26
cmp edx, ebx
jne 0x417d57
mov eax, dword [ebp + 8]
mov dword [eax + 4], 1
jmp 0x417d5a