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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5859c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48a7ce
mov eax, dword [edi + 0x74]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x34], bx
call fcn.004024c0
mov eax, dword [edi + 0x5c]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x48a564
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x48a56e
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.0055054c
add esp, 8
test eax, eax
je 0x48a726
mov eax, dword [edi + 0x5c]
cmp eax, ebx
jne 0x48a58a
lea eax, [edi + 0x60]
push 1
push eax
call fcn.0045d490
mov eax, dword [edi + 0x5c]
add esp, 8
cmp eax, ebx
jne 0x48a59f
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x48a5a9
lea ecx, [ebp - 0x34]
push 1
push eax
push ecx
call fcn.0045d2e0
add esp, 0xc
cmp eax, ebx
jne 0x48a726
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x1c], bx
mov eax, dword [edi + 0x5c]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x48a5d5
lea eax, [edi + 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402b60
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x48a5e8
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.0054e65e
add esp, 8
cmp eax, ebx
je 0x48a6dd
add eax, 2
mov word [eax], bx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x48a60b
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0045d550
add esp, 8
cmp eax, ebx
jne 0x48a6dd
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x48a628
lea eax, [ebp - 0x1c]
add eax, 6
push 0x5c
push eax
call fcn.0054e48b
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x48a6b9
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x48a646
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.00402b60
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, ebx
jne 0x48a667
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x48a671
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], bx
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x48a685
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.0045d550
add esp, 8
cmp eax, ebx
jne 0x48a6f9
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x48a69e
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.0045d660
add esp, 8
cmp eax, ebx
jne 0x48a6f9
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [edi + 0x5c]
cmp eax, ebx
jne 0x48a6c3
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x48a6cd
lea ecx, [ebp - 0x34]
push 1
push eax
push ecx
call fcn.0045d2e0
add esp, 0xc
cmp eax, ebx
jne 0x48a71a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00401070
jmp 0x48a7ce
add esi, 2
push 0x5c
push esi
call fcn.0054e48b
add esp, 8
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00401070
jmp 0x48a638
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 0x514]
jge 0x48a749
mov edx, dword [edx + 0x510]
cmp dword [edx + eax*8], esi
lea edx, [edx + eax*8]
jne 0x48a7ac
mov ecx, dword [edx + 4]
cmp ecx, ebx
jne 0x48a763
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x48a774
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0048a840
mov ecx, eax
cmp ecx, ebx
je 0x48a774
push 3
mov dword [ecx + 0xcc], 1
call fcn.00522180
mov eax, dword [edi + 0x5c]
cmp eax, ebx
jne 0x48a77e
lea eax, [edi + 0x60]
push ebx
push ebx
push eax
call fcn.00524f00
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00401070
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
inc eax
jmp 0x48a72d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8