Function at 0x40ba80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5640e8
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5cb008]
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 ebx, ecx
mov dword [ebp - 0x128], ebx
lea eax, [ebx + 0x10]
mov dword [ebp - 0x124], 0
push eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041a84c
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00423d19
mov byte [ebp - 4], 1
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00423caf
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0041aae3
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00419cdc
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041aae3
add esp, 0x30
mov byte [ebp - 4], 5
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x40bcac
cmp dword [esi + 0x14], 0x10
jb 0x40bb7a
mov edx, dword [esi]
jmp 0x40bb7c
mov edx, esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x40bb97
xor ecx, ecx
jmp 0x40bba9
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bba0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408070
cmp dword [ebp - 0x8c], 0x10
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0xa0]
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x90]
cmovae edx, ebx
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0x14]
test edi, edi
je 0x40bc43
sub edi, 4
jb 0x40bc01
nop
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40bc06
add edx, 4
add ecx, 4
sub edi, 4
jae 0x40bbf0
cmp edi, 0xfffffffc
je 0x40bc3a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x40bc33
cmp edi, 0xfffffffd
je 0x40bc3a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x40bc33
cmp edi, 0xfffffffe
je 0x40bc3a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x40bc33
cmp edi, 0xffffffff
je 0x40bc3a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x40bc3a
sbb eax, eax
or eax, 1
jmp 0x40bc3c
xor eax, eax
test eax, eax
jne 0x40bc56
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x18]
cmp edx, ecx
jb 0x40bc56
jbe 0x40bda1
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40bc9a
inc eax
cmp eax, 0x1000
jb 0x40bc91
test byte [ebp - 0x28], 0x1f
jne 0x40bdb4
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x40bdb4
sub ebx, eax
cmp ebx, 4
jb 0x40bdb4
cmp ebx, 0x23
ja 0x40bdb4
mov ebx, eax
push ebx
call fcn.00414f7d
add esp, 4
mov eax, dword [ebp - 0x128]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x40bb70
xor esi, esi
lea ecx, [ebp - 0xa0]
call fcn.00407ad0
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x40bcd7
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00408470
xor eax, eax
mov dword [ebp - 0xa4], 7
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.00407ad0
mov eax, dword [ebp - 0xd4]
cmp eax, 8
jb 0x40bd1d
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.00408470
xor eax, eax
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xd8], 0
cmp eax, 8
jb 0x40bd55
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00408470
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x78], 0
cmp eax, 8
jb 0x40bd81
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408470
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.00414f82
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x10
jb 0x40bde6
inc eax
cmp eax, 0x1000
jb 0x40bddd
test byte [ebp - 0x28], 0x1f
je 0x40bdb9
call fcn.00433a82
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x40bdc5
call fcn.00433a82
sub ebx, eax
cmp ebx, 4
jae 0x40bdd1
call fcn.00433a82
cmp ebx, 0x23
jbe 0x40bddb
call fcn.00433a82
mov ebx, eax
push ebx
call fcn.00414f7d
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40be03
mov eax, dword [ecx]
jmp 0x40be05
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x88]
push edx
push eax
call fcn.00407e50
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x58]
mov ebx, dword [ebp - 0x128]
mov ecx, ebx
push esi
push eax
call fcn.0040b5d0
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 6
je 0x40beca
cmp dword [ebx + 0xb0], 0
je 0x40be69
push 1
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
lea ecx, [ebx + 0x10]
mov eax, esp
push ecx
push eax
call fcn.0041a84c
mov ecx, dword [ebx + 0xb0]
add esp, 8
push esi
call fcn.0040a170
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c1f4
lea eax, [ebp - 0x124]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40bea7
mov eax, dword [ecx]
jmp 0x40bea9
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x58]
push edx
push eax
call fcn.00407e50
call fcn.0041d95b
add esp, 0x1c
mov dword [ebx + 0x64], eax
jmp 0x40c1f4
mov ecx, dword [ebp - 0x12c]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.00408170
push 0xffffffffffffffff
mov byte [ebp - 4], 7
lea eax, [ebp - 0x70]
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408170
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 8
push str.19290311114229613900512721411717
push eax
call fcn.0041e9a5
mov esi, eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 9
push str.58477523066419411364496655125430
push eax
call fcn.0041e9a5
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
call fcn.0041a53a
mov byte [ebp - 4], 9
add esp, 0x1c
mov eax, dword [ebp - 0xec]
cmp eax, 0x10
jb 0x40bfa7
mov ecx, dword [ebp - 0x100]
inc eax
cmp eax, 0x1000
jb 0x40bf9e
test cl, 0x1f
je 0x40bf7a
call fcn.00433a82
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40bf86
call fcn.00433a82
sub ecx, eax
cmp ecx, 4
jae 0x40bf92
call fcn.00433a82
cmp ecx, 0x23
jbe 0x40bf9c
call fcn.00433a82
mov ecx, eax
push ecx
call fcn.00414f7d
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0x100], 0
cmp eax, 0x10
jb 0x40c016
mov ecx, dword [ebp - 0x118]
inc eax
cmp eax, 0x1000
jb 0x40c00d
test cl, 0x1f
je 0x40bfe9
call fcn.00433a82
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40bff5
call fcn.00433a82
sub ecx, eax
cmp ecx, 4
jae 0x40c001
call fcn.00433a82
cmp ecx, 0x23
jbe 0x40c00b
call fcn.00433a82
mov ecx, eax
push ecx
call fcn.00414f7d
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x28]
mov esi, edi
cmp dword [ebp - 0x5c], 0x10
mov ebx, dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
je 0x40c092
sub esi, 4
jb 0x40c053
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40c058
add edx, 4
add ecx, 4
sub esi, 4
jae 0x40c042
cmp esi, 0xfffffffc
je 0x40c08c
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x40c085
cmp esi, 0xfffffffd
je 0x40c08c
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x40c085
cmp esi, 0xfffffffe
je 0x40c08c
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x40c085
cmp esi, 0xffffffff
je 0x40c08c
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x40c08c
sbb eax, eax
or eax, 1
jmp 0x40c08e
xor eax, eax
test eax, eax
jne 0x40c0d1
cmp ebx, edi
jb 0x40c0d1
ja 0x40c0d1
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40c0b5
mov eax, dword [ecx]
jmp 0x40c0b7
mov eax, ecx
push 0xffffffffffffffff
push 0
push dword [ebp - 0x12c]
mov byte [eax], 0
call fcn.00408170
mov ebx, dword [ebp - 0x128]
jmp 0x40c146
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40c0ee
mov eax, dword [ecx]
jmp 0x40c0f0
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00408170
mov ebx, dword [ebp - 0x128]
mov ecx, ebx
call fcn.0040b770
mov dword [ebp - 0x124], eax
test eax, eax
jne 0x40c197
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 0x10
jb 0x40c134
mov eax, dword [ecx]
jmp 0x40c136
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00408170
mov ecx, ebx
call fcn.0040b770
mov dword [ebp - 0x124], eax
test eax, eax
jne 0x40c197
cmp dword [ebp - 0xbc], 0x10
lea esi, [ebp - 0xd0]
mov eax, dword [0x5da178]
cmovae esi, dword [ebp - 0xd0]
test eax, eax
jne 0x40c193
push 0xac
call fcn.00414f98
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, eax
call fcn.0040fc80
mov dword [0x5da178], eax
push 1
jmp 0x40c1d5
cmp dword [ebp - 0xbc], 0x10
lea esi, [ebp - 0xd0]
mov eax, dword [0x5da178]
cmovae esi, dword [ebp - 0xd0]
test eax, eax
jne 0x40c1d3
push 0xac
call fcn.00414f98
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, eax
call fcn.0040fc80
mov dword [0x5da178], eax
push 2
push esi
sub esp, 8
mov ecx, eax
call fcn.00410600
lea ecx, [ebp - 0x28]
call fcn.00407ad0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00407ad0
cmp dword [ebp - 0x124], 0
jne 0x40c204
xor esi, esi
jmp 0x40c296
lea ecx, [ebp - 0x119]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
call fcn.00406b60
lea eax, [ebx + 0x40]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x124]
lea ecx, [ebp - 0x119]
push dword [ebx + 0x64]
call fcn.00424db2
mov ecx, dword [ebp - 0x130]
test ecx, ecx
je 0x40c270
mov edx, dword [ebp - 0x134]
test edx, edx
je 0x40c270
sub esp, 0x18
call fcn.0040dea0
add esp, 0x18
mov esi, eax
jmp 0x40c28b
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0x89
call fcn.0042460a
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x119]
call fcn.00406a10
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40c2ab
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408470
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x40bcae