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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
push ebx
mov ebx, ecx
mov ecx, dword [0x6fcc38]
push esi
push edi
mov dword [ebp - 0x14], ebx
test ecx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
je 0x4863db
mov eax, dword [ebp + 8]
push eax
call fcn.004bfa10
mov esi, eax
test esi, esi
je 0x4863db
mov al, byte [esi + 0x1c]
test al, al
je 0x48623d
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4861e2
lea eax, [esi + 0x14]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x48623d
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4861f9
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48623d
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x50], 0x3c
test eax, eax
mov dword [ebp - 0x4c], 0x40
jne 0x486229
lea eax, [esi + 0x14]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x40], eax
push ecx
mov dword [ebp - 0x34], 1
call dword [0x6fc2d0]
mov al, byte [esi + 0x1d]
test al, al
je 0x4862cd
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6fc418
call fcn.00622df8
push 1
lea ecx, [ebp - 0x1e8]
call fcn.00535e40
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
call fcn.006226c5
cmp eax, 1
jne 0x48628d
mov ecx, ebx
call fcn.004709d0
mov ecx, dword [ebx + 0x14c]
call fcn.0043c780
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 5
call fcn.00622d8a
mov edi, 0x657cdc
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x148], edi
mov byte [ebp - 4], 2
call fcn.00620e6c
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 0
call fcn.00622306
jmp 0x4862d2
mov edi, 0x657cdc
mov al, byte [esi + 0x1f]
test al, al
je 0x486382
mov ecx, ebx
call fcn.004709d0
push 0
mov ecx, ebx
call fcn.006234df
mov edx, dword [0x6fcc54]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x486310
mov eax, dword [0x6fcc54]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6fc418
call fcn.00622df8
push 3
lea ecx, [ebp - 0x11c]
call fcn.00535e40
mov edx, dword [esi + 0x44]
xor ecx, ecx
mov cl, byte [esi + 0x20]
mov byte [ebp - 4], 6
mov dword [ebp - 0xc0], ecx
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0xbc], edx
call fcn.006226c5
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
call fcn.00622d8a
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 7
call fcn.00620e6c
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0
call fcn.00622306
mov al, byte [esi + 0x1e]
test al, al
je 0x4863db
xor bl, bl
xor edi, edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x1cc]
cmp edi, dword [eax + 8]
jge 0x4863d2
mov edx, dword [eax + 4]
mov ecx, edi
shl ecx, 4
mov esi, dword [edx + ecx]
cmp dword [esi + 0x8fc], 1
jne 0x4863c1
mov eax, dword [esi + 8]
test eax, eax
je 0x4863bf
mov ecx, esi
call fcn.005d2130
jmp 0x4863c1
mov bl, 1
mov eax, dword [esi + 8]
test eax, eax
je 0x4863cf
mov dword [esi + 8], 0
inc edi
jmp 0x48638d
test bl, bl
jne 0x4863db
call fcn.0046e390
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4