Function at 0x404880
Capabilities:
Check if file exists

Disassembly:
push 0x670
mov eax, 0x596a81
call fcn.00410ff3
mov ebx, ecx
mov dword [ebp - 0x67c], ebx
mov esi, 0x208
lea eax, [ebp - 0x628]
push esi
push 0
push eax
call fcn.00431720
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00431720
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00431720
add esp, 0x24
lea eax, [ebp - 0x628]
mov ecx, ebx
push eax
push str.da8e8f
call fcn.00404b6d
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
push str.fe521f
call fcn.00404b6d
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
push str.0211a0
call fcn.00404b6d
call fcn.004155a2
test al, al
je 0x404920
pop eax
push edx
push edi
pop esi
push edx
push esi
push edi
push esi
push eax
push eax
pop esp
pop ebp
push edi
pop ecx
push esp
pop esp
pop esi
push ebx
call fcn.00415a37
test al, al
je 0x404939
push ebx
pop esi
pop esi
push ebp
pop edx
push ecx
pop ebx
pop eax
pop ecx
pop esp
pop esi
pop ecx
pop edx
push ebp
pop edx
push edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404b67
xor eax, eax
mov dword [ebp - 0x62c], 7
xor ebx, ebx
mov word [ebp - 0x640], ax
mov dword [ebp - 0x630], ebx
cmp word [ebp - 0x218], ax
je 0x40497f
lea eax, [ebp - 0x218]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00401f62
cmp dword [ebp - 0x630], 0
mov dword [ebp - 4], ebx
je 0x404a34
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.004174bc
mov esi, str.GDSivsddt.dll
mov byte [ebp - 4], 1
push esi
call fcn.00434fd1
add esp, 0xc
lea ecx, [ebp - 0x658]
push eax
push esi
call fcn.00401cf3
lea ecx, [ebp - 0x678]
call fcn.00402c93
cmp dword [ebp - 0x62c], 8
lea ecx, [ebp - 0x640]
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 2
cmovae ecx, dword [ebp - 0x640]
cmp dword [ebp - 0x644], 8
push ecx
cmovae eax, dword [ebp - 0x658]
lea ecx, [ebp - 0x678]
push eax
call fcn.004032b4
lea ecx, [ebp - 0x678]
call fcn.00402d88
push ebx
push 1
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], bl
call fcn.00401bfd
call fcn.004157ca
test al, al
je 0x404a54
pop edx
pop ebx
pop esi
push edi
pop edi
push ecx
pop edx
push ebp
pop eax
pop ebp
push edx
push eax
push eax
pop edx
push edi
pop esp
pop eax
push ebx
pop edi
pop edx
push edx
pop eax
push esi
call fcn.00415449
test al, al
je 0x404a77
pop esp
push ebx
push eax
pop edi
pop ecx
pop edx
push ebp
push eax
pop ecx
push edi
pop eax
pop ebx
push edi
pop ecx
push ebx
pop edi
push eax
pop ecx
push edi
pop esp
push ebx
pop edi
push edx
pop edi
push edx
pop esi
mov ecx, dword [ebp - 0x67c]
call fcn.004047de
call fcn.004158de
test al, al
je 0x404aa6
push ecx
pop esp
push eax
pop ebp
push esi
pop eax
pop esp
push eax
push esi
pop ecx
pop eax
push ebp
pop eax
pop esi
push edx
pop edi
pop ebp
push edx
push eax
pop ebx
pop edx
pop edx
push esi
push esi
pop edx
pop ebp
pop ebx
call fcn.00415923
test al, al
je 0x404ac6
pop esp
push eax
push esi
push esi
push ebp
push esi
pop eax
pop ecx
pop eax
push edi
push edi
pop ebx
push esp
pop esp
push esi
pop ecx
push esi
push esi
push ebx
pop esi
push edx
pop esp
pop eax
call fcn.0041562c
test al, al
je 0x404ae4
push ebp
push ecx
pop esp
push ecx
pop ebp
push ecx
push esp
push ecx
pop esp
pop edi
push edi
pop ebp
push edi
push esp
pop ebx
push ecx
push edi
pop ebx
pop eax
pop ebx
push ebp
lea eax, [ebp - 0x628]
push eax
call fcn.004179d3
pop ecx
call fcn.004156b6
test al, al
je 0x404b10
push eax
pop edx
pop edi
pop edi
push ebp
pop ecx
push ecx
push edi
push esp
push edi
push esi
push ebp
pop esi
pop ecx
pop esp
push esi
pop esp
push ecx
push esp
push eax
pop ecx
pop ecx
call fcn.00415785
test al, al
je 0x404b35
pop ebx
push ecx
pop edx
push ebp
push edx
pop edi
pop edi
pop esp
push ebp
pop esi
pop edx
pop ebp
pop esi
pop edx
push edi
pop ebp
push ebp
push edi
push ebp
pop edx
push ebp
push esi
pop esi
pop esi
pop ebp
push edx
push ebp
pop esp
call fcn.004156b6
test al, al
je 0x404b55
pop esi
push ebp
pop edx
pop edx
push ebp
push edi
pop eax
push ebp
pop edx
pop ecx
pop esp
push esp
pop edi
push esp
pop edx
push ebp
push esi
push edi
push edi
pop ebx
pop ebp
pop ebx
push esp
push 0
push 1
lea ecx, [ebp - 0x640]
call fcn.00401bfd
xor eax, eax
inc eax
call fcn.00410fae
ret