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

Disassembly:
push 0xffffffffffffffff
push 0x4e1297
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 0x48c824
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48c824
push 0x208
lea eax, [esp + 0x5a]
push ebx
push eax
mov word [esp + 0x60], bx
call fcn.004be240
add esp, 0xc
push 0x104
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.004be134
add esp, 0xc
test eax, eax
jne 0x48c67d
mov edx, esi
lea eax, [esp + 0x38]
call fcn.00403710
mov dword [esp + 0x270], ebx
mov eax, dword [0x515904]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.0048a1f0
mov ecx, 0x515900
mov esi, eax
call fcn.0048ce00
mov dword [edi], esi
mov edx, dword [esi + 4]
mov dword [edx], esi
cmp dword [esp + 0x50], 8
jb 0x48c824
mov eax, dword [esp + 0x3c]
push eax
call fcn.004b83e9
add esp, 4
jmp 0x48c824
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x48c6c3
lea edx, [esp + 0x54]
lea eax, [esp + 0x38]
call fcn.00403710
lea eax, [esp + 0x38]
mov ebx, 0x515900
mov dword [esp + 0x270], 1
call fcn.0048cd50
lea esi, [esp + 0x38]
call fcn.0040c0b0
jmp 0x48c824
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x58]
call fcn.00409c00
lea edi, [esp + 0x14]
mov dword [esp + 0x270], 2
call fcn.00408100
xor esi, esi
jmp 0x48c6f0
mov ecx, dword [esi + 0x510d9c]
lea eax, [esp + 0x18]
push eax
call fcn.00409c00
lea edi, [esp + 0x18]
mov byte [esp + 0x270], 3
call fcn.00408100
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x48c742
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x48c742
push eax
push ecx
call fcn.004b9ad9
add esp, 8
cmp eax, ebx
je 0x48c73e
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, ebx
jg 0x48c84d
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 0x48c766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, 0x38
jb 0x48c6f0
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 0x48c786
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
push ecx
lea esi, [esp + 0x24]
call fcn.00402530
mov byte [esp + 0x270], 4
mov eax, dword [0x515904]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
mov edx, esi
push edx
push ecx
push eax
call fcn.0048a1f0
mov ecx, 0x515900
mov esi, eax
call fcn.0048ce00
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [esp + 0x34], 8
jb 0x48c7e8
mov edx, dword [esp + 0x20]
push edx
call fcn.004b83e9
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 0x48c824
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.004b83ee
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 0x48c875
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 0x48c8a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x48c826