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

Disassembly:
push 0xffffffffffffffff
push 0x4e12f7
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x48c964
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48c964
push 0x208
lea eax, [esp + 0x5a]
push ebx
push eax
mov word [esp + 0x60], bx
call fcn.004be320
add esp, 0xc
push 0x104
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.004be214
add esp, 0xc
test eax, eax
jne 0x48c7bd
mov edx, esi
lea eax, [esp + 0x38]
call fcn.004036c0
mov dword [esp + 0x270], ebx
mov eax, dword [0x5158e4]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.0048cea0
mov ecx, 0x5158e0
mov esi, eax
call fcn.0048cf40
mov dword [edi], esi
mov edx, dword [esi + 4]
mov dword [edx], esi
cmp dword [esp + 0x50], 8
jb 0x48c964
mov eax, dword [esp + 0x3c]
push eax
call fcn.004b84d9
add esp, 4
jmp 0x48c964
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x48c803
lea edx, [esp + 0x54]
lea eax, [esp + 0x38]
call fcn.004036c0
lea eax, [esp + 0x38]
mov ebx, 0x5158e0
mov dword [esp + 0x270], 1
call fcn.0048ce70
lea esi, [esp + 0x38]
call fcn.00416cb0
jmp 0x48c964
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x58]
call fcn.004099e0
lea edi, [esp + 0x14]
mov dword [esp + 0x270], 2
call fcn.00408010
xor esi, esi
jmp 0x48c830
mov ecx, dword [esi + 0x510d9c]
lea eax, [esp + 0x18]
push eax
call fcn.004099e0
lea edi, [esp + 0x18]
mov byte [esp + 0x270], 3
call fcn.00408010
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x48c882
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x48c882
push eax
push ecx
call fcn.004b9c1e
add esp, 8
cmp eax, ebx
je 0x48c87e
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, ebx
jg 0x48c98d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x270], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c8a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, 0x38
jb 0x48c830
lea eax, [esp + 0x54]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x48c8c6
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
push ecx
lea esi, [esp + 0x24]
call fcn.004024d0
mov byte [esp + 0x270], 4
mov eax, dword [0x5158e4]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
mov edx, esi
push edx
push ecx
push eax
call fcn.0048cea0
mov ecx, 0x5158e0
mov esi, eax
call fcn.0048cf40
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [esp + 0x34], 8
jb 0x48c928
mov edx, dword [esp + 0x20]
push edx
call fcn.004b84d9
add esp, 4
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c964
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004b84de
add esp, 0x264
ret
mov byte [esp + 0x270], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c9b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c9e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x48c966