Function at 0x1002c000
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10050516
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x1006f1bc]
push ebx
push esi
push edi
test al, 1
jne 0x1002c060
or eax, 1
mov dword [0x1006f1bc], eax
sub esp, 8
mov dword [esp + 0x194], 0
call fcn.1000ad30
push 0x10052140
call fcn.10013501
add esp, 4
mov dword [esp + 0x18c], 0xffffffff
cmp byte [0x1006f15c], 0
jne 0x1002c368
push 0x104
lea eax, [esp + 0x7c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
lea eax, [esp + 0x34]
mov dword [esp + 0x18c], 1
push eax
push 0x64
call sym.KwLib.dll_int___cdecl_KwLib::Dir::GetKwPath_enum_KwLib::Dir::Path_Type__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x3c]
push 0x103
cmovae eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0x88]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_strncpy_s]
lea ecx, [esp + 0x90]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c0e1
sub ecx, edx
mov eax, 0x103
sub eax, ecx
push eax
push str.hanzi_pinyin.dict
lea eax, [esp + 0x80]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_strncat_s]
mov eax, dword [0x1006e3e8]
add esp, 0x10
mov dword [esp + 0xc], 0
cmp eax, 0xffffffff
jne 0x1002c159
lea eax, [esp + 0x64]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1002c14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1002c14f
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1002c159
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x50]
call fcn.10004760
add esp, 4
mov edx, eax
mov byte [esp + 0x18c], 2
cmp dword [edx + 0x14], 8
jb 0x1002c17c
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
cmp word [edx], ax
jne 0x1002c19c
xor ecx, ecx
jmp 0x1002c1b0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002c1a1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.100026d0
mov byte [esp + 0x18c], 4
cmp dword [esp + 0x60], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1002c1d9
push dword [esp + 0x4c]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
cmp dword [esp + 0x30], 8
mov word [esp + 0x4c], ax
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push 0x1005a42c
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x64], 0
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1002c3b6
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1002c3b6
mov ebx, dword [sym.imp.MSVCR120.dll_fseek]
push 2
push 0
push eax
call ebx
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov edi, eax
push edi
call fcn.10013326
add esp, 4
mov esi, eax
push edi
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0
push 0
push dword [esp + 0x14]
call ebx
add esp, 0xc
push dword [esp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.MSVCR120.dll_fread]
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_fclose]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x14
call ebx
mov byte [esp + 0x1b], 0
mov al, byte [esi]
test al, al
je 0x1002c322
jns 0x1002c316
movzx eax, word [esi]
add esi, 3
mov dword [esp + 0x10], eax
mov ecx, esi
mov al, byte [esi]
cmp al, 0x60
jle 0x1002c2bc
nop
cmp al, 0x7b
jge 0x1002c2bc
mov al, byte [esi + 1]
inc esi
cmp al, 0x60
jg 0x1002c2b0
mov edi, esi
lea eax, [esp + 0x14]
sub edi, ecx
push edi
push ecx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov byte [esp + edi + 0x14], 0
lea eax, [esp + 0x10]
push eax
call fcn.1000aa10
cmp byte [esp + 0x14], 0
mov edi, eax
jne 0x1002c2eb
xor ecx, ecx
jmp 0x1002c2fb
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c2f2
sub ecx, edx
push ecx
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.10001a10
cmp byte [esi], 0xa
je 0x1002c316
lea ecx, [ecx]
inc esi
cmp byte [esi], 0xa
jne 0x1002c310
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002c29b
call ebx
cmp dword [esp + 0x30], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov byte [0x1006f15c], 1
jb 0x1002c341
push dword [esp + 0x1c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x1002c368
push dword [esp + 0x34]
call esi
add esp, 4
push dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.1000adf0
mov eax, dword [esp + 0x10]
cmp eax, dword [0x1006f1c0]
je 0x1002c3ed
cmp dword [eax + 0x20], 0x10
lea edx, [eax + 0xc]
jb 0x1002c38c
mov edx, dword [edx]
mov esi, dword [ebp + 0xc]
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi], cl
lea esi, [esi + 1]
test cl, cl
jne 0x1002c390
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x30], 8
jb 0x1002c3c6
push dword [esp + 0x1c]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x1002c3ed
push dword [esp + 0x34]
call ebx
add esp, 4
mov ecx, dword [esp + 0x184]
or eax, 0xffffffff
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret