Function at 0x414ae0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c438f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4f4214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2b8], 0
jne 0x414b40
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x414b2a
push esi
call fcn.00411030
push esi
call fcn.0049c71f
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x284]
mov eax, dword [ecx + 0x4a0]
mov edx, dword [eax + 0xc]
add ecx, 0x4a0
call edx
mov ebx, eax
dec ebx
js 0x414c2b
mov ecx, dword [esi + 0x284]
mov eax, dword [ecx + 0x4a0]
mov edx, dword [eax]
add ecx, 0x4a0
push ebx
call edx
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xc0]
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x414bdc
mov eax, dword [esi + 4]
jmp 0x414ba0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414bc6
test dx, dx
je 0x414bc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414bc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x414ba0
xor eax, eax
jmp 0x414bcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x414be6
dec ebx
mov esi, dword [ebp + 8]
jns 0x414b60
jmp 0x414c2b
push 0x80004005
call fcn.00401000
mov edi, dword [edi + 0x69c]
cmp edi, 3
je 0x41502b
cmp edi, 8
je 0x41502b
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x284]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0x1c]
add ecx, 0x4a0
push ebx
call eax
push esi
call fcn.00411030
push esi
call fcn.0049c71f
mov esi, dword [ebp + 8]
add esp, 4
push 0x6b0
call fcn.0049caff
add esp, 4
mov dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x414c50
lea ecx, [esi + 0x18]
mov ebx, eax
call fcn.0040cda0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 4]
mov edx, dword [edi]
mov dword [edi + 0x698], eax
mov eax, dword [edx + 0x64]
push 0x42
mov ecx, edi
call eax
mov edx, dword [edi]
mov esi, dword [ebp + 0xc]
mov eax, dword [edx + 0xc4]
push esi
mov ecx, edi
call eax
mov eax, dword [esi + 8]
cmp dword [eax - 4], 1
lea ebx, [esi + 8]
jle 0x414c91
mov ecx, dword [eax - 0xc]
push ecx
push ebx
call fcn.00402820
mov eax, dword [ebx]
mov ecx, dword [edi + 0x4ec]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
call eax
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x414cbc
push ecx
push eax
call fcn.0049dbfd
add esp, 8
test eax, eax
js 0x414e8d
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x414e8d
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
add esi, 0x14
mov word [ecx + eax*2], dx
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x414ce7
mov eax, dword [eax - 0xc]
push eax
push esi
call fcn.00402820
mov ebx, dword [esi]
push edi
call fcn.0040d1d0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x414d0a
push ecx
push eax
call fcn.0049dbfd
add esp, 8
test eax, eax
js 0x414e8d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x414e8d
mov ebx, dword [ebp + 0xc]
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414d87
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x414d46
mov eax, dword [eax - 0xc]
push eax
push esi
call fcn.00402820
mov eax, dword [esi]
mov ebx, dword [edi + 0x4e8]
call fcn.0045b080
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x414d6e
push ecx
push eax
call fcn.0049dbfd
add esp, 8
test eax, eax
js 0x414e8d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x414e8d
mov ebx, dword [ebp + 0xc]
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [ebx + 0x24]
call fcn.0040d520
mov eax, dword [ebx + 0x28]
mov esi, edi
call fcn.0040d660
mov ecx, edi
mov dword [edi + 0x6a0], 0xffffffff
call fcn.0040d6b0
mov ecx, dword [edi + 0x4e4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x134]
push 0
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xd8]
push 0
mov ecx, edi
call edx
mov esi, dword [ebp + 8]
mov dword [edi + 0x6ac], 1
mov ecx, dword [esi + 0x284]
mov eax, dword [ecx + 0x4a0]
mov edx, dword [eax + 0x14]
add ecx, 0x4a0
push 0
push edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc0]
mov ecx, edi
call edx
mov ebx, eax
cmp dword [ebx + 0x20], 0x64
jne 0x414e97
mov ecx, str.DeviceClass
call fcn.00406990
push 0x4d6454
push eax
call fcn.0049dc20
add esp, 8
test eax, eax
jne 0x414e97
mov ecx, dword [edi + 0x4e4]
mov dword [edi + 0x6a8], 1
mov dword [edi + 0x69c], 7
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 1
call edx
mov ecx, edi
call fcn.0040d6b0
mov eax, dword [esi + 4]
push 0x4b0
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 4]
push 0
push 0x1388
push 0x4b0
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00401000
mov ecx, 0x4d4094
call fcn.00406990
lea edx, [ebp - 0x10]
lea ecx, [ebx + 0x18]
push edx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x18], ecx
call fcn.004358a0
add esp, 4
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.00436d00
cmp eax, 2
jne 0x414f58
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, edi
call fcn.0040d4e0
mov ecx, dword [edi + 0x4e4]
mov dword [edi + 0x6a8], 2
mov dword [edi + 0x69c], 7
mov edx, dword [ecx]
mov eax, dword [edx + 0xd8]
push 1
call eax
mov ecx, edi
call fcn.0040d6b0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
push 0x4b0
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 4]
push 0
push 0x1388
push 0x4b0
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00402550
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
xor eax, eax
lea edx, [ebp - 0x14]
mov dword [ebx + 0x2c], ecx
lea ecx, [ebx + 4]
push edx
mov dword [ebx + 0x138], eax
mov dword [ebx + 0x13c], eax
mov dword [ebx + 0x140], eax
call fcn.004358a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push edi
push 0x40dda0
push eax
lea ecx, [ebx + 0x30]
push ecx
push 0
call fcn.004066e0
add esp, 0x18
mov dword [ebx + 0x134], eax
test eax, eax
jne 0x414fef
mov ecx, dword [edi + 0x4e4]
mov dword [edi + 0x69c], 7
mov edx, dword [ecx]
mov eax, dword [edx + 0xd8]
push 1
call eax
mov ecx, edi
call fcn.0040d6b0
mov ecx, dword [esi + 4]
push 0x4b0
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 4]
push 0
push 0x1388
push 0x4b0
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0x298]
cmp byte [eax + 0x958], 0
je 0x41500c
mov edx, dword [edi]
mov eax, dword [edx + 0xcc]
push 0
mov ecx, edi
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402550
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.00402550
jmp 0x41503d
mov esi, dword [ebp + 0xc]
push esi
call fcn.00411030
push esi
call fcn.0049c71f
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8