Function at 0x40d780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2a13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push esi
mov dword [ebp - 0x10], ecx
mov ecx, 0x4fab41
call fcn.0049af19
mov ecx, dword [ebp - 0x10]
add ecx, 0x77c
call fcn.00406390
movzx eax, al
test eax, eax
jne 0x40d880
mov ecx, dword [ebp - 0x10]
add ecx, 0x77c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x780
call fcn.00404c20
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
mov edx, dword [ebp - 0x10]
add edx, 0x780
push edx
call fcn.00403fd0
lea eax, [ebp - 0xb4]
push eax
call fcn.00407400
add esp, 8
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xb4]
call fcn.00408e70
mov cl, byte [eax]
movzx edx, cl
push edx
call fcn.00407bc0
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x788], eax
mov dword [ecx + 0x78c], edx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x7b0], 0
je 0x40d869
mov ecx, dword [ebp - 0x10]
add ecx, 0x780
call fcn.00404dc0
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x7b0]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x7b0]
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00401cd0
jmp 0x40dbb9
mov eax, 0x47
mov word [ebp - 0x3c], ax
mov ecx, 0x50
mov word [ebp - 0x3a], cx
mov edx, 0x54
mov word [ebp - 0x38], dx
mov eax, 0x43
mov word [ebp - 0x36], ax
mov ecx, 0x68
mov word [ebp - 0x34], cx
mov edx, 0x72
mov word [ebp - 0x32], dx
mov eax, 0x6f
mov word [ebp - 0x30], ax
mov ecx, 0x6d
mov word [ebp - 0x2e], cx
mov edx, 0x65
mov word [ebp - 0x2c], dx
xor eax, eax
mov word [ebp - 0x2a], ax
push ecx
mov esi, esp
mov dword [ebp - 0x70], esp
lea ecx, [ebp - 0x19]
call fcn.00402880
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x94]
call fcn.004046e0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x80]
call fcn.00404750
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
call fcn.00408f60
push eax
mov ecx, esi
call fcn.004040b0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040ce10
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.00404ab0
lea ecx, [ebp - 0x14]
call fcn.00406390
movzx edx, al
test edx, edx
jne 0x40da28
lea ecx, [ebp - 0x14]
call fcn.00404dc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40da28
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x780
call fcn.00404c20
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x79c], 0
jl 0x40d9c2
jg 0x40d9a2
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x798], 0x128c5680
jbe 0x40d9c2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x798]
mov edx, dword [edx + 0x79c]
mov dword [ecx + 0x788], eax
mov dword [ecx + 0x78c], edx
jmp 0x40d9e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x790]
mov ecx, dword [ecx + 0x794]
mov dword [eax + 0x788], edx
mov dword [eax + 0x78c], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x7b0], 0
je 0x40da14
mov ecx, dword [ebp - 0x10]
add ecx, 0x780
call fcn.00404dc0
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x7b0]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x7b0]
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404960
jmp 0x40dbb9
lea eax, [ebp - 0x18]
push eax
call fcn.00407d70
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x79c], 0
jl 0x40da88
jg 0x40da5b
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x798], 0x128c5680
jbe 0x40da88
push str.D:Program_Files_
lea ecx, [ebp - 0x18]
call fcn.00404ce0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x798]
mov edx, dword [edx + 0x79c]
mov dword [ecx + 0x788], eax
mov dword [ecx + 0x78c], edx
jmp 0x40daa6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x790]
mov ecx, dword [ecx + 0x794]
mov dword [eax + 0x788], edx
mov dword [eax + 0x78c], ecx
mov edx, 0x47
mov word [ebp - 0x54], dx
mov eax, 0x50
mov word [ebp - 0x52], ax
mov ecx, 0x54
mov word [ebp - 0x50], cx
mov edx, 0x43
mov word [ebp - 0x4e], dx
mov eax, 0x68
mov word [ebp - 0x4c], ax
mov ecx, 0x72
mov word [ebp - 0x4a], cx
mov edx, 0x6f
mov word [ebp - 0x48], dx
mov eax, 0x6d
mov word [ebp - 0x46], ax
mov ecx, 0x65
mov word [ebp - 0x44], cx
xor edx, edx
mov word [ebp - 0x42], dx
lea ecx, [ebp - 0x1a]
call fcn.00402880
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.004046e0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00404750
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x64]
call fcn.00408f60
push eax
lea ecx, [ebp - 0x18]
call fcn.00405080
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00404ab0
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x780
call fcn.00404c20
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x7b0], 0
je 0x40db9e
mov ecx, dword [ebp - 0x10]
add ecx, 0x780
call fcn.00404dc0
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x7b0]
mov eax, dword [ebp - 0x10]
mov edx, dword [edx]
mov ecx, dword [eax + 0x7b0]
mov eax, dword [edx + 0x2c]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00404960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret