Function at 0x300104b6
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
call fcn.3001049d
cmp dword [0x3002a650], ebx
je 0x30010504
push ebx
push ebx
call dword [0x3002a658]
test eax, eax
jl 0x30010504
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov dword [0x3002ed50], 1
call dword [0x3002a660]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.30010803
mov edi, dword [ebp + 8]
push edi
call fcn.300107be
call fcn.30013b85
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x300105d5
cmp byte [esi + 0x208], bl
lea eax, [esi + 0x208]
je 0x300106a4
mov dword [0x3002a9d4], eax
lea eax, [esi + 0x428]
mov dword [0x3002abf8], eax
cmp dword [esi + 0x424], ebx
lea eax, [ebp - 0x14]
mov dword [0x3002abf4], edi
mov dword [0x3002abe8], eax
mov eax, dword [esi + 0x418]
mov dword [0x3002ac0c], eax
mov eax, dword [esi + 0x43c]
mov dword [0x3002ac10], eax
push ebx
je 0x30010588
call fcn.30013cc3
jmp 0x300106a4
push 0x3000906c
push ebx
push 0x67
push dword [0x3002eae4]
call fcn.30007c23
mov eax, dword [0x3002ac04]
cmp eax, ebx
je 0x300106a4
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x300105c4
push dword [0x3002ac04]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
push dword [0x3002ac04]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x300106a4
lea eax, [esi + 0x30c]
push 0x104
push 0x3002b96c
push eax
mov dword [ebp - 4], eax
call fcn.30025695
mov eax, dword [ebp - 4]
cmp dword [esi + 0x41c], ebx
mov dword [0x3002c3c4], eax
lea eax, [esi + 0x104]
mov dword [0x3002c39c], 1
mov dword [0x3002b964], esi
mov dword [0x3002b968], eax
jne 0x3001061f
push esi
call fcn.3000eced
mov eax, dword [esi + 0x410]
mov dword [0x3002c3bc], edi
mov dword [0x3002c3b4], eax
mov eax, dword [esi + 0x414]
mov dword [0x3002c3b8], eax
mov eax, dword [esi + 0x418]
mov dword [0x3002d828], eax
lea eax, [esi + 0x428]
mov dword [0x3002c3c0], eax
lea eax, [ebp - 0x14]
mov dword [0x3002d82c], eax
mov eax, dword [esi + 0x41c]
mov dword [0x3002d824], eax
mov eax, dword [esi + 0x424]
mov dword [0x3002d830], eax
mov eax, dword [esi + 0x43c]
mov dword [0x3002d834], eax
call fcn.300124f7
test eax, eax
je 0x30010690
lea eax, [ebp - 8]
push eax
call fcn.30012512
test eax, eax
je 0x300106a4
push ebx
push 0x30008dbc
push ebx
push 0x67
push dword [0x3002eae4]
call fcn.30007c23
cmp dword [ebp - 0xc], ebx
push 1
pop eax
je 0x300106b2
mov dword [esi + 0x420], eax
mov ecx, dword [esi + 0x418]
cmp ecx, ebx
je 0x300106ce
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0xc
push eax
push ecx
call fcn.3000ff71
cmp dword [0x3002ed50], ebx
je 0x300106e2
call dword [0x3002a654]
mov dword [0x3002ed50], ebx
call fcn.300104a8
cmp dword [ebp - 8], ebx
jne 0x300106f8
cmp dword [esi + 0x424], ebx
jne 0x300106f8
xor eax, eax
jmp 0x300106fb
push 1
pop eax
push eax
lea eax, [ebp - 0x14]
push dword [ebp - 4]
add esi, 0x428
push eax
push esi
call fcn.3000982c
cmp dword [0x3002d820], ebx
pop esi
je 0x30010720
push dword [ebp - 0xc]
call fcn.300125e0
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x3001072d
push eax
call fcn.3002425c
mov eax, dword [edi]
cmp eax, ebx
je 0x30010739
push eax
call fcn.3002425c
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x30010746
push eax
call fcn.3002425c
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x30010753
push eax
call fcn.3002425c
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x30010760
push eax
call fcn.3002425c
mov edi, dword [edi + 0x2c]
cmp edi, ebx
je 0x3001076d
push edi
call fcn.3002425c
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x3002a24c]
je 0x30010782
cmp eax, ebx
je 0x30010782
push eax
call fcn.3002425c
mov dword [0x3002c3c4], ebx
pop edi
pop ebx
leave
ret 0xc