Function at 0x100a3ee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018cab9
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x101d8724]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov ecx, dword [0x101de67c]
and ecx, 1
jne 0x100a3f57
mov edx, dword [0x101de67c]
or edx, 1
mov dword [0x101de67c], edx
mov dword [ebp - 4], 0
mov byte [0x101de65c], 0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
push 0x1019efc0
call fcn.1014c847
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov byte [0x101de1fb], 1
mov byte [ebp - 0x49], 0
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax + 0x12]
test ecx, ecx
je 0x100a4188
movzx edx, byte [0x101de65c]
neg edx
sbb edx, edx
and edx, fcn.1011da80
je 0x100a3fad
movzx eax, byte [0x101de65a]
test eax, eax
je 0x100a3f94
jmp 0x100a44df
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xc]
push edx
call fcn.100a3e70
add esp, 8
mov dword [ebp - 0x54], eax
jmp 0x100a417a
mov dword [ebp - 0x60], 0
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.100c0f10
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x100a400a
cmp dword [ebp - 0x60], 0xffffffff
jne 0x100a3fdd
mov byte [0x101de65a], 1
jmp 0x100a44df
push 0
push 0xffffffffffffffff
call fcn.100a3e70
add esp, 8
cmp eax, dword [ebp - 0x60]
jne 0x100a400a
push 0
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xc]
push eax
call fcn.100a3e70
add esp, 8
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xc], eax
jmp 0x100a44df
push 0
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xc]
push eax
call fcn.100a3e70
add esp, 8
mov dword [ebp - 0x54], eax
movzx ecx, byte [0x101de1f9]
test ecx, ecx
je 0x100a402e
jmp 0x100a44df
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
cmp eax, dword [edx + 0xc]
jne 0x100a403e
jmp 0x100a44df
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x5c], 0
jmp 0x100a4057
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 8
jge 0x100a40cd
mov edx, dword [0x101a245c]
mov dword [ebp - 0xc0], edx
movzx eax, byte [0x101de65c]
test eax, eax
je 0x100a408c
mov ecx, 0x101de65c
call fcn.100b71d0
mov ecx, eax
call fcn.1003b690
mov byte [0x101de65c], 0
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xc]
push edx
call fcn.100a3e70
add esp, 8
cmp eax, dword [ebp - 0x54]
je 0x100a40c3
mov dword [ebp - 0x64], 0xffffffff
push 1
lea eax, [ebp - 0x64]
push eax
call fcn.100c0f10
add esp, 8
mov byte [0x101de65a], 1
jmp 0x100a44df
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100a404e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x5c], 0
jmp 0x100a40e7
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 8
jge 0x100a415d
mov edx, dword [0x101a245c]
mov dword [ebp - 0xc8], edx
movzx eax, byte [0x101de65c]
test eax, eax
je 0x100a411c
mov ecx, 0x101de65c
call fcn.100b71d0
mov ecx, eax
call fcn.1003b690
mov byte [0x101de65c], 0
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xc]
push edx
call fcn.100a3e70
add esp, 8
cmp eax, dword [ebp - 0x54]
je 0x100a4153
mov dword [ebp - 0x68], 0xffffffff
push 1
lea eax, [ebp - 0x68]
push eax
call fcn.100c0f10
add esp, 8
mov byte [0x101de65a], 1
jmp 0x100a44df
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100a40de
push 0
push 0xffffffffffffffff
call fcn.100a3e70
add esp, 8
mov dword [ebp - 0x58], eax
push 1
lea ecx, [ebp - 0x58]
push ecx
call fcn.100c0f10
add esp, 8
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov dword [edx + 0xc], eax
jmp 0x100a44df
lea ecx, [ebp - 0xd1]
mov dword [ebp - 0xd0], ecx
lea edx, [ebp - 0x84]
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], 2
push 0
push 0
lea ecx, [ebp - 0x84]
call fcn.10042350
mov dword [ebp - 4], 3
movzx eax, byte [0x101de65c]
neg eax
sbb eax, eax
add eax, 1
movzx ecx, al
test ecx, ecx
je 0x100a43ff
lea edx, [ebp - 0x2c]
push edx
call fcn.1013e930
add esp, 4
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.10088af0
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10042350
mov byte [ebp - 4], 3
xor edx, edx
cmp dword [ebp - 0x74], 0
sete dl
movzx eax, dl
test eax, eax
je 0x100a4276
lea ecx, [ebp - 0x48]
push ecx
call fcn.1013e830
add esp, 4
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0xdc], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x84]
call fcn.10088af0
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.10042350
mov byte [ebp - 4], 3
xor ecx, ecx
cmp dword [ebp - 0x74], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100a43fd
movzx eax, byte [0x101d4f6c]
test eax, eax
je 0x100a43fd
mov ecx, 0xe
shl ecx, 2
mov edx, dword [0x101db5fc]
mov eax, dword [0x101db5fc]
mov esi, dword [0x101db5fc]
mov ebx, dword [esi + 0x6c]
xor ebx, dword [eax + 0x64]
xor ebx, dword [edx + ecx]
and ebx, 0x4000
neg ebx
sbb ebx, ebx
neg ebx
movzx ecx, bl
test ecx, ecx
je 0x100a43fd
mov edx, 0x12
shl edx, 2
mov eax, dword [0x101db5fc]
mov ecx, dword [0x101db5fc]
mov esi, dword [0x101db5fc]
mov ebx, dword [esi + 0x6c]
xor ebx, dword [ecx + 0x64]
xor ebx, dword [eax + edx]
and ebx, 0x80
neg ebx
sbb ebx, ebx
neg ebx
movzx edx, bl
test edx, edx
je 0x100a4310
mov byte [0x101d4f6c], 0
jmp 0x100a4372
movzx eax, byte [0x101de228]
cmp eax, 1
je 0x100a4372
lea ecx, [ebp - 0xb8]
push ecx
push 0
push 0
push 0x100a1df0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
je 0x100a4372
push 0x1388
mov edx, dword [ebp - 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100a4365
mov byte [0x101d4f6c], 0
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [0x101a0fc1]
mov byte [ebp - 0xb0], cl
push 0x2b
push 0
lea edx, [ebp - 0xaf]
push edx
call fcn.1014e270
add esp, 0xc
movzx eax, byte [0x101d4f6c]
test eax, eax
je 0x100a43b0
push 0x101de1fc
lea ecx, [ebp - 0xb0]
push ecx
call fcn.1014e930
add esp, 8
lea edx, [ebp - 0xb0]
push edx
call fcn.1014e8a0
add esp, 4
test eax, eax
jbe 0x100a43fd
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.1014e8a0
add esp, 4
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.101153c0
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0xc], eax
mov byte [0x101de659], 1
mov byte [0x101de228], 1
jmp 0x100a4418
mov edx, dword [0x101a1a18]
push edx
push 0
push 0x101de660
lea ecx, [ebp - 0x84]
call fcn.100861f0
xor eax, eax
cmp dword [ebp - 0x74], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x100a44c2
push 0x101de234
lea edx, [ebp - 0x84]
push edx
call fcn.10082ac0
add esp, 8
movzx eax, al
test eax, eax
je 0x100a4450
mov byte [0x101de1f9], 1
jmp 0x100a44c2
movzx ecx, byte [0x101de65c]
neg ecx
sbb ecx, ecx
add ecx, 1
movzx edx, cl
test edx, edx
je 0x100a4476
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x101de65c
call fcn.100a6600
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x70], 0x10
jb 0x100a4493
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x134], edx
jmp 0x100a449f
lea eax, [ebp - 0x84]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.101153c0
add esp, 0xc
mov edx, dword [ebp - 0x50]
mov dword [edx + 0xc], eax
mov dword [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.10042350
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c68a
mov esp, ebp
pop ebp
ret