Function at 0x10021750
Capabilities:
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d2c0
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xorps xmm0, xmm0
mov eax, 1
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
movlpd qword [ebp - 0x38], xmm0
push eax
mov dword [ebp - 0x20], 0x107b2
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
sbb eax, dword [ebp - 0x34]
push 0
push 0x989680
push eax
push ecx
call fcn.10049360
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], 0
call fcn.100081e0
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.1003fe50
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x100217fe
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.10003ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.100053f0
push dword [ebp - 0x44]
push 0
push str.test_wait_second
push 0x10084604
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
mov ecx, 0x7080
cmovne ecx, eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x34], ecx
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x29], al
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x10021881
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x10021881
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1002187e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov al, byte [ebp - 0x29]
test al, al
je 0x10021904
lea eax, [ebp - 0x18]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xdc]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 5
push str.now_timestamp:
push esi
call fcn.10006800
add esp, 8
mov ecx, esi
push dword [ebp - 0x30]
call fcn.1001ae40
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xdc]
call fcn.10006a00
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x10021904
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10021904
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10021904
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x29], al
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x1002194d
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x1002194d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1002194a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov al, byte [ebp - 0x29]
test al, al
je 0x100219d6
lea eax, [ebp - 0x18]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xdc]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 9
push str.wait_second:
push esi
call fcn.10006800
add esp, 8
mov ecx, esi
push dword [ebp - 0x34]
call fcn.1001ae40
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xdc]
call fcn.10006a00
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x100219d9
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100219d9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100219d9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x100219d9
or esi, 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, dword [0x100a79cc]
cmp eax, dword [ebp - 0x34]
jbe 0x10021ab3
lea eax, [ebp - 0x18]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x29], al
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x10021a34
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x10021a34
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10021a31
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov al, byte [ebp - 0x29]
test al, al
je 0x10021aac
lea eax, [ebp - 0x18]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xdc]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0xd
push str.time_interval_reached_8_hour__will_work
push esi
call fcn.10006800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xdc]
call fcn.10006a00
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10021aac
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10021aac
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10021aac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x30]
mov dword [0x100a79cc], eax
je 0x10021b00
push 1
mov dword [0x100a79c8], 1
call fcn.10008140
mov ecx, eax
call fcn.10022830
push 0
push 0
push dword [0x100a79bc]
push 0x1001eac0
push 0
push 0
call fcn.10059644
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10021bc4
lea eax, [ebp - 0x18]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x29], al
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10021b4b
or ecx, 0xffffffff
lock xadd dword [esi + 4], ecx
jne 0x10021b4b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10021b48
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x29]
test al, al
je 0x10021bc4
lea eax, [ebp - 0x18]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xdc]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0x11
push str.time_interval_no_reached
push esi
call fcn.10006800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xdc]
call fcn.10006a00
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x10021bc4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10021bc4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10021bc4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10021be6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret