Function at 0x40b770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583c3f
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x5ea6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x134], esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
xor eax, eax
mov dword [ebp - 0x150], eax
push eax
push 0x59797c
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0040e990
mov ecx, dword [ebp - 0x14c]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call fcn.00488ca0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x12d], al
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x40b83d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b82d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c125
push edx
push ecx
call fcn.0051238c
mov al, byte [ebp - 0x12d]
add esp, 8
test al, al
je 0x40ba6e
push esi
mov dword [ebp - 0x18c], esi
call fcn.0047658e
add esp, 4
mov byte [ebp - 0x188], 1
push 0
push 0x59797c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e990
mov ecx, dword [ebp - 0x14c]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.00488200
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov dword [ebp - 0x158], ecx
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40b8dc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b8cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c12a
push edx
push ecx
call fcn.0051238c
mov ecx, dword [ebp - 0x158]
add esp, 8
test ecx, ecx
jne 0x40ba8b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40b8ee
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00407f10
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b917
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e990
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
cmp eax, ecx
je 0x40b947
push eax
call fcn.00556c3c
add esp, 4
mov esi, dword [ebp - 0x134]
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x40]
call fcn.00407810
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40b963
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ba5d
lea eax, [ebp - 0x148]
push eax
call fcn.00407b70
add esp, 4
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 6
jb 0x40b98d
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x12c]
call fcn.00407f10
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 7
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b9a4
sub ecx, esi
mov esi, dword [ebp - 0x148]
push ecx
push edx
mov ecx, esi
call fcn.0040e990
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x40b9d9
push eax
call fcn.00556c3c
add esp, 4
mov edi, dword [ebp - 0x134]
lea ecx, [ebp - 0xa8]
push esi
call fcn.00408000
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x40b9f9
lock inc dword [eax + 4]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], eax
push dword [ebp - 0x144]
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x160]
push eax
lea ecx, [edi + 0x10]
call fcn.00406c20
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.00408d90
push dword [ebp - 0x144]
lea eax, [ebp - 0x160]
push esi
mov esi, dword [ebp - 0x134]
push 0
push eax
lea ecx, [esi + 0x30]
call fcn.004074e0
lea ecx, [ebp - 0x148]
call fcn.00408e80
lea ecx, [ebp - 0x28]
call fcn.00408b80
push esi
call fcn.004765aa
add esp, 4
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.00512634
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 0x154], eax
test ecx, ecx
je 0x40ba65
nop word [eax + eax]
mov ecx, dword [ebp - 0x14c]
push eax
call fcn.004881e0
push eax
lea ecx, [ebp - 0x184]
call fcn.00488040
mov byte [ebp - 4], 9
call fcn.0040a770
mov ecx, eax
test ecx, ecx
je 0x40c12f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x138], eax
push 0x597944
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xa
call fcn.0040a080
test al, al
jne 0x40bb05
push 0
push 0x597944
lea ecx, [ebp - 0x138]
call fcn.0040d340
push 8
push str.relative
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040e990
push 0xfde9
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x184]
call fcn.00488b20
push dword [eax]
xor ecx, ecx
mov byte [ebp - 4], 0xd
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.0040ea80
mov edx, dword [ebp - 0x164]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bb90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x10
cmp edx, 0x10
jb 0x40bbc8
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bbbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c125
push edx
push ecx
call fcn.0051238c
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov edx, dword [ebp - 0x138]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bbf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x40bc1b
lea ecx, [ebp - 0x28]
call fcn.00408bd0
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
call fcn.00484c60
jmp 0x40c0f7
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov ecx, edi
mov byte [ebp - 4], 0x12
call fcn.0040eb90
cmp word [eax], 0x5c
jne 0x40bce1
xor eax, eax
mov byte [ebp - 4], 0x13
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x13c]
or eax, 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x150], eax
mov eax, dword [edi + 0x10]
add eax, esi
mov dword [ebp - 0x2c], 7
push eax
call fcn.0040f870
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40bc89
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040e810
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040e810
lea ecx, [ebp - 0x58]
call fcn.00408bd0
movups xmm0, xmmword [ebp - 0x40]
xor eax, eax
and dword [ebp - 0x13c], 0xfffffffe
mov word [ebp - 0x40], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
jmp 0x40bd41
push 0x597940
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.004065b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00406550
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x40bd39
mov ecx, eax
call fcn.00408bd0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x70]
call fcn.00408bd0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call fcn.00408bd0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00407f10
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd84
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.0040e990
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x17
cmp eax, ecx
je 0x40bdb7
push eax
call fcn.00556c3c
add esp, 4
mov esi, dword [ebp - 0x134]
lea edx, [ebp - 0x88]
push edx
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x150], eax
mov ecx, dword [eax + 4]
push ecx
mov dword [ebp - 0x168], ecx
lea ecx, [esi + 0x40]
push eax
call fcn.004067b0
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [esi + 0x44]
sub ecx, eax
cmp ecx, 1
jb 0x40c11b
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x150]
mov dword [esi + 0x44], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x168]
mov dword [eax], edx
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40be51
lea ecx, [ebp - 0x88]
call fcn.00408b80
lea ecx, [ebp - 0x58]
call fcn.00408bd0
lea ecx, [ebp - 0x28]
call fcn.00408bd0
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
call fcn.00484c60
jmp 0x40c0f7
lea eax, [ebp - 0x160]
push eax
call fcn.00407b70
add esp, 4
mov edi, dword [ebp - 0x160]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x18
cmp edi, eax
je 0x40be8a
cmp dword [ebp - 0x74], 0x10
mov ecx, edi
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.0040e990
push 0
push 0x59797c
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.0040e990
push 3
push 0x597e10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040e990
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x184]
call fcn.00488a80
mov esi, eax
lea eax, [edi + 0x18]
cmp eax, esi
je 0x40bf20
mov ecx, eax
call fcn.00408b80
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x18], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x28], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0xa0]
call fcn.00408b80
lea ecx, [ebp - 0x40]
call fcn.00408b80
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x18
call fcn.00408b80
call fcn.0040a770
mov ecx, eax
test ecx, ecx
je 0x40c12f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x140], eax
push 0x597944
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0x1b
call fcn.0040a080
test al, al
jne 0x40bf88
push 0
push 0x597944
lea ecx, [ebp - 0x140]
call fcn.0040d340
push 4
push str.sign
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.0040e990
push 0xfde9
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x184]
call fcn.00488b20
push dword [eax]
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 0x1e
call fcn.0040ea80
mov edx, dword [ebp - 0x16c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bfff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.00408b80
mov edx, dword [ebp - 0x140]
or eax, 0xffffffff
mov byte [ebp - 4], 0x18
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c029
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
lea ecx, [ebp - 0xa8]
call fcn.00408000
mov esi, dword [ebp - 0x15c]
test esi, esi
je 0x40c043
lock inc dword [esi + 4]
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], esi
push dword [ebp - 0x144]
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x194]
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ecx + 0x10]
call fcn.00406c20
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x18
call fcn.00408d90
push dword [ebp - 0x144]
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x19c]
push edi
push 0
push eax
lea ecx, [ecx + 0x30]
call fcn.004074e0
test esi, esi
je 0x40c0c7
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x40c0c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x40c0c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x88]
call fcn.00408b80
lea ecx, [ebp - 0x58]
call fcn.00408bd0
lea ecx, [ebp - 0x28]
call fcn.00408bd0
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
call fcn.00484c60
mov edi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x154]
inc eax
mov dword [ebp - 0x154], eax
cmp eax, dword [ebp - 0x158]
jb 0x40baa0
mov esi, dword [ebp - 0x134]
jmp 0x40ba65
push str.list_T__too_long
call fcn.0047549f
call fcn.00556b30
call fcn.00556b30
push 0x80004005
call fcn.00409c80
int3