Function at 0x40dd49
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfb50
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x509018]
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 fcn.004af490
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 0x4f7348
call fcn.00403110
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004af6a0
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40dda6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df48
push edx
push ecx
call fcn.004bda5c
add esp, 8
push 4
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x4f9044
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00403110
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004af6a0
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40de1a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df4d
push edx
push ecx
call fcn.004bda5c
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 0x40de3c
push ecx
lea ecx, [ebp - 0x28]
call fcn.004af760
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 fcn.00403110
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004af6a0
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40deb0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dea6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df52
push edx
push ecx
call fcn.004bda5c
add esp, 8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea esi, [edi + 8]
cmovae ecx, dword [ebp - 0x28]
mov edx, esi
push ecx
call fcn.004ab7b0
lea ecx, [edi + 0x20]
add esp, 4
cmp dword [ecx], 0
jne 0x40def1
cmp dword [esi + 0x14], 0x10
jb 0x40ded9
mov esi, dword [esi]
push 1
push esi
call fcn.0040ef60
test al, al
jne 0x40def1
push dword [edi + 0x24]
call fcn.0040dba0
mov esi, eax
jmp 0x40def3
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40df29
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40df1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df57
push edx
push ecx
call fcn.004bda5c
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.004bda16
mov esp, ebp
pop ebp
ret 4
call fcn.004c59a2
call fcn.004c59a2
call fcn.004c59a2
call fcn.004c59a2
int3