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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498226
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4be4b0]
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 0x47c0f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c0f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.004045a0
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 0x47c1ec
push 0x100
lea eax, [ebp - 0x360]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x49ba34
mov edx, 0x100
jmp 0x47c160
movzx eax, word [ecx]
cmp ax, dx
jae 0x47c1ab
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x360], 1
cmp ecx, 0x49ba38
jne 0x47c160
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 0x47c1a2
cmp byte [ebp + eax - 0x360], 0
jne 0x47c1e6
cmp ecx, edi
je 0x47c1ec
sub ecx, 2
jmp 0x47c190
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, 0x49ba34
lea ecx, [ecx]
cmp word [eax], si
je 0x47c1e6
add eax, 2
sub edx, 1
jne 0x47c1d0
cmp ecx, edi
je 0x47c1ec
sub ecx, 2
jmp 0x47c1c0
sub ecx, edi
sar ecx, 1
jmp 0x47c1ef
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.004045a0
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 0x47c2d4
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c2ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47c2ca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c837
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 0x47c2fc
test al, 0x10
jne 0x47c2fc
mov bl, 1
jmp 0x47c2fe
xor bl, bl
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x47c33a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c330
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c389
push edx
push ecx
call fcn.0048c837
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 0x47c399
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c38f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47c38f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c837
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.0048c845
mov esp, ebp
pop ebp
ret