Function at 0x4ca440
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5758cb
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x5bafe0]
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 0x4ca4d7
mov ecx, dword [eax + 4]
mov edx, 0x59b398
mov si, word [ecx]
cmp si, word [edx]
jne 0x4ca4cc
cmp si, di
je 0x4ca4c8
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4ca4cc
add ecx, 4
add edx, 4
cmp si, di
jne 0x4ca4a6
xor ecx, ecx
jmp 0x4ca4d1
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, edi
jne 0x4ca4dc
jmp 0x4ca4e3
cmp ecx, 1
je 0x4ca4e5
mov byte [ebp - 0x275], 1
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x4ca9b8
mov dword [ebp - 0x280], edi
lea ecx, [ebp - 0x280]
push ecx
push 0x59b474
push 4
push edi
push 0x57ca40
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x4ca99f
mov eax, dword [ebp - 0x280]
cmp eax, edi
je 0x4ca9a5
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 0x4ca980
mov dword [ebp - 0x294], edi
mov edx, dword [ebp - 0x27c]
lea ecx, [ebp - 0x294]
push ecx
push 0x59b484
push 0x57c9a0
push edx
call dword [sym.imp.SHLWAPI.dll_IUnknown_QueryService]
cmp eax, edi
jl 0x4ca96a
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 0x4ca954
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 0x591e50
push edi
push eax
mov eax, dword [ecx + 0x3c]
call eax
cmp eax, edi
jl 0x4ca93e
mov ecx, dword [ebp - 0x290]
xor eax, eax
mov dword [ebp - 0x288], eax
cmp ecx, edi
je 0x4ca625
mov edx, dword [ecx]
lea eax, [ebp - 0x288]
push eax
push 0x59b494
push ecx
mov ecx, dword [edx]
call ecx
mov eax, dword [ebp - 0x288]
cmp eax, edi
je 0x4ca92e
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 0x4ca912
mov ecx, dword [ebp - 0x298]
xor eax, eax
mov dword [ebp - 0x284], eax
cmp ecx, edi
je 0x4ca679
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [ebp - 0x284]
push edx
push 0x59b4a4
push ecx
call eax
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 8
cmp eax, edi
je 0x4ca902
mov edx, dword [0x5c2724]
push 0x20a
lea ecx, [ebp - 0x220]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x103
ja 0x4ca8fc
lea ecx, [ebp - 0x220]
lea esi, [ebp - 0x23c]
call fcn.00409450
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.0041f5d0
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.00513250
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x4ca755
mov eax, dword [eax]
mov edi, eax
lea esi, [ebp - 0x318]
call fcn.0041f5d0
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, 0x59b398
lea esi, [ebp - 0x328]
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2bc], edx
call fcn.0041f5d0
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.00513450
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x4ca7e4
mov eax, dword [eax]
test eax, eax
jne 0x4ca9da
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.004129f0
lea ecx, [ebp - 0x328]
push ecx
call ebx
lea edx, [ebp - 0x318]
push edx
call ebx
lea ecx, [ebp - 0x258]
call fcn.004129f0
lea eax, [ebp - 0x338]
push eax
call ebx
lea ecx, [ebp - 0x2f0]
push ecx
call ebx
test esi, esi
js 0x4ca8ef
mov byte [ebp - 0x275], 1
lea ecx, [ebp - 0x23c]
call fcn.004129f0
xor edi, edi
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 7
cmp eax, edi
je 0x4ca912
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 0x4ca928
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 0x4ca93e
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 0x4ca954
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 0x4ca96a
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 0x4ca980
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 0x4ca99f
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 0x4ca9b8
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.0052b755
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 0x4ca7f4
push 0x8007000e
call fcn.00413f90
int3