Function at 0x10003ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x100214f8], 0
je 0x10003cd0
cmp dword [0x100214f4], 0
je 0x10003cc1
mov dword [ebp - 0xc], 1
jmp 0x10003cc8
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 0xc]
jmp 0x100040f0
push 0x10021510
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100214f4], 0
je 0x10003cee
jmp 0x100040d4
call sym.daycol.dll_char____cdecl_obutted_void_
mov dword [section..data], eax
call sym.daycol.dll_char____cdecl_obutted2_void_
mov dword [0x10020004], eax
push 0x10
push 0x100182f8
call fcn.10001500
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x80000001
call fcn.100063e0
add esp, 0xc
mov dword [0x10021508], eax
cmp dword [0x10021508], 0
jne 0x10003d49
push 0xf
push 0x1001830c
call fcn.10001500
add esp, 8
mov dword [0x10021508], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10008263
add esp, 4
push 0xc
push 0x1001831c
call fcn.10001500
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.10001700
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10008263
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003d97
mov byte [0x1002000c], 0x69
cmp dword [0x100214f0], 0
jne 0x10003de2
push 9
push 0x1001832c
call fcn.10001500
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.10001700
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10008263
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003de2
mov byte [0x1002000c], 0x6f
cmp dword [0x100214f0], 0
jne 0x10003e2d
push 0xa
push 0x10018338
call fcn.10001500
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10001700
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10008263
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003e2d
mov byte [0x1002000c], 0x73
cmp dword [0x100214f0], 0
jne 0x10003e78
push 0xb
push 0x10018344
call fcn.10001500
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.10001700
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10008263
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003e78
mov byte [0x1002000c], 0x66
cmp dword [0x100214f0], 0
jne 0x10003ec3
push 0xa
push str.QW_K
call fcn.10001500
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.10001700
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10008263
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003ec3
mov byte [0x1002000c], 0x63
cmp dword [0x100214f0], 0
jne 0x10003eee
cmp dword [0x100214f8], 0
jne 0x10003ee4
push 1
push 0x100214f8
call fcn.100052e0
add esp, 8
jmp 0x100040e3
call fcn.10003c00
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003f06
jmp 0x100040e3
push 0xd
push 0x1001835c
call fcn.10001500
add esp, 8
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.10003c40
add esp, 8
mov dword [0x100214e4], eax
push 0xf
push 0x1001836c
call fcn.10001500
add esp, 8
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.10003c40
add esp, 8
mov dword [0x100214e8], eax
push 0x11
push 0x1001837c
call fcn.10001500
add esp, 8
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10003c40
add esp, 8
mov dword [0x100214ec], eax
push 0x1b
push 0x10018390
call fcn.10001500
add esp, 8
mov dword [ebp - 8], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10003c70
add esp, 8
mov dword [0x100214fc], eax
cmp dword [0x100214fc], 0
jne 0x10003faf
mov ecx, dword [ebp - 8]
push ecx
call fcn.10008263
add esp, 4
jmp 0x100040e3
cmp dword [ebp - 0x28], 0xb7
jne 0x10004003
mov edx, dword [0x100214fc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100214fc], 0
push 1
push 0x100214f8
call fcn.100052e0
add esp, 8
push 1
push 0x100214f4
call fcn.100052e0
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.10008263
add esp, 4
jmp 0x100040d4
mov ecx, dword [ebp - 8]
push ecx
call fcn.10008263
add esp, 4
push 0x1a
push 0x100183ac
call fcn.10001500
add esp, 8
mov dword [0x10021504], eax
push 0x10021500
mov edx, dword [0x10021504]
push edx
call fcn.100059a0
add esp, 8
mov eax, dword [0x10021500]
add eax, 1
mov dword [0x10021500], eax
mov ecx, dword [0x10021500]
push ecx
mov edx, dword [0x10021504]
push edx
call fcn.10005870
add esp, 8
call fcn.10003a30
push 0
push 0
push 0
push 0x10003aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10004095
mov eax, dword [0x100214fc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x10004091
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x100040e3
mov dword [ebp - 0x2c], 0
push 0x40
push 0x100183c8
call fcn.10001500
add esp, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [0x1002150c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.10006060
add esp, 0xc
push 1
push 0x100214f4
call fcn.100052e0
add esp, 8
push 0x10021510
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x100040f0
push 0x10021510
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov esp, ebp
pop ebp
ret