Function at 0x416500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497270
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4bc040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
lea ecx, [eax + 0x2c]
call main
add esp, 4
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
push 5
push 0x4b127c
call main
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call main
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4165c6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4165bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416767
push edx
push ecx
call main
add esp, 8
push 4
xor eax, eax
mov dword [ebp - 0x30], 0
push str.caps
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call main
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call main
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41663a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416630
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41676c
push edx
push ecx
call main
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41665c
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040df10
add esp, 4
push 8
xor eax, eax
mov dword [ebp - 0x30], 0
push str.hdpim.db
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call main
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call main
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4166d0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4166c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416771
push edx
push ecx
call main
add esp, 8
lea esi, [edi + 8]
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call main
lea ecx, [edi + 0x20]
add esp, 4
cmp dword [ecx], 0
jne 0x416710
cmp dword [esi + 0x14], 0x10
jb 0x4166f1
mov esi, dword [esi]
xor eax, eax
cmp dword [ebp + 8], eax
setne al
push eax
push esi
call main
test al, al
jne 0x416710
push dword [edi + 0x24]
call main
mov esi, eax
jmp 0x416712
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x416748
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41673e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416776
push edx
push ecx
call main
add esp, 8
mov eax, esi
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.00475cfa
mov esp, ebp
pop ebp
ret 4
call fcn.0047b37a
call fcn.0047b37a
call fcn.0047b37a
call fcn.0047b37a
int3