Function at 0x414980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5750d6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xdc], esi
mov edi, dword [ebp + 0x24]
lea ebx, [esi + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp ebx, eax
je 0x4149d6
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004091c0
lea eax, [esi + 0x64]
mov dword [ebp - 0xd8], eax
cmp eax, ebx
je 0x4149ef
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.004091c0
lea eax, [ebp - 0x28]
push str.71014254046657390858154269443030
push eax
call fcn.00436a39
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push str.11523310100662004206465130071965
push eax
call fcn.00436a39
push esi
push eax
push dword [ebp - 0xd8]
mov byte [ebp - 4], 2
call fcn.00435fbd
mov eax, dword [ebp - 0x5c]
add esp, 0x1c
cmp eax, 8
jb 0x414a3a
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x414a66
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0xbc], 7
push eax
push 0x5d78a0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.004089f0
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x5d78a0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.004089f0
cmp dword [ebx + 0x14], 8
mov byte [ebp - 4], 4
jb 0x414ad4
mov eax, dword [ebx]
jmp 0x414ad6
mov eax, ebx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004371c9
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043715f
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x88]
cmp eax, esi
je 0x414b4f
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x414b2c
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0x74], 7
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.0040b910
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x414b68
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409050
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00436506
push 0
call fcn.00447e8e
mov dword [ebp - 0xe0], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xa0]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x414bef
mov eax, dword [ecx]
jmp 0x414bf1
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push ebx
mov word [eax], dx
call fcn.004091c0
push dword [ebp + 8]
mov esi, dword [ebp - 0xdc]
mov ecx, esi
call fcn.00415410
test al, al
je 0x414db0
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd8], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.00443ae4
add eax, dword [esi]
add esp, 4
cmp eax, dword [ebp - 0xe0]
jl 0x414c67
lea eax, [ebp - 0xb8]
cmp edi, eax
je 0x414d88
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004091c0
jmp 0x414d88
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00436506
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x414c80
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042f2b9
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.0040b720
lea ecx, [ebp - 0x28]
call fcn.00408680
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00408720
cmp dword [ebp - 0x48], 0
jne 0x414d07
lea eax, [esi + 0x64]
push eax
push ebx
call fcn.00414700
add esp, 8
test al, al
je 0x414d07
lea eax, [esi + 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00436506
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x414cdd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042f2b9
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.0040b720
lea ecx, [ebp - 0x28]
call fcn.00408680
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00408720
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004146c0
add esp, 8
test al, al
je 0x414db0
lea eax, [ebp - 0xb8]
cmp edi, eax
je 0x414d38
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004091c0
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xe4], esp
push eax
call fcn.0040b7a0
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xe0], esp
mov ecx, esp
push eax
call fcn.0040b7a0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push ebx
call fcn.0040b7a0
mov eax, dword [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 9
call fcn.00415940
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004158c0
mov ecx, eax
call fcn.004237e0
mov esi, 1
jmp 0x41502e
cmp dword [ebp + 0x28], 0
jne 0x414dc7
push 0x5d78a0
mov ecx, edi
call fcn.004089a0
jmp 0x41502c
cmp dword [edi + 0x10], 0
jne 0x414e7a
mov eax, dword [ebp + 8]
test eax, eax
je 0x414e1e
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x414de3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004373d6
add esp, 8
mov ecx, edi
push eax
call fcn.0040b720
lea ecx, [ebp - 0x28]
call fcn.00408680
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004372a4
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x414e62
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x414e29
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004373d6
add esp, 8
mov ecx, edi
push eax
call fcn.0040b720
lea ecx, [ebp - 0x28]
call fcn.00408680
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004372a4
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0040bab0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00408680
cmp dword [edi + 0x14], 8
jb 0x414e84
mov eax, dword [edi]
jmp 0x414e86
mov eax, edi
push eax
call fcn.00436a7e
lea eax, [esi + 0x64]
push ebx
push eax
call fcn.004146c0
add esp, 0xc
mov ecx, esi
push edi
test al, al
jne 0x414eb9
push 0
call fcn.00415110
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x414ec9
push edi
mov ecx, esi
push 1
call fcn.00415110
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [edi + 0x14], 8
jb 0x414ed3
mov eax, dword [edi]
jmp 0x414ed5
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41500e
cmp byte [ebp - 0xd1], 0
je 0x41500e
cmp dword [ebp - 0xd8], 0
lea eax, [ebp - 0x40]
jne 0x414f01
push 2
jmp 0x414f03
push 3
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004158c0
mov ecx, eax
call fcn.004237e0
cmp dword [ebp - 0x48], 0
jne 0x414fc6
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00436506
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x10
jb 0x414f3f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042f2b9
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.0040b720
lea ecx, [ebp - 0x28]
call fcn.00408680
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00408720
cmp dword [ebp - 0x48], 0
jne 0x414fc6
lea eax, [esi + 0x64]
push eax
push ebx
call fcn.00414700
add esp, 8
test al, al
je 0x414fc6
lea eax, [esi + 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00436506
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x414f9c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042f2b9
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.0040b720
lea ecx, [ebp - 0x28]
call fcn.00408680
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00408720
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe4], esp
push edi
call fcn.0040b7a0
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x58]
mov dword [ebp - 0xe0], esp
mov ecx, esp
push eax
call fcn.0040b7a0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push ebx
call fcn.0040b7a0
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00415940
jmp 0x41502c
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004158c0
mov ecx, eax
call fcn.004237e0
xor esi, esi
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x415043
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x415075
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x90], 0
cmp eax, 0x10
jb 0x4150a7
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004090b0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00408680
lea ecx, [ebp - 0xb8]
call fcn.00408680
lea ecx, [ebp - 0xd0]
call fcn.00408680
lea ecx, [ebp + 0xc]
call fcn.00408680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004273c3
mov esp, ebp
pop ebp
ret 0x24