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

Disassembly:
push ebp
lea ebp, [esp - 0x80]
sub esp, 0x80
push 0xffffffffffffffff
push 0x46f46e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4901fc]
xor eax, ebp
mov dword [ebp + 0x7c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x88]
xor ecx, ecx
mov dword [ebp + 0x2c], 7
mov dword [ebp + 0x28], 0
mov word [ebp + 0x18], cx
mov dword [ebp + 0x44], 7
mov dword [ebp + 0x40], ecx
mov word [ebp + 0x30], cx
mov byte [ebp + 0x48], cl
mov dword [ebp - 4], ecx
lea ecx, [ebp + 0x18]
push eax
call fcn.0040ab80
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040aca0
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
mov al, byte [eax + 0x1c]
test al, al
jne 0x40b35b
xor bl, bl
jmp 0x40b4b0
mov ecx, dword [ebp + 0x8c]
mov edx, dword [ecx + 0x14]
cmp edx, 0x10
jb 0x40b36d
mov esi, dword [ecx]
jmp 0x40b36f
mov esi, ecx
mov eax, dword [ecx + 0x10]
add eax, esi
cmp edx, 0x10
jb 0x40b37b
mov ecx, dword [ecx]
mov byte [ebp - 0x10], 0
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00409510
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040a970
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b473
test al, 0x10
jne 0x40b473
push 0x473d58
lea ecx, [ebp]
call fcn.00401700
lea ecx, [ebp + 0x64]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp + 0x4c]
push eax
call fcn.00401180
add esp, 0xc
mov esi, eax
lea eax, [ebp + 0x64]
cmp eax, esi
je 0x40b437
mov eax, dword [ebp + 0x78]
cmp eax, 0x10
jb 0x40b41c
inc eax
lea ecx, [ebp + 0x64]
push eax
push dword [ebp + 0x64]
call fcn.00404470
push esi
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x78], 0xf
mov dword [ebp + 0x74], 0
mov byte [ebp + 0x64], 0
call fcn.00403480
mov eax, dword [ebp + 0x60]
cmp eax, 0x10
jb 0x40b44c
inc eax
lea ecx, [ebp + 0x4c]
push eax
push dword [ebp + 0x4c]
call fcn.00404470
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x60], 0xf
mov dword [ebp + 0x5c], 0
mov byte [ebp + 0x4c], 0
cmp eax, 0x10
jb 0x40b473
inc eax
lea ecx, [ebp]
push eax
push dword [ebp]
call fcn.00404470
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040a8b0
mov ecx, dword [ebp + 0x78]
mov bl, al
cmp ecx, 0x10
jb 0x40b496
inc ecx
push ecx
push dword [ebp + 0x64]
lea ecx, [ebp + 0x64]
call fcn.00404470
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0x78], 0xf
mov dword [ebp + 0x74], 0
mov byte [ebp + 0x64], 0
call fcn.0040c8d0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x40b4d8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40b4d8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40b4d8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp + 0x18]
call fcn.00409f90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7c]
xor ecx, ebp
call fcn.00439740
lea esp, [ebp + 0x80]
pop ebp
ret