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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492ce6
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4b74b0]
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 0x477130
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477130
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00404550
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 0x47722c
push 0x100
lea eax, [ebp - 0x360]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x4969b4
mov edx, 0x100
jmp 0x4771a0
movzx eax, word [ecx]
cmp ax, dx
jae 0x4771eb
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x360], 1
cmp ecx, 0x4969b8
jne 0x4771a0
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 0x4771e2
cmp byte [ebp + eax - 0x360], 0
jne 0x477226
cmp ecx, edi
je 0x47722c
sub ecx, 2
jmp 0x4771d0
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, 0x4969b4
lea ecx, [ecx]
cmp word [eax], si
je 0x477226
add eax, 2
sub edx, 1
jne 0x477210
cmp ecx, edi
je 0x47722c
sub ecx, 2
jmp 0x477200
sub ecx, edi
sar ecx, 1
jmp 0x47722f
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.00404550
push 0xc
push str.ksolite.dll
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.00401cf0
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 0x477314
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47730a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47730a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
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 0x47733c
test al, 0x10
jne 0x47733c
mov bl, 1
jmp 0x47733e
xor bl, bl
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x47737a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477370
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4773c9
push edx
push ecx
call fcn.00487869
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 0x4773d9
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4773cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4773cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
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.00487877
mov esp, ebp
pop ebp
ret