Function at 0x492200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510848
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x550144]
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 0x492512
cmp dword [esi + 0x28], 0
je 0x492512
push 6
push 0
mov dword [ebp - 0x24c], 0x5399e8
mov dword [ebp - 0x248], 0x538eb4
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 0x4922ad
mov edi, dword [esi]
lea eax, [ebp - 0x240]
push eax
push 0x525bf8
push 1
push 0
push 0x525c28
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x492461
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x4922eb
mov eax, dword [ecx]
lea edx, [ebp - 0x23c]
push edx
push 0x525c38
push ecx
call dword [eax]
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 0x238], 2
push 0x104
push eax
call fcn.004e7ac4
add esp, 0xc
cmp dword [esi + 0x28], 0
jbe 0x49232f
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x49231b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004980c0
test eax, eax
js 0x492461
cmp dword [esi + 0x40], 0
jbe 0x492354
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x492340
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00497d90
test eax, eax
js 0x492461
cmp dword [esi + 0x70], 0
jbe 0x492425
cmp dword [esi + 0x74], 8
lea edi, [esi + 0x60]
jb 0x492369
mov edi, dword [edi]
cmp dword [ebp - 0x238], 2
jne 0x492461
xor eax, eax
mov dword [ebp - 0x28], 0
push eax
push 0x5364dc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0044a760
mov byte [ebp - 4], 1
test edi, edi
je 0x4923c9
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4923b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.0044a760
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 0x492421
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x492417
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492531
push edx
push ecx
call fcn.004de45a
add esp, 8
test edi, edi
js 0x492461
cmp dword [esi + 0x58], 0
jbe 0x492475
cmp dword [esi + 0x5c], 8
lea edi, [esi + 0x48]
mov eax, edi
jb 0x492438
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492475
cmp dword [edi + 0x14], 8
jb 0x49244b
mov edi, dword [edi]
push dword [esi + 0x90]
lea ecx, [ebp - 0x24c]
push edi
call fcn.00497fb0
test eax, eax
jns 0x492488
lea ecx, [ebp - 0x24c]
xor esi, esi
call fcn.00497cf0
mov eax, esi
jmp 0x492514
push 0
push 0
lea ecx, [ebp - 0x24c]
call fcn.00497fb0
test eax, eax
js 0x492461
cmp dword [esi + 0x88], 0
jbe 0x4924ac
add esi, 0x78
cmp dword [esi + 0x14], 8
jb 0x49249c
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x24c]
call fcn.00497ea0
test eax, eax
js 0x492461
cmp dword [ebp - 0x238], 2
jne 0x4924ca
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 0x4924e4
mov dword [ebp - 0x23c], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x4924fe
mov dword [ebp - 0x240], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x24c]
mov esi, 1
call fcn.00497cf0
mov eax, esi
jmp 0x492514
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.004de46d
mov esp, ebp
pop ebp
ret 4
call fcn.004e364a
int3