Function at 0x10003c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x100214f8], 0
je 0x10003c50
cmp dword [0x100214f4], 0
je 0x10003c41
mov dword [ebp - 0xc], 1
jmp 0x10003c48
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 0xc]
jmp 0x10004070
push 0x10021510
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100214f4], 0
je 0x10003c6e
jmp 0x10004054
call sym.ningness.dll_char____cdecl_cutaaus_void_
mov dword [section..data], eax
call sym.ningness.dll_char____cdecl_cutaaus2_void_
mov dword [0x10020004], eax
push 0x11
push 0x10018308
call fcn.10001500
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x80000001
call fcn.10006540
add esp, 0xc
mov dword [0x10021508], eax
cmp dword [0x10021508], 0
jne 0x10003cc9
push 0xf
push 0x1001831c
call fcn.10001500
add esp, 8
mov dword [0x10021508], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10008373
add esp, 4
push 0xc
push 0x1001832c
call fcn.10001500
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.100016e0
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10008373
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003d17
mov byte [0x1002000c], 0x69
cmp dword [0x100214f0], 0
jne 0x10003d62
push 9
push 0x1001833c
call fcn.10001500
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.100016e0
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10008373
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003d62
mov byte [0x1002000c], 0x6f
cmp dword [0x100214f0], 0
jne 0x10003dad
push 0xa
push 0x10018348
call fcn.10001500
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100016e0
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10008373
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003dad
mov byte [0x1002000c], 0x73
cmp dword [0x100214f0], 0
jne 0x10003df8
push 0xb
push 0x10018354
call fcn.10001500
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.100016e0
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10008373
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003df8
mov byte [0x1002000c], 0x66
cmp dword [0x100214f0], 0
jne 0x10003e43
push 0xa
push 0x10018360
call fcn.10001500
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.100016e0
add esp, 4
movzx eax, al
mov dword [0x100214f0], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10008373
add esp, 4
cmp dword [0x100214f0], 0
je 0x10003e43
mov byte [0x1002000c], 0x63
cmp dword [0x100214f0], 0
jne 0x10003e6e
cmp dword [0x100214f8], 0
jne 0x10003e64
push 1
push 0x100214f8
call fcn.10005260
add esp, 8
jmp 0x10004063
call fcn.10003b80
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003e86
jmp 0x10004063
push 0xd
push 0x1001836c
call fcn.10001500
add esp, 8
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.10003bc0
add esp, 8
mov dword [0x100214e4], eax
push 0xf
push 0x1001837c
call fcn.10001500
add esp, 8
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.10003bc0
add esp, 8
mov dword [0x100214e8], eax
push 0x11
push 0x1001838c
call fcn.10001500
add esp, 8
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10003bc0
add esp, 8
mov dword [0x100214ec], eax
push 0x1b
push 0x100183a0
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.10003bf0
add esp, 8
mov dword [0x100214fc], eax
cmp dword [0x100214fc], 0
jne 0x10003f2f
mov ecx, dword [ebp - 8]
push ecx
call fcn.10008373
add esp, 4
jmp 0x10004063
cmp dword [ebp - 0x28], 0xb7
jne 0x10003f83
mov edx, dword [0x100214fc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100214fc], 0
push 1
push 0x100214f8
call fcn.10005260
add esp, 8
push 1
push 0x100214f4
call fcn.10005260
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.10008373
add esp, 4
jmp 0x10004054
mov ecx, dword [ebp - 8]
push ecx
call fcn.10008373
add esp, 4
push 0x1a
push 0x100183bc
call fcn.10001500
add esp, 8
mov dword [0x10021504], eax
push 0x10021500
mov edx, dword [0x10021504]
push edx
call fcn.10005920
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.100057f0
add esp, 8
call fcn.100039b0
push 0
push 0
push 0
push 0x10003a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10004015
mov eax, dword [0x100214fc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x10004011
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x10004063
mov dword [ebp - 0x2c], 0
push 0x40
push 0x100183d8
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.100061c0
add esp, 0xc
push 1
push 0x100214f4
call fcn.10005260
add esp, 8
push 0x10021510
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x10004070
push 0x10021510
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov esp, ebp
pop ebp
ret