Function at 0x408770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43f568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.00401a70
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], ebx
call fcn.00404380
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jl 0x408bf7
push str..camrec
push ecx
call fcn.00419e78
add esp, 8
cmp eax, ebx
je 0x408bf7
mov ecx, dword [esp + 0x10]
sub eax, ecx
cmp eax, 0xffffffff
je 0x408bf7
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jl 0x408847
push str.tscrec:__
push ecx
call fcn.00419e78
add esp, 8
cmp eax, ebx
je 0x408847
mov ecx, dword [esp + 0x10]
sub eax, ecx
cmp eax, 0xffffffff
je 0x408847
mov eax, dword [ecx - 0xc]
add eax, 0xfffffff7
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.004017e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 1
call fcn.00401950
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x60], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408847
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.00429587
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push 0x21
push eax
mov byte [esp + 0x68], 2
call fcn.0041aab8
add esp, 8
cmp eax, ebx
je 0x408bd4
sub eax, dword [esp + 0x10]
mov esi, eax
cmp esi, 0xffffffff
je 0x408bd4
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401840
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 3
call fcn.004017e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 4
call fcn.00401950
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.00429587
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x20]
push eax
push ebp
mov byte [esp + 0x6c], 5
call fcn.00407fc0
mov edi, dword [esp + 0x28]
mov eax, dword [edi - 0xc]
add esp, 0xc
cmp eax, ebx
je 0x408a12
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x408b96
lea ecx, [esp + 0x38]
call fcn.00409950
push 0x20
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ebp
mov byte [esp + 0x6c], 6
call fcn.00407e60
lea ecx, [esp + 0x40]
call fcn.00409b50
cmp eax, ebx
je 0x408b88
mov dword [esp + 0x24], 0x442bb0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x24]
push ecx
mov bl, 7
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], bl
call fcn.00409d30
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x4089f6
nop
test esi, esi
jl 0x408b83
cmp esi, eax
jge 0x408b83
mov edx, dword [esp + 0x28]
mov eax, dword [edx + esi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407cc0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00419d2d
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x60], bl
je 0x408aae
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4089ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x408990
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 6
call fcn.00407610
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 5
call fcn.00409ac0
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 6
call fcn.00407610
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 5
call fcn.00409ac0
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
jmp fcn.00427997
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 5
call fcn.00409ac0
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x10]
setne cl
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x58]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret