Function at 0x40240c
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x80
mov eax, 0x412782
call fcn.00406a58
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
or dword [ebp - 0x7c], 0xffffffff
xor edi, edi
cmp ebx, edi
mov dword [0x418c80], eax
je 0x402c14
cmp word [ebx], di
je 0x402c14
mov esi, 0x418cf8
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x80], edi
call fcn.00401118
push esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], edi
call fcn.00401118
lea eax, [ebp - 0x80]
push eax
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x84], ebx
je 0x402bfe
cmp dword [ebp - 0x80], 2
jl 0x402bf7
push dword [ebx]
lea ecx, [ebp - 0x74]
call fcn.00401031
cmp dword [ebp - 0x80], 2
mov byte [ebp - 4], 2
jne 0x402516
push 0x41335c
push dword [ebp - 0x74]
call fcn.00406daa
test eax, eax
pop ecx
pop ecx
jne 0x402516
lea eax, [ebp - 0x6c]
push eax
call fcn.00401e45
test eax, eax
mov eax, dword [ebp - 0x6c]
pop ecx
je 0x402bec
cmp dword [eax - 0xc], edi
jle 0x402bec
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402bec
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push dword [ebx + 4]
call fcn.00401031
push ecx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x68], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 3
call fcn.0040113d
mov byte [ebp - 4], 2
call fcn.004022a5
cmp eax, edi
pop ecx
pop ecx
je 0x402bec
mov dword [ebp - 0x7c], edi
jmp 0x402bec
cmp dword [ebp - 0x80], 3
jne 0x402bd7
push 0x414e14
push dword [ebp - 0x74]
call fcn.00406daa
test eax, eax
pop ecx
pop ecx
jne 0x4027dd
mov esi, 0x413358
push esi
lea ecx, [ebp - 0x70]
call fcn.00401031
push dword [ebx + 4]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.0040122f
push dword [ebx + 8]
lea ecx, [ebp - 0x78]
call fcn.0040122f
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d95
mov eax, dword [ebp - 0x6c]
cmp dword [eax - 0xc], edi
mov byte [ebp - 4], 5
jle 0x4027b1
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x68], edi
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
call fcn.00401000
mov eax, dword [ebp - 0x68]
add esp, 0x10
cmp eax, edi
je 0x4027b1
mov esi, 0x418d14
add eax, 4
push esi
push eax
call fcn.00406e40
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x4027b1
mov eax, dword [ebp - 0x68]
add eax, 4
push eax
push edi
push ebx
call fcn.004063c0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx - 0xc]
lea edx, [ebp - 0x68]
push edx
push ebx
push eax
push ecx
call fcn.00401000
add esp, 0x1c
test eax, eax
push ebx
jne 0x4025e6
call fcn.00406e3b
pop ecx
jmp 0x4027b1
lea ecx, [ebp - 0x2c]
call fcn.00401d78
push ebx
call fcn.00406e3b
cmp dword [ebp - 0x18], edi
pop ecx
je 0x4027b1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40260a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4027b1
mov ebx, dword [ebp - 0x78]
cmp dword [ebx - 0xc], edi
jle 0x40269b
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x68], edi
mov eax, dword [ebx - 0xc]
push edi
push eax
push ebx
call fcn.00401000
mov eax, dword [ebp - 0x68]
add esp, 0x10
cmp eax, edi
je 0x4027b1
add eax, 4
push esi
push eax
call fcn.00406e40
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4027b1
mov eax, dword [ebp - 0x68]
add eax, 4
push eax
push edi
push esi
call fcn.004063c0
mov eax, dword [ebx - 0xc]
lea ecx, [ebp - 0x68]
push ecx
push esi
push eax
push ebx
call fcn.00401000
add esp, 0x1c
test eax, eax
push esi
je 0x4025db
lea ecx, [ebp - 0x70]
call fcn.0040122f
push esi
call fcn.00406e3b
mov eax, dword [ebp - 0x70]
cmp dword [eax - 0xc], edi
pop ecx
je 0x4027b1
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 7
call fcn.00401a11
mov eax, dword [ebp - 0x28]
push 8
pop esi
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 6
jae 0x4026bd
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401031
push str.qqbrowser.exe
push dword [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00406daa
test eax, eax
pop ecx
pop ecx
jne 0x402759
cmp dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x28]
jae 0x4026ef
lea eax, [ebp - 0x28]
push 1
push edi
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.00403161
add esp, 0x10
test eax, eax
je 0x402759
cmp dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x44]
jae 0x40270e
lea eax, [ebp - 0x44]
push 0x4132e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x402759
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x88], esp
mov ecx, esp
push eax
call fcn.0040113d
cmp dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 8
jae 0x40273f
lea eax, [ebp - 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push eax
call fcn.00401031
mov byte [ebp - 4], 7
call fcn.00402120
jmp 0x402792
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x8c], esp
mov ecx, esp
push eax
call fcn.0040113d
cmp dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 9
jae 0x40277a
lea eax, [ebp - 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x88], esp
push eax
call fcn.00401031
mov byte [ebp - 4], 7
call fcn.004022a5
cmp eax, edi
pop ecx
pop ecx
je 0x40279b
mov dword [ebp - 0x7c], edi
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00401755
lea ecx, [ebp - 0x48]
push edi
push 1
call fcn.00401a2e
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401a2e
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff0
call fcn.00401755
mov ebx, dword [ebp - 0x84]
jmp 0x402bf7
cmp dword [ebp - 0x80], 3
jne 0x402bd7
push 0x4132dc
push dword [ebp - 0x74]
call fcn.00406daa
test eax, eax
pop ecx
pop ecx
jne 0x4029a7
mov esi, 0x413358
push esi
lea ecx, [ebp - 0x70]
call fcn.00401031
push dword [ebx + 4]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
call fcn.0040122f
push dword [ebx + 8]
lea ecx, [ebp - 0x78]
call fcn.0040122f
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d95
mov eax, dword [ebp - 0x6c]
cmp dword [eax - 0xc], edi
mov byte [ebp - 4], 0xb
jle 0x4027b1
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x68], edi
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
call fcn.00401000
mov eax, dword [ebp - 0x68]
add esp, 0x10
cmp eax, edi
je 0x4027b1
mov esi, 0x418d14
add eax, 4
push esi
push eax
call fcn.00406e40
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x4027b1
mov eax, dword [ebp - 0x68]
add eax, 4
push eax
push edi
push ebx
call fcn.004063c0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx - 0xc]
lea edx, [ebp - 0x68]
push edx
push ebx
push eax
push ecx
call fcn.00401000
add esp, 0x1c
test eax, eax
push ebx
je 0x4025db
lea ecx, [ebp - 0x2c]
call fcn.00401d78
push ebx
call fcn.00406e3b
cmp dword [ebp - 0x18], edi
pop ecx
je 0x4027b1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4028ca
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4027b1
mov ebx, dword [ebp - 0x78]
cmp dword [ebx - 0xc], edi
jle 0x40295b
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x68], edi
mov eax, dword [ebx - 0xc]
push edi
push eax
push ebx
call fcn.00401000
mov eax, dword [ebp - 0x68]
add esp, 0x10
cmp eax, edi
je 0x4027b1
add eax, 4
push esi
push eax
call fcn.00406e40
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4027b1
mov eax, dword [ebp - 0x68]
add eax, 4
push eax
push edi
push esi
call fcn.004063c0
mov eax, dword [ebx - 0xc]
lea ecx, [ebp - 0x68]
push ecx
push esi
push eax
push ebx
call fcn.00401000
add esp, 0x1c
test eax, eax
push esi
je 0x4025db
lea ecx, [ebp - 0x70]
call fcn.0040122f
push esi
call fcn.00406e3b
mov eax, dword [ebp - 0x70]
cmp dword [eax - 0xc], edi
pop ecx
je 0x4027b1
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x8c], esp
mov ecx, esp
push eax
call fcn.0040113d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0xc
jae 0x40297d
lea eax, [ebp - 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x88], esp
push eax
call fcn.00401031
mov byte [ebp - 4], 0xb
call fcn.004022a5
cmp eax, edi
pop ecx
pop ecx
je 0x4027b1
mov dword [ebp - 0x7c], edi
jmp 0x4027b1
cmp dword [ebp - 0x80], 3
jne 0x402bd7
push 0x414e1c
push dword [ebp - 0x74]
call fcn.00406daa
test eax, eax
pop ecx
pop ecx
jne 0x402bd7
mov esi, 0x413358
push esi
lea ecx, [ebp - 0x70]
call fcn.00401031
push dword [ebx + 4]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
call fcn.0040122f
push dword [ebx + 8]
lea ecx, [ebp - 0x78]
call fcn.0040122f
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401d95
mov eax, dword [ebp - 0x6c]
cmp dword [eax - 0xc], edi
mov byte [ebp - 4], 0xe
jle 0x4027b1
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x68], edi
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
call fcn.00401000
mov eax, dword [ebp - 0x68]
add esp, 0x10
cmp eax, edi
je 0x4027b1
mov esi, 0x418d14
add eax, 4
push esi
push eax
call fcn.00406e40
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x4027b1
mov eax, dword [ebp - 0x68]
add eax, 4
push eax
push edi
push ebx
call fcn.004063c0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx - 0xc]
lea edx, [ebp - 0x68]
push edx
push ebx
push eax
push ecx
call fcn.00401000
add esp, 0x1c
test eax, eax
push ebx
je 0x4025db
lea ecx, [ebp - 0x2c]
call fcn.00401d78
push ebx
call fcn.00406e3b
cmp dword [ebp - 0x18], edi
pop ecx
je 0x4027b1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x402a94
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4027b1
mov ebx, dword [ebp - 0x78]
cmp dword [ebx - 0xc], edi
jle 0x402b25
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x68], edi
mov eax, dword [ebx - 0xc]
push edi
push eax
push ebx
call fcn.00401000
mov eax, dword [ebp - 0x68]
add esp, 0x10
cmp eax, edi
je 0x4027b1
add eax, 4
push esi
push eax
call fcn.00406e40
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4027b1
mov eax, dword [ebp - 0x68]
add eax, 4
push eax
push edi
push esi
call fcn.004063c0
mov eax, dword [ebx - 0xc]
lea ecx, [ebp - 0x68]
push ecx
push esi
push eax
push ebx
call fcn.00401000
add esp, 0x1c
test eax, eax
push esi
je 0x4025db
lea ecx, [ebp - 0x70]
call fcn.0040122f
push esi
call fcn.00406e3b
mov eax, dword [ebp - 0x70]
cmp dword [eax - 0xc], edi
pop ecx
je 0x4027b1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401d52
push dword [ebp - 0x70]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.00401d95
cmp dword [ebp - 0x34], edi
mov byte [ebp - 4], 0x10
jbe 0x402b81
lea eax, [ebp - 0x64]
mov esi, 0x41706c
push eax
mov ecx, esi
call fcn.00405628
test eax, eax
je 0x402b81
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov dword [ebp - 0x68], edi
call fcn.0040566a
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
jmp 0x402bc4
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x8c], esp
mov ecx, esp
push eax
call fcn.0040113d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x11
jae 0x402ba3
lea eax, [ebp - 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x88], esp
push eax
call fcn.00401031
mov byte [ebp - 4], 0x10
call fcn.004022a5
cmp eax, edi
pop ecx
pop ecx
je 0x402bc4
mov dword [ebp - 0x7c], edi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401a2e
lea ecx, [ebp - 0x64]
jmp 0x4027a9
cmp dword [ebp - 0x80], 4
jne 0x402bec
push 0x4132d4
push dword [ebp - 0x74]
call fcn.00406daa
pop ecx
pop ecx
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff0
call fcn.00401755
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
call fcn.00401755
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00401755
mov eax, dword [ebp - 0x7c]
call fcn.00406aa2
ret 0x10