Function at 0x1002a1a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f2a90
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp esi, edi
jne 0x1002a1ed
mov eax, 0x80070057
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
cmp eax, edi
jl 0x1002a446
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x70], edi
cmp byte [0x101dd380], 0
mov dword [esp + 0x1c], edi
jne 0x1002a430
lea ecx, [ecx]
lea ecx, [esp + 0x34]
push ecx
call fcn.1002a470
mov byte [esp + 0x70], 1
mov dword [esp + 0x18], edi
cmp dword [ebp + 0xc], edi
ja 0x1002a246
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x44]
jmp 0x1002a36b
xor edi, edi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
test al, al
je 0x1002a23b
mov edx, dword [esi]
mov edx, dword [edx + 4]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.__x__x__n
call fcn.100d1b69
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
add esp, 0xc
push 0x1c
mov dword [esp + 0x28], edx
call fcn.100d164d
mov esi, eax
add esp, 4
test esi, esi
je 0x1002a2f3
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x28]
push ecx
push 0
push esi
push 0x1002a170
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x2c]
push 0
push 0
mov dword [esi], 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
call fcn.100d4199
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1002a2f7
push esi
call fcn.100d072d
add esp, 4
xor esi, esi
jmp 0x1002a2f9
mov esi, eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x24], esi
test edx, edx
jne 0x1002a309
xor ecx, ecx
jmp 0x1002a312
mov ecx, dword [esp + 0x48]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x44]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x1002a32c
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x44], eax
jmp 0x1002a354
mov esi, eax
cmp edx, eax
jbe 0x1002a337
call fcn.100d13c5
mov eax, dword [esp + 0x34]
push esi
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
call fcn.10023fc0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebp + 0xc]
jb 0x1002a244
mov esi, dword [ebp + 8]
xor edi, edi
mov edx, dword [esp + 0x40]
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, edi
je 0x1002a39e
ja 0x1002a389
call fcn.100d13c5
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
push 1
sub eax, edx
push edx
sar eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x1c], edi
jne 0x1002a3ee
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov byte [esp + 0x70], 0
test al, al
mov eax, dword [esp + 0x40]
je 0x1002a407
cmp eax, edi
je 0x1002a3c6
push eax
call fcn.100d072d
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.100d072d
add esp, 4
cmp byte [0x101dd380], 0
je 0x1002a220
jmp 0x1002a42d
mov byte [esp + 0x70], 0
cmp edx, edi
je 0x1002a400
push edx
call fcn.100d072d
add esp, 4
mov edx, dword [esp + 0x34]
push edx
jmp 0x1002a419
cmp eax, edi
je 0x1002a414
push eax
call fcn.100d072d
add esp, 4
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.100d072d
add esp, 4
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret