Function at 0x10006d30
Capabilities:
Link many functions at runtime
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x94], eax
xorps xmm0, xmm0
push 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
push eax
push 0x400000
movq qword [ebp - 0x9c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 8], eax
test eax, eax
jne 0x10006d95
mov eax, dword [0x40003c]
mov eax, dword [eax + 0x40001c]
add eax, 0x400000
mov dword [ebp - 8], eax
cmp byte [0x101833fe], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push edi
mov byte [0x101833fb], 1
jne 0x10006dd5
push 0x1002eb7c
call ebx
test eax, eax
je 0x10006dd5
push 0x1002eb7c
call ebx
mov dword [ebp - 0x10], eax
mov byte [0x101833fe], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add eax, ecx
jmp 0x10006dde
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp byte [0x101833f9], 0
mov dword [ebp - 0x14], eax
jne 0x10006e11
push 0x1002eb88
call ebx
test eax, eax
je 0x10006e11
push 0x1002eb88
call ebx
mov dword [ebp - 0x1c], eax
mov byte [0x101833f9], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add eax, ecx
jmp 0x10006e1a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp byte [0x101833f0], 0
mov dword [ebp - 0x20], eax
jne 0x10006e4d
push 0x1002eb98
call ebx
test eax, eax
je 0x10006e4d
push 0x1002eb98
call ebx
mov dword [ebp - 0x28], eax
mov byte [0x101833f0], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add eax, ecx
jmp 0x10006e56
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
cmp byte [0x101833fd], 0
mov dword [ebp - 0x2c], eax
jne 0x10006e89
push 0x1002eba8
call ebx
test eax, eax
je 0x10006e89
push 0x1002eba8
call ebx
mov dword [ebp - 0x34], eax
mov byte [0x101833fd], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add eax, ecx
jmp 0x10006e92
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
cmp byte [0x101833fa], 0
mov dword [ebp - 0x38], eax
jne 0x10006ec5
push 0x1002ea98
call ebx
test eax, eax
je 0x10006ec5
push 0x1002ea98
call ebx
mov dword [ebp - 0x40], eax
mov byte [0x101833fa], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add eax, ecx
jmp 0x10006ece
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
cmp byte [0x10183404], 0
mov dword [ebp - 0x44], eax
jne 0x10006f01
push 0x1002ebb8
call ebx
test eax, eax
je 0x10006f01
push 0x1002ebb8
call ebx
mov dword [ebp - 0x4c], eax
mov byte [0x10183404], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add eax, ecx
jmp 0x10006f0a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
cmp byte [0x101833e9], 0
mov dword [ebp - 0x50], eax
jne 0x10006f42
push 0x1002ebc4
call ebx
test eax, eax
je 0x10006f42
push 0x1002ebc4
call ebx
mov edi, eax
mov byte [0x101833e9], 1
mov dword [ebp - 0x58], edi
mov ecx, dword [edi + 0x3c]
mov ecx, dword [ecx + edi + 0x1c]
add edi, ecx
mov dword [ebp - 0x5c], edi
jmp 0x10006f4e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x1c
mov dword [ebp - 0x68], eax
call fcn.10008628
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push dword [ebp - 0x68]
mov edi, eax
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x10007536
nop dword [eax]
mov eax, dword [esi + 8]
cmp eax, edi
je 0x10007524
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10007521
mov eax, dword [ebp - 0x94]
cmp dword [esi + 0xc], eax
jne 0x1000751a
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007050
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0x6c]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10007002
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10007050
push 0
push 4
lea eax, [ebp - 0x70]
push eax
push 9
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x6c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10007050
cmp dword [ebp - 0x70], 0x400000
jb 0x10007050
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 8]
ja 0x10007050
movzx eax, byte [0x101833fc]
mov ecx, 1
cmp byte [0x101833fb], 0
cmovne eax, ecx
mov byte [0x101833fc], al
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100070b6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10007092
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100070b6
push 0
push 4
lea eax, [ebp - 0x74]
push eax
push 9
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x74]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 0x10]
jb 0x100070e2
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x14]
ja 0x100070e2
movzx eax, byte [0x101833fc]
mov ecx, 1
cmp byte [0x101833fe], 0
cmovne eax, ecx
mov byte [0x101833fc], al
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007148
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10007124
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10007148
push 0
push 4
lea eax, [ebp - 0x78]
push eax
push 9
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x78]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 0x1c]
jb 0x10007174
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x20]
ja 0x10007174
movzx eax, byte [0x101833fc]
mov ecx, 1
cmp byte [0x101833f9], 0
cmovne eax, ecx
mov byte [0x101833fc], al
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100071da
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0x24]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100071b6
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100071da
push 0
push 4
lea eax, [ebp - 0x7c]
push eax
push 9
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 0x28]
jb 0x10007206
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x2c]
ja 0x10007206
movzx eax, byte [0x101833fc]
mov ecx, 1
cmp byte [0x101833f0], 0
cmovne eax, ecx
mov byte [0x101833fc], al
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000726c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0x30]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10007248
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000726c
push 0
push 4
lea eax, [ebp - 0x80]
push eax
push 9
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x80]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 0x34]
jb 0x10007298
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x38]
ja 0x10007298
movzx eax, byte [0x101833fc]
mov ecx, 1
cmp byte [0x101833fd], 0
cmovne eax, ecx
mov byte [0x101833fc], al
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007304
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0x3c]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100072da
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10007304
push 0
push 4
lea eax, [ebp - 0x84]
push eax
push 9
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x3c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x84]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 0x40]
jb 0x10007330
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x44]
ja 0x10007330
movzx eax, byte [0x101833fc]
mov ecx, 1
cmp byte [0x101833fa], 0
cmovne eax, ecx
mov byte [0x101833fc], al
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000739c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10007372
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000739c
push 0
push 4
lea eax, [ebp - 0x88]
push eax
push 9
push dword [ebp - 0x48]
call esi
push dword [ebp - 0x48]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x88]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 0x4c]
jb 0x100073c8
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x50]
ja 0x100073c8
movzx eax, byte [0x101833fc]
mov ecx, 1
cmp byte [0x10183404], 0
cmovne eax, ecx
mov byte [0x101833fc], al
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007434
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0x54]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1000740a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10007434
push 0
push 4
lea eax, [ebp - 0x8c]
push eax
push 9
push dword [ebp - 0x54]
call esi
push dword [ebp - 0x54]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 0x58]
jb 0x10007460
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x5c]
ja 0x10007460
movzx eax, byte [0x101833fc]
mov ecx, 1
cmp byte [0x101833e9], 0
cmovne eax, ecx
mov byte [0x101833fc], al
push 0x1002ea7c
push 0x1002ea98
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100074cd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0x60]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100074a0
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100074cd
push 0
push 4
lea eax, [ebp - 0x90]
push eax
push 9
push dword [ebp - 0x60]
call esi
push dword [ebp - 0x60]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x100074cd
cmp dword [ebp - 0x90], 0x9c8ef6d
je 0x10007502
mov ecx, edi
call fcn.10005e30
cmp eax, 0xd217f7
jbe 0x10007502
mov ecx, edi
call fcn.10005e30
cmp eax, 0x1000000
jbe 0x10007502
cmp byte [0x101833fc], 0
jne 0x10007509
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10007510
mov byte [0x101833fc], 1
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [ebp - 4]
mov byte [0x101833fc], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x64]
push esi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10006f90
push 0x1c
push esi
call fcn.10008980
add esp, 8
mov byte [0x101833fc], 0
mov byte [0x101833fb], 0
mov byte [0x101833fe], 0
mov byte [0x101833f9], 0
pop edi
pop esi
mov byte [0x101833f0], 0
mov byte [0x101833fd], 0
mov byte [0x101833fa], 0
mov byte [0x10183404], 0
mov byte [0x101833e9], 0
pop ebx
mov esp, ebp
pop ebp
ret