Function at 0x46cc20
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52eba1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x102c8
call fcn.004f9530
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov ebx, ecx
lea ecx, [ebp - 0x25c]
call fcn.00406290
mov dword [ebp - 4], 0
push 0x20a
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.004fb730
add esp, 0xc
call fcn.00405a90
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x46ccb7
movaps xmm0, xmmword [0x55b370]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x61507265
mov dword [ebp - 0x18], 0x576874
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
push 0
push 0x23
lea eax, [ebp - 0x240]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x46cd31
lea ecx, [ebp - 0x240]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ccd7
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x46cd31
push ecx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00407a50
push 1
push 0x555afc
lea ecx, [ebp - 0x25c]
call fcn.00407ba0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46cd15
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x25c]
call fcn.00407ba0
lea edi, [ebp - 0x25c]
cmp dword [ebp - 0x248], 8
cmovae edi, dword [ebp - 0x25c]
call fcn.00405960
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x46cd6c
movaps xmm0, xmmword [str.PathFileExistsW]
movups xmmword [ebp - 0x24], xmm0
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x14], eax
push edi
mov eax, dword [esi + 0x14]
call eax
test eax, eax
je 0x46d200
lea ecx, [ebp - 0x274]
call fcn.004064b0
mov byte [ebp - 4], 1
mov dword [ebp - 0x244], 0
lea eax, [ebp - 0x25c]
cmp dword [ebp - 0x248], 8
cmovae eax, dword [ebp - 0x25c]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46ce1f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
je 0x46ce1f
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00503483
add esp, 4
mov esi, eax
test esi, esi
je 0x46ce2c
push 0
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x244]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov byte [esi + eax], 0
jmp 0x46ce3a
test esi, esi
je 0x46ce2c
push esi
call fcn.004fea4f
add esp, 4
xor esi, esi
cmp edi, 0xffffffff
je 0x46ce3a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x46ce62
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ce43
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x274]
call fcn.00407ce0
push esi
call fcn.004fea4f
add esp, 4
cmp dword [ebp - 0x264], 0
je 0x46d1f1
push 0x10044
push 0
lea eax, [ebp - 0x102c0]
push eax
call fcn.004fb730
add esp, 0xc
lea ecx, [ebp - 0x102c0]
call fcn.0046d310
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
cmp dword [ebp - 0x260], 0x10
cmovae ecx, dword [ebp - 0x274]
mov dword [ebp - 0x244], ecx
mov eax, dword [ebp - 0x102a8]
test eax, eax
je 0x46cece
mov dword [eax + 0x10], 0
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp - 0x244]
jmp 0x46ceb8
mov dword [ebp - 0x102a8], 0
mov eax, dword [ebp - 0x102a0]
nop
test eax, eax
je 0x46cef6
mov dword [eax + 0x10], 0
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x244]
jmp 0x46cee0
mov dword [ebp - 0x102a0], 0
cmp byte [ecx], 0xef
jne 0x46cf20
cmp byte [ecx + 1], 0xbb
jne 0x46cf20
cmp byte [ecx + 2], 0xbf
jne 0x46cf20
add ecx, 3
mov dword [ebp - 0x244], ecx
nop word [eax + eax]
mov dword [ebp - 0x102c4], ecx
movzx eax, byte [ecx]
mov al, byte [eax + 0x55a850]
test al, al
je 0x46cf36
inc ecx
jmp 0x46cf20
mov dword [ebp - 0x244], ecx
mov al, byte [ecx]
test al, al
jne 0x46d0fd
mov dword [ebp - 4], 2
sub esp, 8
push str.InsLog
lea ecx, [ebp - 0x102c0]
call fcn.0046d3f0
test eax, eax
jne 0x46cfbb
mov byte [ebp - 4], 8
lea eax, [ebp - 0x10284]
mov ecx, dword [ebp - 0x10290]
cmp ecx, eax
je 0x46d1c6
mov edx, ecx
nop
mov eax, edx
neg eax
and eax, 3
mov esi, dword [edx + eax]
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x46cf99
push ecx
call eax
jmp 0x46cf9f
push edx
call fcn.004f8ef5
add esp, 4
mov ecx, esi
mov dword [ebp - 0x10290], ecx
mov edx, esi
lea eax, [ebp - 0x10284]
cmp esi, eax
jne 0x46cf80
jmp 0x46d1c6
sub esp, 8
push str.Item
mov ecx, eax
call fcn.0046d3f0
mov edi, eax
test edi, edi
je 0x46d046
xor esi, esi
mov dword [ebp - 0x244], esi
test edi, edi
je 0x46d00d
sub esp, 8
push str.labelid
mov ecx, edi
call fcn.0046d760
test eax, eax
je 0x46d00d
mov eax, dword [eax + 4]
mov ecx, 0x5768dc
test eax, eax
cmovne ecx, eax
push ecx
call fcn.005051d1
add esp, 4
mov esi, eax
mov dword [ebp - 0x244], esi
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x46d01d
mov dword [eax], esi
add dword [ebx + 4], 4
jmp 0x46d02c
lea ecx, [ebp - 0x244]
push ecx
push eax
mov ecx, ebx
call fcn.0046d4f0
mov esi, dword [ebx + 4]
sub esp, 8
push str.Item
mov ecx, edi
call fcn.0046d370
mov edi, eax
test edi, edi
jne 0x46cfd0
jmp 0x46d049
mov esi, dword [ebx + 4]
xor eax, eax
cmp dword [ebx], esi
setne al
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x10284]
mov ecx, dword [ebp - 0x10290]
cmp ecx, eax
je 0x46d0a6
mov edx, ecx
nop dword [eax]
mov eax, edx
neg eax
and eax, 3
mov esi, dword [edx + eax]
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x46d089
push ecx
call eax
jmp 0x46d08f
push edx
call fcn.004f8ef5
add esp, 4
mov ecx, esi
mov dword [ebp - 0x10290], ecx
mov edx, esi
lea eax, [ebp - 0x10284]
cmp esi, eax
jne 0x46d070
lea eax, [ebp - 0x10284]
mov dword [ebp - 0x10290], eax
neg eax
and eax, 3
lea ecx, [ebp - 0x10284]
add ecx, eax
mov dword [ebp - 0x1028c], ecx
lea eax, [ebp - 0x284]
mov dword [ebp - 0x10288], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.004063b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00406140
mov eax, dword [ebp - 0x244]
jmp 0x46d214
cmp al, 0x3c
jne 0x46d230
lea eax, [ecx + 1]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x102c0]
call fcn.0046d970
test eax, eax
je 0x46d164
cmp dword [ebp - 0x102a8], 0
je 0x46d141
mov ecx, dword [ebp - 0x102a4]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x102a4]
mov dword [ecx + 0x2c], eax
jmp 0x46d14e
mov dword [eax + 0x28], 0
mov dword [ebp - 0x102a8], eax
mov dword [ebp - 0x102a4], eax
lea ecx, [ebp - 0x102c0]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x244]
jmp 0x46cf20
lea eax, [ebp - 0x10284]
mov dword [ebp - 0x10290], eax
neg eax
lea ecx, [ebp - 0x10284]
and eax, 3
add eax, ecx
mov dword [ebp - 0x1028c], eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x10288], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.004063b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.00406140
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
push ecx
push 0x55a4b8
lea ecx, [ebp - 0x102d8]
call fcn.0046c360
push 0x56c4ac
lea eax, [ebp - 0x102d8]
push eax
call fcn.004fb6b9
int3