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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499656
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4be4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
jmp 0x48a650
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a650
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402680
cmp dword [ebp - 0x234], 8
lea edi, [ebp - 0x248]
mov ebx, dword [ebp - 0x238]
cmovae edi, dword [ebp - 0x248]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x48a74c
push 0x100
lea eax, [ebp - 0x360]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x4a12ec
mov edx, 0x100
jmp 0x48a6c0
movzx eax, word [ecx]
cmp ax, dx
jae 0x48a70b
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x360], 1
cmp ecx, 0x4a12f0
jne 0x48a6c0
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
lea esp, [esp]
movzx eax, word [ecx]
cmp ax, dx
jae 0x48a702
cmp byte [ebp + eax - 0x360], 0
jne 0x48a746
cmp ecx, edi
je 0x48a74c
sub ecx, 2
jmp 0x48a6f0
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
lea esp, [esp]
movzx esi, word [ecx]
mov edx, 2
mov eax, 0x4a12ec
lea ecx, [ecx]
cmp word [eax], si
je 0x48a746
add eax, 2
sub edx, 1
jne 0x48a730
cmp ecx, edi
je 0x48a74c
sub ecx, 2
jmp 0x48a720
sub ecx, edi
sar ecx, 1
jmp 0x48a74f
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x250], 0
cmp ebx, ecx
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x24c], 7
cmovb ecx, ebx
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x260]
push eax
call fcn.00402680
push 0xc
push str.ksolite.dll
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.00402410
mov edx, eax
mov ecx, dword [edx]
mov dword [ebp - 0x230], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x228], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x224], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x220], ecx
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x48a834
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48a82a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48a82a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48a85c
test al, 0x10
jne 0x48a85c
mov bl, 1
jmp 0x48a85e
xor bl, bl
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x48a89a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48a890
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48a8e9
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x48a8f9
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48a8ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48a8ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cbb4
mov esp, ebp
pop ebp
ret