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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7a78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
movzx eax, word [ecx]
test ax, ax
je 0x4102ba
cmp word [ecx + 2], 0x3a
je 0x4102c3
cmp eax, 0x5c
jne 0x410362
push ecx
lea eax, [ebp - 0x18]
mov ecx, 0x4dfa88
push eax
call fcn.004074f0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4102dd
mov eax, dword [esi]
jmp 0x4102df
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ebx, dword [edi]
call fcn.0048faa4
push ebx
mov dword [edi], eax
call fcn.0048faf7
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0xffffffff
je 0x410311
test al, 0x10
jne 0x410311
mov bl, 1
jmp 0x410313
xor bl, bl
test esi, esi
je 0x4104b4
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4104b4
mov eax, dword [esi]
test eax, eax
je 0x410340
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x410357
push eax
call fcn.0049243b
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.0048f453
jmp 0x4104b1
mov eax, dword [ebp + 0xc]
mov ecx, 0x4af9b8
test eax, eax
cmovne ecx, eax
push ecx
call fcn.0048faa4
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
cmp word [edi], 0
mov esi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esi
je 0x4104a9
push 0x3b
push esi
call fcn.0049110f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4103a9
xor eax, eax
mov word [ebx], ax
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4103b0
sub ecx, edx
mov edx, dword [ebp + 0x10]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4103c5
sub edx, esi
lea esi, [ecx + 2]
sar edx, 1
add esi, edx
lea eax, [esi + esi]
push eax
call fcn.0048fb2f
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
push ecx
push 0x4b4984
push esi
push eax
mov dword [ebp - 0x14], eax
call fcn.00492202
add esp, 0x18
test ebx, ebx
je 0x41040c
mov eax, 0x3b
lea ecx, [ebx + 2]
mov word [ebx], ax
jmp 0x410411
mov ecx, 0x4af9b8
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push ebx
mov dword [ebp - 0x10], ecx
mov ecx, 0x4dfa88
push eax
call fcn.004074f0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x410431
mov eax, dword [esi]
jmp 0x410433
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410447
test al, 0x10
je 0x4104c8
push ebx
call fcn.0048faf7
add esp, 4
test esi, esi
je 0x41049c
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x410495
mov eax, dword [esi]
test eax, eax
je 0x410475
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41048c
push eax
call fcn.0049243b
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.0048f453
add esp, 4
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x10]
cmp word [esi], 0
jne 0x410393
xor bl, bl
push edi
call fcn.0048faf7
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
push dword [ebp - 0x14]
mov ebx, dword [esi]
call fcn.0048faa4
push ebx
mov dword [esi], eax
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0048c930
mov bl, 1
jmp 0x4104ab