Function at 0x462850
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bfcb
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x566148]
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
lea eax, [ebp - 0x27c]
xor edi, edi
push eax
mov byte [ebp - 0x275], 0
mov bl, 1
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 0x27c]
cmp ecx, 2
jne 0x4628e7
mov ecx, dword [eax + 4]
mov edx, 0x544024
mov si, word [ecx]
cmp si, word [edx]
jne 0x4628dc
cmp si, di
je 0x4628d8
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4628dc
add ecx, 4
add edx, 4
cmp si, di
jne 0x4628b6
xor ecx, ecx
jmp 0x4628e1
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, edi
jne 0x4628ec
jmp 0x4628f3
cmp ecx, 1
je 0x4628f5
mov byte [ebp - 0x275], 1
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x462dc8
mov dword [ebp - 0x280], edi
lea ecx, [ebp - 0x280]
push ecx
push 0x544130
push 4
push edi
push 0x5328d8
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x462daf
mov eax, dword [ebp - 0x280]
cmp eax, edi
je 0x462db5
mov dword [ebp - 0x27c], edi
lea edx, [ebp - 0x308]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [ebp - 0x27c]
push edx
push 1
lea edx, [ebp - 0x2f4]
push edx
push 8
lea edx, [ebp - 0x308]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x280]
mov ecx, dword [eax]
push edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jne 0x462d90
mov dword [ebp - 0x294], edi
mov edx, dword [ebp - 0x27c]
lea ecx, [ebp - 0x294]
push ecx
push 0x544140
push 0x532858
push edx
call dword [sym.imp.SHLWAPI.dll_IUnknown_QueryService]
cmp eax, edi
jl 0x462d7a
mov dword [ebp - 0x28c], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x294]
mov ecx, dword [eax]
lea edx, [ebp - 0x28c]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
cmp eax, edi
jl 0x462d64
mov dword [ebp - 0x290], edi
lea edx, [ebp - 0x290]
push edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28c]
mov ecx, dword [eax]
push 0x53fa4c
push edi
push eax
mov eax, dword [ecx + 0x3c]
call eax
cmp eax, edi
jl 0x462d4e
mov ecx, dword [ebp - 0x290]
xor eax, eax
mov dword [ebp - 0x288], eax
cmp ecx, edi
je 0x462a35
mov edx, dword [ecx]
lea eax, [ebp - 0x288]
push eax
push 0x544150
push ecx
mov ecx, dword [edx]
call ecx
mov eax, dword [ebp - 0x288]
cmp eax, edi
je 0x462d3e
mov dword [ebp - 0x298], edi
mov byte [ebp - 4], 7
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [ebp - 0x298]
push ecx
push eax
call edx
cmp eax, edi
jl 0x462d22
mov ecx, dword [ebp - 0x298]
xor eax, eax
mov dword [ebp - 0x284], eax
cmp ecx, edi
je 0x462a89
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [ebp - 0x284]
push edx
push 0x544160
push ecx
call eax
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 8
cmp eax, edi
je 0x462d12
mov edx, dword [0x56d350]
push 0x20a
lea ecx, [ebp - 0x220]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x103
ja 0x462d0c
lea ecx, [ebp - 0x220]
lea esi, [ebp - 0x23c]
call fcn.0040aac0
mov eax, 3
mov word [ebp - 0x2f0], ax
mov eax, 4
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2f0]
mov edx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2e4]
mov edi, str.open
lea esi, [ebp - 0x338]
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x29c], eax
call fcn.004240b0
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2dc], edx
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x258]
mov dword [ebp - 0x2d8], ecx
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x2d4], edx
call fcn.004d02a0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x462b65
mov eax, dword [eax]
mov edi, eax
lea esi, [ebp - 0x318]
call fcn.004240b0
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c8], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c4], edx
mov edx, dword [eax + 0xc]
mov edi, 0x544024
lea esi, [ebp - 0x328]
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2bc], edx
call fcn.004240b0
mov byte [ebp - 4], 0xe
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [ebp - 0x284]
mov dword [ebp - 0x2b8], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2b4], edx
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x274]
mov dword [ebp - 0x2b0], ecx
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x2ac], edx
call fcn.004d04a0
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x462bf4
mov eax, dword [eax]
test eax, eax
jne 0x462dea
xor edi, edi
mov dword [ebp - 0x2cc], edi
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x2a8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x2a4]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2a0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x29c]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x2e0]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x2dc]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2d8]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x2d4]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x2c8]
mov ecx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x2c4]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2c0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x2bc]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x2b8]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x2b4]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2b0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x2ac]
push edi
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0x7c]
push esi
call eax
push edi
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x274]
call fcn.004e77b0
lea ecx, [ebp - 0x328]
push ecx
call ebx
lea edx, [ebp - 0x318]
push edx
call ebx
lea ecx, [ebp - 0x258]
call fcn.004e77b0
lea eax, [ebp - 0x338]
push eax
call ebx
lea ecx, [ebp - 0x2f0]
push ecx
call ebx
test esi, esi
js 0x462cff
mov byte [ebp - 0x275], 1
lea ecx, [ebp - 0x23c]
call fcn.004e77b0
xor edi, edi
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 7
cmp eax, edi
je 0x462d22
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x298]
cmp eax, edi
je 0x462d38
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp eax, edi
je 0x462d4e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x462d64
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28c]
cmp eax, edi
je 0x462d7a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x294]
cmp eax, edi
je 0x462d90
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x308]
push eax
call ebx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x27c]
cmp eax, edi
je 0x462daf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x280]
mov dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x462dc8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, byte [ebp - 0x275]
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.004e8965
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x2cc], edi
test edi, edi
jne 0x462c04
push 0x8007000e
call fcn.00406220
int3