Function at 0x300102ed
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.300102d4
cmp dword [0x3002a650], ebx
je 0x3001033b
push ebx
push ebx
call dword [0x3002a658]
test eax, eax
jl 0x3001033b
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.3001062e
mov edi, dword [ebp + 8]
push edi
call fcn.300105e9
call fcn.300139af
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x3001040f
cmp byte [esi + 0x208], bl
lea eax, [esi + 0x208]
je 0x3001040f
mov dword [0x3002a9d4], eax
lea eax, [esi + 0x428]
mov dword [ebp + 8], eax
mov dword [0x3002abf8], eax
cmp dword [esi + 0x424], ebx
lea eax, [ebp - 0x14]
mov dword [0x3002abe8], eax
mov eax, dword [esi + 0x418]
mov dword [0x3002ac0c], eax
mov eax, dword [esi + 0x43c]
mov dword [0x3002abf4], edi
mov dword [0x3002ac10], eax
push ebx
je 0x300103c2
call fcn.30013aed
jmp 0x300104e1
push 0x30008fb4
push ebx
push 0x67
push dword [0x3002eae4]
call fcn.30007b69
mov eax, dword [0x3002ac04]
cmp eax, ebx
je 0x300104e1
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x300103fe
push dword [0x3002ac04]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
push dword [0x3002ac04]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x300104e1
lea eax, [esi + 0x30c]
push 0x104
push 0x3002b96c
push eax
mov dword [ebp - 4], eax
call fcn.300254dd
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 0x30010459
push esi
call fcn.3000eb43
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 [ebp + 8], eax
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.30012321
test eax, eax
je 0x300104cd
lea eax, [ebp - 8]
push eax
call fcn.3001233c
test eax, eax
je 0x300104e1
push ebx
push 0x30008d02
push ebx
push 0x67
push dword [0x3002eae4]
call fcn.30007b69
cmp dword [ebp - 0xc], ebx
push 1
pop eax
je 0x300104ef
mov dword [esi + 0x420], eax
mov ecx, dword [esi + 0x418]
cmp ecx, ebx
je 0x3001050b
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0xc
push eax
push ecx
call fcn.3000fdc7
cmp dword [0x3002ed50], ebx
je 0x3001051f
call dword [0x3002a654]
mov dword [0x3002ed50], ebx
call fcn.300102df
cmp dword [ebp - 8], ebx
jne 0x30010535
cmp dword [esi + 0x424], ebx
jne 0x30010535
xor eax, eax
jmp 0x30010538
push 1
pop eax
push eax
lea eax, [ebp - 0x14]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.30009774
cmp dword [0x3002d820], ebx
pop esi
je 0x30010559
push dword [ebp - 0xc]
call fcn.3001240a
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x30010566
push eax
call fcn.300240a4
mov eax, dword [edi]
cmp eax, ebx
je 0x30010572
push eax
call fcn.300240a4
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x3001057f
push eax
call fcn.300240a4
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x3001058c
push eax
call fcn.300240a4
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x30010599
push eax
call fcn.300240a4
mov edi, dword [edi + 0x2c]
cmp edi, ebx
je 0x300105a6
push edi
call fcn.300240a4
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x3002a24c]
je 0x300105bb
cmp eax, ebx
je 0x300105bb
push eax
call fcn.300240a4
mov dword [0x3002c3c4], ebx
pop edi
pop ebx
leave
ret 0xc