Function at 0x40d7a8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x188
mov eax, dword [0x448490]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x80]
call fcn.0040a2e8
push 0xf
pop esi
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x58], ebx
mov byte [ebp + 0x48], bl
call fcn.0040bfa7
mov ecx, eax
call fcn.0040add4
push ebx
push 1
lea ecx, [ebp + 0x48]
call fcn.004011d6
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x58], ebx
mov byte [ebp + 0x48], bl
call fcn.0040c02b
mov ecx, eax
call fcn.0040ae70
push ebx
push 1
lea ecx, [ebp + 0x48]
call fcn.004011d6
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x58], ebx
mov byte [ebp + 0x48], bl
call fcn.0040c0af
mov ecx, eax
call fcn.0040af0c
push ebx
push 1
lea ecx, [ebp + 0x48]
call fcn.004011d6
lea eax, [ebp - 0x80]
push eax
call fcn.00401180
mov ecx, eax
call fcn.0040412c
sub esp, 0xc
lea eax, [ebp - 0x39]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x405601
mov edi, esp
lea esi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, 0x449890
mov dword [0x444b08], 3
movsd dword es:[edi], dword [esi]
call fcn.0040801c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.AttachConsole
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40d8c0
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40d8c0
call fcn.004209a5
add eax, 0x40
push eax
push 0x4366cc
push 0x4366c4
call fcn.00420d98
add esp, 0xc
call fcn.00416e6e
mov bl, al
test bl, bl
je 0x40d8fa
lea eax, [ebp - 0x120]
push str.Running_under_WOW64.
push eax
call fcn.00409ddd
pop ecx
mov ecx, eax
call fcn.00403a8d
lea ecx, [ebp - 0x120]
call fcn.00403cc4
lea ecx, [ebp - 0x118]
call fcn.0040382d
xor esi, esi
lea eax, [ebp - 0x20]
push eax
mov byte [0x449760], bl
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 0x20], esi
jle 0x40dcf7
mov esi, dword [edi]
push esi
call fcn.0041f2da
pop ecx
push eax
push esi
mov ecx, 0x449764
call fcn.0040768d
cmp dword [ebp - 0x20], 1
jle 0x40dcf7
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], eax
jle 0x40dcf7
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x1c]
push dword [edi + eax*4]
lea ecx, [ebp + 0x48]
call fcn.0040824d
cmp dword [ebp + 0x58], 0
je 0x40dcd9
mov eax, dword [ebp + 0x5c]
mov esi, dword [ebp + 0x48]
mov edx, esi
cmp eax, 8
jae 0x40d9d1
lea edx, [ebp + 0x48]
mov ecx, edx
xor ebx, ebx
cmp word [ecx], 0x2f
sete bl
xor ecx, ecx
cmp word [edx], 0x2d
sete cl
or ebx, ecx
je 0x40dccd
mov ecx, esi
cmp eax, 8
jae 0x40d9ad
lea ecx, [ebp + 0x48]
cmp word [ecx], 0x2f
jne 0x40d9c6
cmp eax, 8
mov eax, esi
jae 0x40d9bd
lea eax, [ebp + 0x48]
push 0x2d
pop ecx
mov word [eax], cx
mov esi, dword [ebp + 0x48]
cmp dword [ebp + 0x5c], 8
jb 0x40d9d5
mov dword [ebp - 0x18], esi
jmp 0x40d9db
mov ecx, esi
jmp 0x40d989
lea eax, [ebp + 0x48]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x60]
call fcn.00402832
push eax
lea eax, [ebp - 0x18]
push str._sendto
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x60]
mov bl, al
call fcn.0040284c
test bl, bl
je 0x40da3a
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jge 0x40dd95
mov eax, dword [ebp - 0x1c]
push dword [edi + eax*4 + 4]
lea ecx, [ebp + 0x2c]
call fcn.0040824d
lea eax, [ebp + 0x2c]
push eax
mov ecx, 0x449780
call fcn.0040b2a1
push 0
push 1
lea ecx, [ebp + 0x2c]
call fcn.00404a05
jmp 0x40da97
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x40da46
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], eax
call fcn.00402832
push eax
lea eax, [ebp - 0x18]
push str._pickup
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x64]
mov bl, al
call fcn.0040284c
test bl, bl
je 0x40daa2
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jge 0x40dd95
mov eax, dword [ebp - 0x1c]
mov esi, dword [edi + eax*4 + 4]
push esi
call fcn.0041f2da
pop ecx
push eax
push esi
mov ecx, 0x449790
call fcn.0040768d
inc dword [ebp - 0x1c]
inc dword [ebp - 0x28]
jmp 0x40dcd9
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jb 0x40dab0
mov dword [ebp - 0x14], eax
jmp 0x40dab6
lea ecx, [ebp + 0x48]
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x5c], 8
jae 0x40dabf
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], eax
call fcn.00402832
push eax
lea eax, [ebp - 0x18]
push str._scan_
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x58]
movzx ebx, al
call fcn.00402832
push eax
lea eax, [ebp - 0x14]
push str._noscan
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x48]
movzx esi, al
call fcn.0040284c
lea ecx, [ebp - 0x58]
call fcn.0040284c
or esi, ebx
je 0x40db1c
mov byte [0x4497ad], 1
jmp 0x40dcd9
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jb 0x40db2a
mov dword [ebp - 0x18], eax
jmp 0x40db30
lea ecx, [ebp + 0x48]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x5c], 8
jae 0x40db39
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], eax
call fcn.00402832
push eax
lea eax, [ebp - 0x14]
push str._send_
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x68]
movzx ebx, al
call fcn.00402832
push eax
lea eax, [ebp - 0x18]
push str._nosend
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x44]
movzx esi, al
call fcn.0040284c
lea ecx, [ebp - 0x68]
call fcn.0040284c
or esi, ebx
je 0x40db96
mov byte [0x4497ae], 1
jmp 0x40dcd9
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jb 0x40dba4
mov dword [ebp - 0x18], eax
jmp 0x40dbaa
lea ecx, [ebp + 0x48]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x5c], 8
jae 0x40dbb3
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
call fcn.00402832
push eax
lea eax, [ebp - 0x14]
push str._delete_
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x50]
movzx ebx, al
call fcn.00402832
push eax
lea eax, [ebp - 0x18]
push str._nodelete
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x4c]
movzx esi, al
call fcn.0040284c
lea ecx, [ebp - 0x50]
call fcn.0040284c
or esi, ebx
je 0x40dc10
mov byte [0x4497af], 1
jmp 0x40dcd9
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jb 0x40dc1e
mov dword [ebp - 0x18], eax
jmp 0x40dc24
lea ecx, [ebp + 0x48]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x5c], 8
jae 0x40dc2d
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x14], eax
call fcn.00402832
push eax
lea eax, [ebp - 0x14]
push str._network_
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x54]
movzx ebx, al
call fcn.00402832
push eax
lea eax, [ebp - 0x18]
push str._nonetwork
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x5c]
movzx esi, al
call fcn.0040284c
lea ecx, [ebp - 0x54]
call fcn.0040284c
or esi, ebx
je 0x40dc87
mov byte [0x4497ac], 1
jmp 0x40dcd9
mov eax, dword [ebp + 0x48]
push 8
pop esi
cmp dword [ebp + 0x5c], esi
jae 0x40dc95
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call fcn.00402832
push eax
lea eax, [ebp - 0x14]
push str._silent
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.0040284c
test bl, bl
je 0x40ddc8
mov byte [0x4497b0], 1
jmp 0x40dcd9
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040b2a1
push 0
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a05
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jl 0x40d95f
push 1
lea ecx, [ebp - 0x14]
call fcn.004173fb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041748b
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00417476
xor esi, esi
cmp dword [ebp - 0x40], esi
jg 0x40e002
cmp dword [ebp - 0x20], 1
jg 0x40e002
cmp dword [ebp - 0x40], esi
jne 0x40dfe0
push 0x444af8
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x40dfe0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x120]
push str.Cannot_start_service_control_dispatcher.
push eax
call fcn.00403d9a
pop ecx
mov ecx, eax
call fcn.00403a8d
mov ecx, eax
call fcn.0040e3d4
lea ecx, [ebp - 0x120]
call fcn.00403cc4
lea ecx, [ebp - 0x118]
call fcn.0040382d
call esi
jmp 0x40e030
push 0
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a05
lea ecx, [ebp - 0x38]
call fcn.0040a342
cmp dword [ebp - 0x10], 0
je 0x40ddb8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x80]
call fcn.0040947e
xor eax, eax
inc eax
jmp 0x40e053
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x5c], esi
jae 0x40ddd3
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call fcn.00402832
push eax
lea eax, [ebp - 0x14]
push str._addshare
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.0040284c
test bl, bl
je 0x40deab
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 2]
cmp esi, dword [ebp - 0x20]
jl 0x40de20
xor esi, esi
push 0
inc esi
push esi
lea ecx, [ebp + 0x48]
call fcn.00404a05
jmp 0x40e032
push dword [edi + eax*4 + 4]
lea ecx, [ebp - 0xc]
call fcn.0040824d
push dword [edi + esi*4]
lea ecx, [ebp + 0x10]
call fcn.0040824d
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403dbb
pop ecx
xor esi, esi
pop ecx
lea ecx, [ebp + 0x10]
test al, al
je 0x40de7d
push esi
push 1
call fcn.00404a05
push esi
push 1
lea ecx, [ebp - 0xc]
call fcn.00404a05
push esi
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a05
lea ecx, [ebp - 0x38]
call fcn.0040a342
cmp dword [ebp - 0x10], esi
jmp 0x40e03e
xor edi, edi
push edi
inc esi
push esi
call fcn.00404a05
push edi
push esi
lea ecx, [ebp - 0xc]
call fcn.00404a05
push edi
push esi
lea ecx, [ebp + 0x48]
call fcn.00404a05
lea ecx, [ebp - 0x38]
call fcn.0040a342
cmp dword [ebp - 0x10], edi
jmp 0x40e03e
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x5c], esi
jae 0x40deb6
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call fcn.00402832
push eax
lea eax, [ebp - 0x14]
push str._delshare
push eax
call fcn.00408049
add esp, 0xc
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.0040284c
test bl, bl
je 0x40df87
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 1]
cmp ecx, dword [ebp - 0x20]
jl 0x40df1b
push 0
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a05
lea ecx, [ebp - 0x38]
call fcn.0040a342
cmp dword [ebp - 0x10], 0
je 0x40df13
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
inc esi
jmp 0x40e049
push dword [edi + eax*4 + 4]
lea ecx, [ebp + 0x2c]
call fcn.0040824d
lea eax, [ebp + 0x2c]
push eax
call fcn.0040349b
pop ecx
xor esi, esi
push esi
lea ecx, [ebp + 0x2c]
push 1
test al, al
je 0x40df6a
call fcn.00404a05
push esi
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a05
lea ecx, [ebp - 0x38]
call fcn.0040a342
cmp dword [ebp - 0x10], esi
je 0x40df63
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
jmp 0x40e049
call fcn.00404a05
push esi
push 1
lea ecx, [ebp + 0x48]
call fcn.00404a05
lea ecx, [ebp - 0x38]
call fcn.0040a342
cmp dword [ebp - 0x10], esi
jmp 0x40df08
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x24], 0x222e
cmp dword [ebp + 0x5c], esi
jae 0x40df99
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x120]
push str.Unknown_unsupported_option_
push eax
call fcn.00403d9a
pop ecx
mov ecx, eax
call fcn.00403a8d
mov ecx, eax
call fcn.0040e36e
mov ecx, eax
call fcn.0040733e
lea ecx, [ebp - 0x120]
call fcn.00403cc4
lea ecx, [ebp - 0x118]
call fcn.0040382d
jmp 0x40def0
lea ecx, [ebp - 0x38]
call fcn.0040a342
cmp dword [ebp - 0x10], esi
je 0x40dff6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x80]
call fcn.0040947e
xor eax, eax
jmp 0x40e053
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
sub eax, ebx
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x40e02b
xor esi, esi
jmp 0x40e024
push ebx
call fcn.0040b7e1
pop ecx
mov esi, eax
add ebx, 0x1c
cmp ebx, dword [ebp - 0x34]
jne 0x40e018
jmp 0x40e032
call fcn.0040c3f5
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.0040a342
cmp dword [ebp - 0x10], 0
je 0x40e049
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x80]
call fcn.0040947e
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041efce
add ebp, 0x68
leave
ret 0x10