Function at 0x491df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d228
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x492102
cmp dword [esi + 0x28], 0
je 0x492102
push 6
push 0
mov dword [ebp - method.QMTShortCut.virtual_0], vtable.QMTShortCut.0
mov dword [ebp - method.CQMTInitializeCOMThread.virtual_0], vtable.CQMTInitializeCOMThread.0
mov dword [ebp - 0x244], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, dword [ebp - 0x244]
mov edx, 1
test eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
cmove ecx, edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 4], 0
mov edi, esi
cmp dword [esi + 0x14], 8
jb 0x491e9d
mov edi, dword [esi]
lea eax, [ebp - 0x240]
push eax
push 0x521b00
push 1
push 0
push 0x521b30
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x492051
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x491edb
mov eax, dword [ecx]
lea edx, [ebp - 0x23c]
push edx
push 0x521b40
push ecx
call dword [eax]
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 0x238], 2
push 0x104
push eax
call fcn.004e44a6
add esp, 0xc
cmp dword [esi + 0x28], 0
jbe 0x491f1f
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x491f0b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00497cb0
test eax, eax
js 0x492051
cmp dword [esi + 0x40], 0
jbe 0x491f44
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x491f30
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00497980
test eax, eax
js 0x492051
cmp dword [esi + 0x70], 0
jbe 0x492015
cmp dword [esi + 0x74], 8
lea edi, [esi + 0x60]
jb 0x491f59
mov edi, dword [edi]
cmp dword [ebp - 0x238], 2
jne 0x492051
xor eax, eax
mov dword [ebp - 0x28], 0
push eax
push 0x5323dc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0044a750
mov byte [ebp - 4], 1
test edi, edi
je 0x491fb9
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491fa0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.0044a750
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov byte [ebp - 4], 0
mov edi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x492011
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x492007
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492121
push edx
push ecx
call fcn.004dafca
add esp, 8
test edi, edi
js 0x492051
cmp dword [esi + 0x58], 0
jbe 0x492065
cmp dword [esi + 0x5c], 8
lea edi, [esi + 0x48]
mov eax, edi
jb 0x492028
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492065
cmp dword [edi + 0x14], 8
jb 0x49203b
mov edi, dword [edi]
push dword [esi + 0x90]
lea ecx, [ebp - 0x24c]
push edi
call fcn.00497ba0
test eax, eax
jns 0x492078
lea ecx, [ebp - 0x24c]
xor esi, esi
call fcn.004978e0
mov eax, esi
jmp 0x492104
push 0
push 0
lea ecx, [ebp - 0x24c]
call fcn.00497ba0
test eax, eax
js 0x492051
cmp dword [esi + 0x88], 0
jbe 0x49209c
add esi, 0x78
cmp dword [esi + 0x14], 8
jb 0x49208c
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x24c]
call fcn.00497a90
test eax, eax
js 0x492051
cmp dword [ebp - 0x238], 2
jne 0x4920ba
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x234]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4920d4
mov dword [ebp - 0x23c], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x4920ee
mov dword [ebp - 0x240], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x24c]
mov esi, 1
call fcn.004978e0
mov eax, esi
jmp 0x492104
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
call fcn.004e002c
int3