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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6106cd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x69301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x10]
call fcn.00402f50
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x402591
mov edx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402980
add esp, 4
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004026e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00402dd0
mov byte [ebp - 4], 3
mov edi, 2
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push str._s_s___d__s
push eax
call fcn.00404970
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402458
inc edi
cmp edi, 0x2710
jle 0x402426
test esi, esi
je 0x4025db
mov eax, dword [ebp - 0x10]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x402489
test cx, cx
je 0x402485
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x402489
add eax, 4
add esi, 4
test cx, cx
jne 0x402463
xor eax, eax
jmp 0x40248e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402537
call fcn.004a6e1d
test eax, eax
je 0x4025db
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, dword [ebp - 0x20]
add eax, 0x10
mov dword [esi], eax
push 0x65885c
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00404c40
test al, al
jne 0x4024d4
push 0
push 0x65885c
mov ecx, esi
call fcn.00405050
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4024f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402513
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4025a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4025a8
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402555
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402573
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402591
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404800
mov esi, dword [ebp - 0x20]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4025c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405000
int3