Function at 0x4d99f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547599
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x594624]
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
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0x558654
push 0x17
push 0
push 0x571160
call dword [sym.imp.ole32.dll_CoCreateInstance]
or ebx, 0xffffffff
test eax, eax
js 0x4d9c0c
mov eax, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x14], esi
test eax, eax
je 0x4d9a81
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x558644
push eax
call dword [ecx]
mov esi, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
cmovs esi, ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x4d9ac7
test edi, edi
jne 0x4d9ab1
mov dword [ebp - 0x24], edi
push 0
mov dword [ebp - 0x20], 1
mov eax, dword [esi]
push edi
push esi
mov byte [ebp - 4], 3
call dword [eax + 0x14]
mov esi, dword [ebp - 0x14]
test eax, eax
js 0x4d9aca
mov byte [ebp - 0x19], 1
jmp 0x4d9ace
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x4d9c66
jmp 0x4d9a90
mov edi, dword [ebp - 0x24]
mov byte [ebp - 0x19], 0
test byte [ebp - 0x20], 1
mov dword [ebp - 4], 2
je 0x4d9ae5
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x14]
cmp byte [ebp - 0x19], 0
je 0x4d9bfe
call fcn.0040dca0
mov ecx, eax
test ecx, ecx
je 0x4d9c70
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 4
jge 0x4d9b34
push 0x104
lea ecx, [ebp - 0x20]
call fcn.0040d020
mov esi, dword [ebp - 0x20]
mov eax, dword [edi]
push 4
push 0
push 0x104
push esi
push edi
call dword [eax + 0xc]
push dword [esi - 8]
push esi
call fcn.0050891c
add esp, 8
test eax, eax
js 0x4d9c5c
cmp eax, dword [esi - 8]
jg 0x4d9c5c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, esi
mov eax, dword [ebp + 0xc]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d9b96
test dx, dx
je 0x4d9b92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d9b96
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d9b70
xor eax, eax
jmp 0x4d9b9b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4d9be0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d9be0
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d9bc8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x4d9bd9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 1
jmp 0x4d9c0e
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d9bfb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test esi, esi
je 0x4d9c0c
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor esi, esi
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
test eax, eax
je 0x4d9c1f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4d9c3e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.00493dce
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040b4c0
push 0x8007000e
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
int3