Function at 0x40b910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a7fd
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x124], edi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
mov ecx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x14], 0
call fcn.00407500
mov eax, dword [ebp - 0x130]
mov dword [ebp - 4], 0
cmp eax, dword [ebp - 0x12c]
jne 0x40b983
mov esi, 2
jmp 0x40c1cd
push 3
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x4a49a8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402db0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00407c80
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40b9fc
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b9f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1f8
push edx
push ecx
call fcn.00471e9b
add esp, 8
test esi, esi
je 0x40ba1e
call fcn.004042e0
mov ecx, eax
call fcn.00404580
mov ecx, eax
call fcn.00415ee0
mov esi, eax
test si, si
jne 0x40c1cd
push 4
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x4a49b0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402db0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.00407bd0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x40ba99
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ba8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1fd
push edx
push ecx
call fcn.00471e9b
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x60], eax
je 0x40bdd9
lea ecx, [ebp - 0x18]
call fcn.0040f4e0
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00413f40
lea ecx, [ebp - 0x18]
call fcn.00413f90
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
push 0x4a4a14
cmovae ecx, dword [ebp - 0x70]
mov esi, eax
push ecx
call fcn.0047da65
add esp, 8
test eax, eax
jne 0x40bafd
xor ebx, ebx
cmp esi, 1
sete bl
jmp 0x40bb57
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push str.Admin
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0047da65
add esp, 8
test eax, eax
jne 0x40bb24
xor ebx, ebx
cmp esi, 2
sete bl
jmp 0x40bb57
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push str.Shell
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0047da65
add esp, 8
test eax, eax
jne 0x40bdcd
cmp esi, 2
jne 0x40bb73
lea ecx, [ebp - 0x18]
call fcn.00414b80
neg eax
sbb ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004136b0
test ebx, ebx
jne 0x40bdd9
mov ebx, dword [ebp - 0x120]
jmp 0x40bb88
cmp esi, 1
jne 0x40bdcd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004136b0
push 0xb
xor eax, eax
mov dword [ebp - 0x28], 0
push str.ServiceType
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402db0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.00407bd0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x40bc03
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bbf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c202
push edx
push ecx
call fcn.00471e9b
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x44], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push str.Daemon
push eax
mov dword [ebp - 0x14], 7
call fcn.0047da65
add esp, 8
test eax, eax
jne 0x40bc5c
call fcn.004042e0
mov ecx, eax
call fcn.00404580
mov ecx, eax
call fcn.00416230
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040d4e0
mov esi, eax
lea ecx, [ebp - 0x58]
jmp 0x40c1c0
lea ecx, [ebp - 0x11c]
call fcn.00406ed0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403330
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00408240
lea ecx, [ebp - 0x40]
call fcn.004022a0
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 9
test esi, esi
je 0x40bd5e
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x40bd1a
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40bcfd
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40bcf3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c207
mov eax, edx
push ecx
push eax
call fcn.00471e9b
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x40bcc4
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40bd54
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c207
push ecx
push esi
call fcn.00471e9b
add esp, 8
push 0x4a49b0
lea ecx, [ebp - 0x40]
call fcn.00403330
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x11c]
call fcn.00408bd0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.004022a0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00407310
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xd
push ecx
push eax
call fcn.0040d320
add esp, 8
lea ecx, [ebp - 0x88]
mov esi, eax
call fcn.004022a0
lea ecx, [ebp - 0x11c]
call fcn.00407000
lea ecx, [ebp - 0x58]
jmp 0x40c1c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004136b0
push 9
xor eax, eax
mov dword [ebp - 0x58], 0
push str.Temporary
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00402db0
mov edi, dword [ebp - 0x120]
lea eax, [ebp - 0x58]
mov ebx, 1
mov byte [ebp - 4], 0xe
push eax
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00407c80
test eax, eax
je 0x40be67
push str.Temporary
lea ecx, [ebp - 0x88]
call fcn.00403330
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x14], 3
push eax
mov ecx, edi
call fcn.00407bd0
mov ebx, 7
cmp dword [eax + 0x10], 0
jne 0x40be67
lea esi, [ebx - 6]
jmp 0x40be69
xor esi, esi
test bl, 4
je 0x40be7c
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffffb
call fcn.004022a0
test bl, 2
je 0x40be8f
lea ecx, [ebp - 0x88]
and ebx, 0xfffffffd
call fcn.004022a0
mov dword [ebp - 4], 4
test bl, 1
je 0x40bed5
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40bed5
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40becb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c20c
push edx
push ecx
call fcn.00471e9b
add esp, 8
mov ebx, dword [ebp - 0x124]
test esi, esi
je 0x40bef4
mov ecx, ebx
call fcn.0040cbe0
test eax, eax
je 0x40bef4
mov esi, 0x11
jmp 0x40c1c5
push 5
xor eax, eax
mov dword [ebp - 0x28], 0
push str.Entry
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402db0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xb8]
mov ecx, edi
push eax
call fcn.00407bd0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x40bf72
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c211
push edx
push ecx
call fcn.00471e9b
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xc
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
push str.EncodePathU8
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00402db0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x13
push eax
mov ecx, edi
call fcn.00407c80
mov edx, dword [ebp - 0x44]
mov esi, eax
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x40bff5
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bfeb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c216
push edx
push ecx
call fcn.00471e9b
add esp, 8
lea ecx, [ebp - 0x88]
test esi, esi
je 0x40c077
push str.EncodePathU8
call fcn.00403330
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00407bd0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x15
jb 0x40c02b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0046b130
add esp, 8
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x16
push ecx
push eax
mov ecx, ebx
call fcn.0040c660
lea ecx, [ebp - 0xa0]
mov esi, eax
call fcn.004022a0
lea ecx, [ebp - 0x58]
call fcn.004022a0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x12
call fcn.004022a0
jmp 0x40c102
push str.EncodePath
call fcn.00403330
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x17
push eax
mov ecx, edi
call fcn.00407c80
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x12
mov esi, eax
call fcn.004022a0
test esi, esi
je 0x40c0ec
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0x14], 8
jb 0x40c0b6
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0046b130
add esp, 8
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x18
push ecx
push eax
mov ecx, ebx
call fcn.0040c660
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x12
mov esi, eax
call fcn.004022a0
jmp 0x40c102
lea eax, [ebp - 0xb8]
mov ecx, ebx
push eax
push dword [ebp - 0x130]
call fcn.0040c660
mov esi, eax
test si, si
jne 0x40c1ba
mov esi, dword [ebp - 0x130]
add esi, 0x18
cmp esi, dword [ebp - 0x12c]
je 0x40c1b0
cmp dword [ebx + 0x28], 0
je 0x40c135
push 1
push 0x4a4790
lea ecx, [ebx + 0x18]
call fcn.00402c30
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.0041e0a0
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 0x19
jb 0x40c154
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebx + 0x18]
call fcn.00402c30
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x40c19b
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c191
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1f8
push edx
push ecx
call fcn.00471e9b
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x12c]
jne 0x40c120
mov edi, dword [ebp - 0x120]
push edi
mov ecx, ebx
call fcn.0040b4a0
xor esi, esi
lea ecx, [ebp - 0xb8]
call fcn.004022a0
lea ecx, [ebp - 0x70]
call fcn.004022a0
lea ecx, [ebp - 0x130]
call fcn.00403660
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret 4
call fcn.0047d41e
call fcn.0047d41e
call fcn.0047d41e
call fcn.0047d41e
call fcn.0047d41e
call fcn.0047d41e
call fcn.0047d41e
int3