Function at 0x10006d30
Capabilities:
Link many functions at runtime
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 [0x10186dfe], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push edi
mov byte [0x10186dfb], 1
jne 0x10006dd8
push 0x1002eb7c
call ebx
test eax, eax
je 0x10006dd8
push 0x1002eb7c
call ebx
mov dword [ebp - 0x10], eax
mov byte [0x10186dfe], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x10006de4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x10186df9], 0
jne 0x10006e17
push 0x1002eb88
call ebx
test eax, eax
je 0x10006e17
push 0x1002eb88
call ebx
mov dword [ebp - 0x1c], eax
mov byte [0x10186df9], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0x10006e23
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp byte [0x10186df0], 0
jne 0x10006e56
push 0x1002eb98
call ebx
test eax, eax
je 0x10006e56
push 0x1002eb98
call ebx
mov dword [ebp - 0x28], eax
mov byte [0x10186df0], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x10006e62
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
cmp byte [0x10186dfd], 0
jne 0x10006e95
push 0x1002eba8
call ebx
test eax, eax
je 0x10006e95
push 0x1002eba8
call ebx
mov dword [ebp - 0x34], eax
mov byte [0x10186dfd], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x38], ecx
jmp 0x10006ea1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
cmp byte [0x10186dfa], 0
jne 0x10006ed4
push 0x1002ea90
call ebx
test eax, eax
je 0x10006ed4
push 0x1002ea90
call ebx
mov dword [ebp - 0x40], eax
mov byte [0x10186dfa], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x44], ecx
jmp 0x10006ee0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
cmp byte [0x10186e04], 0
jne 0x10006f13
push 0x1002ebb8
call ebx
test eax, eax
je 0x10006f13
push 0x1002ebb8
call ebx
mov dword [ebp - 0x4c], eax
mov byte [0x10186e04], 1
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x50], ecx
jmp 0x10006f1f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
cmp byte [0x10186de9], 0
jne 0x10006f51
push 0x1002ebc4
call ebx
test eax, eax
je 0x10006f51
push 0x1002ebc4
call ebx
mov edi, eax
mov byte [0x10186de9], 1
mov dword [ebp - 0x58], edi
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edi + 0x1c]
add eax, edi
jmp 0x10006f5a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
push 0
push 4
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x1c
mov dword [ebp - 0x68], eax
call fcn.10008618
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 0x1000752f
nop dword [eax]
mov eax, dword [esi + 8]
cmp eax, edi
je 0x1000751d
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1000751a
mov eax, dword [ebp - 0x94]
cmp dword [esi + 0xc], eax
jne 0x10007513
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007060
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 0x10007012
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10007060
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 0x10007060
cmp dword [ebp - 0x70], 0x400000
jb 0x10007060
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 8]
ja 0x10007060
movzx eax, byte [0x10186dfc]
mov ecx, 1
cmp byte [0x10186dfb], 0
cmovne eax, ecx
mov byte [0x10186dfc], al
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100070c6
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 0x100070a2
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100070c6
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 0x100070f2
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x14]
ja 0x100070f2
movzx eax, byte [0x10186dfc]
mov ecx, 1
cmp byte [0x10186dfe], 0
cmovne eax, ecx
mov byte [0x10186dfc], al
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007158
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 0x10007134
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10007158
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 0x10007184
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x20]
ja 0x10007184
movzx eax, byte [0x10186dfc]
mov ecx, 1
cmp byte [0x10186df9], 0
cmovne eax, ecx
mov byte [0x10186dfc], al
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100071ea
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 0x100071c6
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100071ea
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 0x10007216
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x2c]
ja 0x10007216
movzx eax, byte [0x10186dfc]
mov ecx, 1
cmp byte [0x10186df0], 0
cmovne eax, ecx
mov byte [0x10186dfc], al
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000727c
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 0x10007258
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000727c
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 0x100072a8
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x38]
ja 0x100072a8
movzx eax, byte [0x10186dfc]
mov ecx, 1
cmp byte [0x10186dfd], 0
cmovne eax, ecx
mov byte [0x10186dfc], al
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007314
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 0x100072ea
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10007314
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 0x10007340
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x44]
ja 0x10007340
movzx eax, byte [0x10186dfc]
mov ecx, 1
cmp byte [0x10186dfa], 0
cmovne eax, ecx
mov byte [0x10186dfc], al
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100073ac
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 0x10007382
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100073ac
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 0x100073d8
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x50]
ja 0x100073d8
movzx eax, byte [0x10186dfc]
mov ecx, 1
cmp byte [0x10186e04], 0
cmovne eax, ecx
mov byte [0x10186dfc], al
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007444
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 0x1000741a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10007444
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 0x10007470
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0x5c]
ja 0x10007470
movzx eax, byte [0x10186dfc]
mov ecx, 1
cmp byte [0x10186de9], 0
cmovne eax, ecx
mov byte [0x10186dfc], al
push 0x1002ea74
push 0x1002ea90
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100074dd
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 0x100074b0
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100074dd
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 0x100074dd
cmp dword [ebp - 0x90], 0x9c8ef6d
je 0x10007509
mov ecx, edi
call fcn.10005e30
cmp eax, 0xd217f7
jbe 0x10007509
mov ecx, edi
call fcn.10005e30
cmp eax, 0x1000000
jbe 0x10007509
cmp byte [0x10186dfc], 0
jne 0x10007509
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [ebp - 4]
mov byte [0x10186dfc], 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 0x10006fa0
push 0x1c
push esi
call fcn.10008970
add esp, 8
mov byte [0x10186dfc], 0
mov byte [0x10186dfb], 0
mov byte [0x10186dfe], 0
mov byte [0x10186df9], 0
pop edi
pop esi
mov byte [0x10186df0], 0
mov byte [0x10186dfd], 0
mov byte [0x10186dfa], 0
mov byte [0x10186e04], 0
mov byte [0x10186de9], 0
pop ebx
mov esp, ebp
pop ebp
ret