Function at 0x10006310
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1013128c
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x101636d0]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101636d0]
xor eax, esp
push eax
lea eax, [esp + 0x678]
mov dword fs:[0], eax
mov eax, dword [esp + 0x688]
cmp dword [eax + 0x1200], 1
mov ebp, dword [esp + 0x68c]
mov dword [esp + 0x1c], eax
mov edi, ecx
jne 0x10006607
xor ebx, ebx
cmp ebp, ebx
je 0x10006607
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10006607
cmp byte [ebp + 0x4c8], bl
je 0x10006607
lea esi, [esp + 0x2fc]
call fcn.10006770
mov dword [esp + 0x680], ebx
mov eax, dword [ebp]
mov dword [esp + 0x300], eax
lea esi, [ebp + 0x280]
mov eax, esi
lea edx, [esp + 0x304]
call fcn.100626f0
lea eax, [ebp + 8]
lea edx, [esp + 0x54c]
mov dword [esp + 0x24], eax
call fcn.100626f0
lea eax, [ebp + 0x3a4]
lea edx, [esp + 0x428]
call fcn.100626f0
lea eax, [ebp + 0x28c]
cmp byte [ebp + 0x39c], bl
jne 0x100063fb
mov eax, dword [ebp + 0x288]
add eax, 4
push str.picface_
push eax
call fcn.100d1cd3
add esp, 8
test eax, eax
je 0x10006448
mov ecx, dword [ebp + 0x284]
push 0x5f
mov eax, esi
call fcn.10062c60
lea ecx, [eax + ecx*2]
push ecx
mov eax, esi
call fcn.10062c60
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
je 0x10006448
add eax, 2
cmp eax, ebx
je 0x10006448
lea edx, [esp + 0x304]
call fcn.10062710
push 3
push ecx
call fcn.10002720
add esp, 4
push eax
lea eax, [esp + 0x304]
call fcn.10002f50
call fcn.100025a0
push ebx
call fcn.1000f180
cmp edi, ebx
je 0x1000647e
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100680e0
call fcn.10066340
push eax
lea edi, [esp + 0xc0]
call fcn.10062630
push 0x1013c82c
push 0x1013c7e4
mov edx, edi
mov byte [esp + 0x688], 1
call fcn.10062cd0
push str.SogouInputComponentsPicfaceDownload
push 0x1013c7e4
mov edx, edi
call fcn.10062cd0
add esp, 0x10
cmp byte [ebp + 0x39c], bl
je 0x100064d2
add ebp, 0x28c
jmp 0x100064d8
mov ebp, dword [ebp + 0x288]
push 0x1013c82c
push 0x1013c7e4
lea edx, [esp + 0xc4]
call fcn.10062cd0
add ebp, 4
push ebp
push 0x1013c7e4
lea edx, [esp + 0xcc]
call fcn.10062cd0
push 0x1013c768
push 0x1013c7e4
lea edx, [esp + 0xd4]
call fcn.10062cd0
add esp, 0x18
lea eax, [esp + 0xc8]
cmp byte [esp + 0x1d8], bl
jne 0x10006533
mov eax, dword [esp + 0xc4]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x100065ef
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x100065ef
lea edx, [esp + 0x28]
push edx
push 0x1fff8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], fcn.100cf978
mov dword [esp + 0x34], fcn.100cfa42
mov dword [esp + 0x38], fcn.100cf89b
call fcn.10001390
mov byte [esp + 0x680], 2
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebx
call fcn.10001ee0
push ebx
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x10006633
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x680], 1
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x100065ef
mov edi, dword [esp + 0x40]
lea ebx, [ebx]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
cmp esi, ebx
jne 0x100065e0
lea ecx, [esp + 0xbc]
call fcn.1005f910
lea eax, [esp + 0x2fc]
call fcn.100067a0
xor al, al
mov ecx, dword [esp + 0x678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.100cf604
add esp, 0x670
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x1e4]
call fcn.1004b080
mov byte [esp + 0x680], 3
mov edx, dword [esp + 0x18]
mov ecx, edi
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ebp
call fcn.10004680
mov eax, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0xb
call fcn.1004a0a0
mov edx, eax
mov eax, dword [esp + 0x24]
call fcn.10062c60
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.10013460
lea eax, [esp + 0x54]
mov ecx, 4
jmp 0x100066a0
xor edx, edx
mov dword [eax - 8], 1
mov dword [eax], 8
mov dword [eax + 8], ebx
mov word [eax - 2], dx
mov word [eax - 4], dx
add eax, 0x1c
sub ecx, 1
jne 0x100066a0
mov ecx, 0x2f
mov edx, ecx
mov word [esp + 0x8a], dx
push 0x1c
mov eax, 0x1d
lea edx, [esp + 0x50]
mov word [esp + 0x56], ax
mov word [esp + 0x72], cx
mov eax, 2
or dword [esp + 0x90], eax
or dword [esp + 0xac], eax
push edx
mov ecx, 0x1d
push 4
mov word [esp + 0xb2], cx
call dword [sym.imp.USER32.dll_SendInput]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1e4]
call fcn.100023e0
mov byte [esp + 0x680], 1
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x10006746
mov edi, dword [esp + 0x40]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
cmp esi, ebx
jne 0x10006737
lea ecx, [esp + 0xbc]
call fcn.1005f910
lea eax, [esp + 0x2fc]
call fcn.100067a0
mov al, 1
jmp 0x10006609