Function at 0x100314c0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x230
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x22c], eax
mov ecx, dword [esp + 0x240]
mov eax, dword [esp + 0x238]
mov edx, dword [esp + 0x23c]
push ebx
push ebp
push esi
mov dword [0x1007fdb0], ecx
mov ecx, dword [esp + 0x250]
push edi
push eax
mov dword [0x1007fdb4], eax
mov dword [0x1007fdb8], edx
mov dword [0x1007fdbc], ecx
call fcn.1004109b
xor ebx, ebx
add esp, 4
mov byte [esp + 0x24], bl
mov edx, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], eax
call fcn.1002c450
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.1002ca90
push esi
call fcn.10041723
add esp, 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc4]
push str.kuai8link.ini
push eax
call fcn.100050e0
add esp, 4
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.1000f940
mov ebp, 0x10
add esp, 0xc
cmp dword [esp + 0xdc], ebp
jb 0x10031589
mov edx, dword [esp + 0xc8]
push edx
call fcn.10040f62
add esp, 4
lea eax, [esp + 0x8c]
push eax
call fcn.1000e150
add esp, 4
test al, al
mov edi, 0xf
jne 0x100315ae
cmp dword [esp + 0xa4], ebp
jmp 0x10031b9c
mov ecx, 0x15
call fcn.1002cb20
mov esi, eax
mov ecx, esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [ecx + 1]
jmp 0x100315d0
mov al, byte [ecx]
add ecx, 1
cmp al, bl
jne 0x100315d0
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x40]
call fcn.10003ca0
push 0x13
push str.datalocaluser.xml
lea ecx, [esp + 0x40]
call fcn.100071b0
lea edx, [esp + 0x38]
push edx
call fcn.1000e150
add esp, 4
test al, al
jne 0x10031626
cmp dword [esp + 0x50], ebp
jb 0x1003161a
mov eax, dword [esp + 0x3c]
push eax
call fcn.10040f62
add esp, 4
cmp dword [esp + 0xa4], ebp
jmp 0x10031b90
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x5c]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.10003960
call fcn.10035a80
add esp, 0x1c
cmp al, bl
jne 0x10031670
cmp dword [esp + 0x50], ebp
jb 0x1003161a
mov eax, dword [esp + 0x3c]
push eax
call fcn.10040f62
add esp, 4
cmp dword [esp + 0xa4], ebp
jmp 0x10031b90
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb0]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.10003960
lea ecx, [esp + 0x134]
call fcn.10012670
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.10012740
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
ja 0x1003172a
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100316ef
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call fcn.100074f0
mov edx, dword [esp + 0x28]
push edx
call fcn.10040f62
add esp, 0x14
lea ecx, [esp + 0x118]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.100126e0
cmp dword [esp + 0x50], ebp
jb 0x1003161a
mov eax, dword [esp + 0x3c]
push eax
call fcn.10040f62
add esp, 4
cmp dword [esp + 0xa4], ebp
jmp 0x10031b90
push 0x104
lea edx, [esp + 0x139]
push ebx
push edx
mov byte [esp + 0x140], bl
call fcn.10041500
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x2c], ebx
jbe 0x10031b2f
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x28], ebx
lea ecx, [ecx]
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x10031787
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x2c], eax
jb 0x10031790
call fcn.10041d26
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
add eax, esi
push ebx
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.10003960
cmp dword [esp + 0x84], ebx
jne 0x100317d9
cmp dword [esp + 0x88], 0x10
jb 0x10031b15
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x10031b0d
mov ecx, dword [esp + 0x90]
mov esi, 0x10
cmp dword [esp + 0xa4], esi
jae 0x100317f5
lea ecx, [esp + 0x90]
cmp dword [esp + 0x88], esi
mov eax, dword [esp + 0x74]
jae 0x10031806
lea eax, [esp + 0x74]
push ecx
push 0x104
lea edx, [esp + 0x13c]
push edx
push 0x100735cc
push 0x1006f57c
push eax
call ebp
lea eax, [esp + 0x134]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10031840
sub eax, edx
push eax
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0xb0]
call fcn.10003ca0
lea ecx, [esp + 0xa8]
push ecx
call fcn.1000e150
add esp, 4
test al, al
jne 0x100318b9
cmp dword [esp + 0xc0], esi
jb 0x1003188d
mov edx, dword [esp + 0xac]
push edx
call fcn.10040f62
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
jb 0x10031b15
mov eax, dword [esp + 0x74]
push eax
jmp 0x10031b0d
cmp dword [esp + 0xa4], esi
mov ecx, dword [esp + 0x90]
jae 0x100318d0
lea ecx, [esp + 0x90]
cmp dword [esp + 0x88], esi
mov eax, dword [esp + 0x74]
jae 0x100318e1
lea eax, [esp + 0x74]
push ecx
push 0x104
lea ecx, [esp + 0x13c]
push ecx
push 0x100735cc
push 0x1006f578
push eax
call ebp
lea eax, [esp + 0x134]
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
lea edx, [eax + 1]
jmp 0x10031920
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10031920
sub eax, edx
push eax
lea edx, [esp + 0x138]
push edx
lea ecx, [esp + 0xe8]
call fcn.10003ca0
cmp dword [esp + 0xa4], esi
mov ecx, dword [esp + 0x90]
jae 0x10031957
lea ecx, [esp + 0x90]
cmp dword [esp + 0x88], esi
mov eax, dword [esp + 0x74]
jae 0x10031968
lea eax, [esp + 0x74]
push ecx
push 0x104
lea ecx, [esp + 0x13c]
push ecx
push 0x100735cc
push 0x1006f574
push eax
call ebp
lea eax, [esp + 0x134]
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100319a2
sub eax, edx
push eax
lea edx, [esp + 0x138]
push edx
lea ecx, [esp + 0x104]
call fcn.10003ca0
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.100349b0
add esp, 0x10
cmp dword [esp + 0x68], ebx
je 0x10031a56
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.10007e80
mov eax, dword [esp + 0xd0]
add esp, 8
cmp dword [esp + 0xdc], esi
jae 0x10031a16
lea eax, [esp + 0xc8]
mov edx, dword [esp + 0x24]
push eax
push ebx
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 0xdc], esi
jb 0x10031a41
mov eax, dword [esp + 0xc8]
push eax
call fcn.10040f62
add esp, 4
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
cmp dword [esp + 0x6c], esi
jb 0x10031a69
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10040f62
add esp, 4
cmp dword [esp + 0x114], esi
mov byte [esp + 0x58], bl
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edi
jb 0x10031a8e
mov edx, dword [esp + 0x100]
push edx
call fcn.10040f62
add esp, 4
cmp dword [esp + 0xf8], esi
mov byte [esp + 0x100], bl
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], edi
jb 0x10031abc
mov eax, dword [esp + 0xe4]
push eax
call fcn.10040f62
add esp, 4
cmp dword [esp + 0xc0], esi
mov byte [esp + 0xe4], bl
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], edi
jb 0x10031aea
mov ecx, dword [esp + 0xac]
push ecx
call fcn.10040f62
add esp, 4
cmp dword [esp + 0x88], esi
mov byte [esp + 0xac], bl
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], edi
jb 0x10031b15
mov edx, dword [esp + 0x74]
push edx
call fcn.10040f62
add esp, 4
mov eax, dword [esp + 0x2c]
add dword [esp + 0x28], 0x1c
add eax, 1
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jb 0x10031760
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10031b59
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call fcn.100074f0
mov edx, dword [esp + 0x28]
push edx
call fcn.10040f62
add esp, 0x14
lea ecx, [esp + 0x118]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.100126e0
mov esi, 0x10
cmp dword [esp + 0x50], esi
jb 0x10031b89
mov eax, dword [esp + 0x3c]
push eax
call fcn.10040f62
add esp, 4
cmp dword [esp + 0xa4], esi
mov byte [esp + 0x3c], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edi
jb 0x10031bae
mov ecx, dword [esp + 0x90]
push ecx
call fcn.10040f62
add esp, 4
mov ecx, 0x15
call fcn.1002cb20
mov esi, eax
mov ecx, esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [ecx + 1]
jmp 0x10031bd0
mov al, byte [ecx]
add ecx, 1
cmp al, bl
jne 0x10031bd0
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x5c]
call fcn.10003ca0
push 0x13
push str.datalocal_task.xml
lea ecx, [esp + 0x5c]
call fcn.100071b0
lea edx, [esp + 0x54]
push edx
call fcn.1000e150
add esp, 4
test al, al
jne 0x10031c1c
cmp dword [esp + 0x6c], 0x10
jb 0x10031d18
mov eax, dword [esp + 0x58]
push eax
jmp 0x10031d10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x78]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.10003960
call fcn.10032fa0
add esp, 0x1c
cmp al, bl
je 0x10031c07
mov ecx, 0x1007fea8
xor edi, edi
call fcn.10006d00
test eax, eax
jbe 0x10031d04
xor ebp, ebp
lea ecx, [ecx]
mov esi, dword [0x1007feac]
cmp esi, ebx
je 0x10031c89
mov ecx, dword [0x1007feb0]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10031c94
call fcn.10041d26
mov esi, dword [0x1007feac]
lea ecx, [esi + ebp]
push ecx
lea edx, [esp + 0xc8]
push edx
call fcn.10007e80
mov eax, dword [esp + 0xd0]
add esp, 8
cmp dword [esp + 0xdc], 0x10
jae 0x10031cc0
lea eax, [esp + 0xc8]
push eax
mov eax, dword [esp + 0x28]
push ebx
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 0xdc], 0x10
jb 0x10031cec
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.10040f62
add esp, 4
mov ecx, 0x1007fea8
add edi, 1
add ebp, 0x1c
call fcn.10006d00
cmp edi, eax
jb 0x10031c60
cmp dword [esp + 0x6c], 0x10
jb 0x10031d18
mov edx, dword [esp + 0x58]
push edx
call fcn.10040f62
add esp, 4
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x10031d4a
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10031d4a
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10031d4a
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10040be4
add esp, 0x230
ret