Function at 0x1007fa60
Capabilities:
Create thread
Get system information on windows
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
mov eax, dword [0x10206870]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esi + 0x10], ebx
mov edi, dword [eax + 0x1c]
mov dword [esp + 0xc], edi
cmp edi, ebx
jne 0x1007fab1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1003dc89
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x50], ebx
je 0x1007fac7
push 0x101a86b0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, dword [edi + 0x50]
push eax
call ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x1007fae0
lea ecx, [esp + 0x34]
push ecx
call eax
mov edx, dword [esp + 0x48]
mov dword [esi + 0x1c], edx
cmp dword [edi + 0x58], ebx
je 0x1007fb1c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [edi + 0x58]
push eax
call edx
test eax, eax
je 0x1007fb1c
mov eax, 0xaa64
cmp word [esp + 0x24], ax
jne 0x1007fb1c
mov ecx, 0xc
mov word [esp + 0x34], cx
cmp dword [edi + 0x3c], ebx
je 0x1007fbb8
mov edi, dword [edi + 0x44]
cmp edi, ebx
je 0x1007fbb8
call edi
movzx eax, ax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003de3e
add esp, 4
cmp dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
jle 0x1007fc29
xor edi, edi
nop
push 0xc
call fcn.1003ddbb
add esp, 4
test eax, eax
je 0x1007fb7e
xor ecx, ecx
mov dword [eax], vtable.CTList_class_CCPUThread_.0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x1007fb80
xor eax, eax
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx], eax
mov edx, dword [esi + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [edi + edx + 4], 0xffffffff
mov eax, dword [esi + 0x14]
mov dword [edi + eax + 8], 0
mov edx, dword [ecx + 0x3c]
push ebx
call edx
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 4], eax
inc ebx
add edi, 0xc
cmp ebx, dword [esi + 0x10]
jl 0x1007fb60
jmp 0x1007fc29
xor ecx, ecx
mov eax, 1
mov dword [esi + 0x10], eax
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003de3e
add esp, 4
xor edi, edi
cmp dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
jle 0x1007fc29
xor ebx, ebx
push 0xc
call fcn.1003ddbb
add esp, 4
test eax, eax
je 0x1007fc03
xor ecx, ecx
mov dword [eax], vtable.CTList_class_CCPUThread_.0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x1007fc05
xor eax, eax
mov ecx, dword [esi + 0x14]
mov dword [ebx + ecx], eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov dword [edx + ebx + 4], eax
mov ecx, dword [esi + 0x14]
mov dword [ecx + ebx + 8], 0xffff
inc edi
add ebx, 0xc
cmp edi, dword [esi + 0x10]
jl 0x1007fbe5
mov edx, dword [esp + 0xc]
cmp dword [edx + 0x38], 0
je 0x1007fd27
push 0x4c
call fcn.1003de3e
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x38]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push 0xffff
mov dword [esp + 0x20], 0x4c
call edx
mov ebx, eax
test ebx, ebx
jne 0x1007fca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1007fc9e
push edi
call fcn.1003e211
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call fcn.1003de3e
mov edx, dword [esp + 0x10]
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
mov eax, dword [edx + 0x38]
push ecx
push edi
push 0xffff
call eax
mov ebx, eax
test ebx, ebx
je 0x1007fc65
mov edx, dword [esp + 0x14]
add edx, edi
mov ecx, edi
mov dword [esp + 0x58], ecx
cmp edi, edx
jae 0x1007fd1e
mov eax, dword [edi]
sub eax, 0
je 0x1007fd10
sub eax, 1
je 0x1007fcfa
sub eax, 3
jne 0x1007fd10
cmp dword [esi + 0x10], eax
jle 0x1007fd10
lea edx, [edi + 0x48]
xor ecx, ecx
mov dword [esp + 0x10], edx
movzx edx, word [edi + 0xa]
cmp eax, edx
jge 0x1007fce6
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 0x14]
mov ebx, dword [ebx]
mov dword [edx + ecx + 8], ebx
add dword [esp + 0x10], 0x2c
inc eax
add ecx, 0xc
cmp eax, dword [esi + 0x10]
jl 0x1007fcd1
mov ecx, dword [esp + 0x58]
jmp 0x1007fd10
movzx eax, word [edi + 0x24]
cmp eax, dword [esi + 0x10]
jge 0x1007fd10
mov edx, dword [esi + 0x14]
mov ebx, dword [edi + 0x20]
lea eax, [eax + eax*2]
mov dword [edx + eax*4 + 8], ebx
mov eax, dword [esp + 0x14]
add edi, dword [edi + 4]
lea edx, [ecx + eax]
cmp edi, edx
jb 0x1007fcb2
push ecx
call fcn.1003e211
add esp, 4
push 0x28
or edi, 0xffffffff
call fcn.1003ddbb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007fd78
lea eax, [esp + 0x58]
push eax
mov dword [ebx + 8], 3
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx], vtable.CWin32PerformanceTimer.0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1007fd7a
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
jmp 0x1007fd7a
xor ebx, ebx
call fcn.1013c470
mov edi, dword [eax + 0x34]
push ebx
call fcn.10001800
push 0x28
call fcn.1003ddbb
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x1007fdc2
or ecx, 0xffffffff
mov dword [eax + 8], 2
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax], vtable.CWin32SystemTimer.0
mov dword [eax + 0x10], 0x3e8
mov dword [eax + 0x14], ebx
mov edi, eax
jmp 0x1007fdc4
xor edi, edi
call fcn.1013c470
push edi
mov edi, dword [eax + 0x34]
call fcn.10001800
mov eax, dword [esi + 0x10]
cmp eax, ebx
mov edi, dword [esp + 0xc]
jle 0x1007ff85
cmp dword [edi + 0x4c], ebx
je 0x1007ff85
cmp dword [edi + 0x48], ebx
je 0x1007ff85
cmp eax, ebx
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x14], ebx
jle 0x10080051
mov dword [esp + 0x10], 0
lea ebx, [ebx]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x10]
cmp dword [eax + ecx + 4], 0
mov dword [esp + 0x18], 0
jle 0x1007ff69
lea ebx, [ebx]
movzx ecx, word [esp + 0x34]
push esi
call fcn.10083880
mov ebx, eax
test ebx, ebx
je 0x1007ff4c
lea edx, [esp + 0x20]
push edx
push 4
push ebx
push 0x10083810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x1c]
mov dword [esi + ecx*4 + 0x28], eax
mov eax, dword [esi + 0x1c]
cmp dword [esi + eax*4 + 0x28], 0
je 0x1007ff30
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x50], 0
je 0x1007feab
push eax
lea edx, [esp + 0x9c]
push str.InitThread__d
push edx
mov edx, 0x100
call fcn.1007fa40
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + ecx*4 + 0x28]
add esp, 0xc
lea eax, [esp + 0x98]
push eax
mov eax, dword [edi + 0x50]
push edx
call eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + ecx*4 + 0x28]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x48]
lea edi, [ebx + 0x30]
push edi
push edx
call ecx
test eax, eax
je 0x1007ff20
mov ecx, dword [esp + 0x18]
mov dx, word [esp + 0x14]
mov eax, 1
shl eax, cl
mov word [ebx + 0x34], dx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + edx*4 + 0x28]
mov edx, dword [ecx + 0x4c]
push edi
push eax
call edx
test eax, eax
jne 0x1007fefb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + eax*4 + 0x28]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x48]
push edi
push ecx
call eax
test eax, eax
jne 0x1007ff19
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007ff20
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x20], ecx
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + edx*4 + 0x28]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [esi + 0x1134]
push ebx
call fcn.10005c20
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [ecx + edx]
push ebx
call fcn.10005c20
mov eax, dword [esp + 0x18]
inc dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x10]
inc eax
cmp eax, dword [ecx + edx + 4]
mov dword [esp + 0x18], eax
jl 0x1007fe30
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 0xc
inc eax
cmp eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
jl 0x1007fe10
jmp 0x10080051
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov eax, dword [edi + 0x60]
test eax, eax
je 0x1007ffa1
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
call eax
mov edi, dword [edi + 0x5c]
test edi, edi
je 0x1007ffb0
mov eax, dword [esp + 0x2c]
push eax
push ebx
call edi
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jle 0x10080051
lea edi, [esi + 0x28]
mov dword [esp + 0x10], edi
cmp ebx, 0x1f
jg 0x10080051
movzx ecx, word [esp + 0x34]
push esi
call fcn.10083880
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10080040
lea ecx, [esp + 0x20]
push ecx
push 4
push eax
push 0x10083810
push 0
push 0
mov dword [eax + 0x20], ebx
mov dword [eax + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
test eax, eax
je 0x1008001d
mov ecx, ebx
mov edx, 1
shl edx, cl
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov eax, dword [edi]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 0x1134]
push ecx
call fcn.10005c20
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
push edx
call fcn.10005c20
mov edi, dword [esp + 0x10]
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x1c]
mov dword [esp + 0x10], edi
jl 0x1007ffc2
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jle 0x1008007c
lea edi, [esi + 0x28]
mov eax, dword [edi]
test eax, eax
je 0x10080073
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [edi]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x1c]
jl 0x1008005b
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jle 0x100800a2
lea edi, [esi + 0x28]
mov eax, dword [edi]
test eax, eax
je 0x10080099
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x1c]
jl 0x10080086
push esi
call fcn.10080cd0
mov eax, dword [esi + 0x112c]
test eax, eax
je 0x10080237
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10080237
mov eax, dword [ecx + 4]
test eax, eax
je 0x10080237
lea esp, [esp]
cmp dword [eax + 0x10], 0
je 0x100800f7
test ecx, ecx
je 0x10080237
mov eax, dword [ecx + 8]
test eax, eax
je 0x10080237
mov ecx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x100800d0
jmp 0x10080237
cmp dword [eax + 0x34], 0
jne 0x10080115
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10080110
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x10080110
mov ecx, dword [ecx + 4]
jmp 0x10080112
xor ecx, ecx
mov dword [eax + 0x34], ecx
mov eax, dword [eax + 0x34]
test eax, eax
je 0x10080124
mov eax, dword [eax + 0x2e8]
jmp 0x10080127
or eax, 0xffffffff
and eax, 0xffffff00
cmp eax, 0x2001000
je 0x1008013e
cmp eax, 0x2002000
jne 0x10080237
push esi
call fcn.10080760
cmp dword [esi + 0x1138], 0
je 0x10080237
mov eax, dword [esi + 0x1134]
test eax, eax
je 0x10080237
mov ebx, dword [eax + 4]
mov dword [esp + 0x5c], ebx
test ebx, ebx
je 0x10080237
mov eax, dword [ebx + 4]
test eax, eax
je 0x10080237
lea esp, [esp]
mov ecx, dword [eax + 0x10]
xor edi, edi
test ecx, ecx
je 0x10080190
mov edi, dword [ecx + 0x10]
test edi, edi
jne 0x100801ac
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1008019e
mov edi, dword [ecx + 0x10]
test edi, edi
jne 0x100801ac
mov eax, dword [eax + 8]
test eax, eax
je 0x100801a8
mov edi, dword [eax + 0x10]
test edi, edi
je 0x1008021b
mov edx, dword [esi + 0x1138]
movzx eax, byte [edx + 0x17]
xor ecx, ecx
mov dword [edi + 0x2c], eax
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003de3e
mov dword [edi + 0x30], eax
xor eax, eax
add esp, 4
cmp dword [edi + 0x2c], eax
jle 0x1008021b
xor ecx, ecx
mov edi, edi
mov edx, dword [esi + 0x113c]
movzx edx, byte [edx + eax*2]
mov ebx, dword [edi + 0x30]
mov dword [ebx + ecx + 4], edx
mov edx, dword [esi + 0x113c]
movzx edx, byte [edx + eax*2 + 1]
mov ebx, dword [edi + 0x30]
mov dword [ebx + ecx + 8], edx
mov edx, dword [edi + 0x30]
mov dword [edx + ecx + 0xc], 0xffffffff
inc eax
add ecx, 0x10
cmp eax, dword [edi + 0x2c]
jl 0x100801e0
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x10080237
mov eax, dword [ebx + 8]
test eax, eax
je 0x10080237
mov ebx, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], ebx
test eax, eax
jne 0x10080180
mov edi, 0x10000
test dword [esi + 0x20], edi
je 0x10080315
lea eax, [esp + 0x20]
push eax
push 4
push esi
push 0x10083740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x1028], eax
test eax, eax
je 0x10080319
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x1008027d
push 0x101a86d8
push eax
call ecx
cmp dword [esi + 0x10], 0
jle 0x100802ee
cmp dword [ebx + 0x4c], 0
je 0x100802ee
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x100802ee
mov edx, dword [esi + 0x1028]
lea ecx, [esp + 0x58]
push ecx
push edx
call eax
test eax, eax
je 0x100802fd
xor eax, eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [ebx + 0x4c]
lea edx, [esp + 0x5c]
mov word [esp + 0x60], ax
mov eax, dword [esi + 0x1028]
push edx
push eax
mov dword [esp + 0x64], 1
call ecx
test eax, eax
jne 0x100802d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x1028]
mov ecx, dword [ebx + 0x48]
lea edx, [esp + 0x58]
push edx
push eax
call ecx
test eax, eax
jne 0x100802fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100802fd
mov edx, dword [esi + 0x1028]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov eax, dword [esi + 0x1028]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esi + 0x24], 1
jmp 0x10080319
mov ebx, dword [esp + 0xc]
test dword [esi + 0x20], edi
je 0x100805b0
xor eax, eax
cmp dword [esi + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jle 0x100805b0
lea edi, [esi + 0x102c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], edi
jmp 0x10080349
mov ebx, dword [esp + 0xc]
mov edx, dword [esi + 0x14]
add edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push 4
push edx
push 0x10147ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
test eax, eax
je 0x10080431
cmp dword [ebx + 0x50], 0
je 0x100803a6
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x9c]
push str.Group__d
push ecx
mov edx, 0x100
call fcn.1007fa40
mov eax, dword [edi]
mov ecx, dword [ebx + 0x50]
add esp, 0xc
lea edx, [esp + 0x98]
push edx
push eax
call ecx
cmp dword [esi + 0x10], 0
jle 0x10080418
cmp dword [ebx + 0x4c], 0
je 0x10080418
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x10080418
mov ecx, dword [edi]
lea edx, [esp + 0x74]
push edx
push ecx
call eax
test eax, eax
je 0x10080423
mov dx, word [esp + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x10]
mov word [esp + 0x78], dx
mov edx, dword [eax + ecx + 8]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], edx
mov edx, dword [edi]
push ecx
push edx
call eax
test eax, eax
jne 0x100803ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov eax, dword [ebx + 0x48]
lea ecx, [esp + 0x74]
push ecx
push edx
call eax
test eax, eax
jne 0x10080423
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10080423
mov ecx, dword [edi]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov edx, dword [edi]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc dword [esi + 0x24]
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax]
xor ebx, ebx
test eax, eax
je 0x1008044d
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x1008044d
mov eax, dword [ebx + 4]
jmp 0x1008044f
xor eax, eax
mov dword [esp + 0x1c], 1
test eax, eax
je 0x1008058e
mov edx, dword [esp + 0x14]
lea edi, [esi + edx*4 + 0x828]
lea ebx, [ebx]
lea ecx, [esp + 0x20]
push ecx
push 4
push eax
push 0x10083570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
test eax, eax
je 0x10080565
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x50], 0
je 0x100804d2
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x9c]
push 0x101a86fc
push eax
mov edx, 0x100
call fcn.1007fa40
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [eax + 0x50]
push edx
call ecx
mov eax, dword [esp + 0xc]
cmp dword [esi + 0x10], 0
jle 0x10080545
cmp dword [eax + 0x4c], 0
je 0x10080545
mov eax, dword [eax + 0x48]
test eax, eax
je 0x10080545
mov ecx, dword [edi]
lea edx, [esp + 0x68]
push edx
push ecx
call eax
test eax, eax
je 0x1008055a
mov dx, word [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov word [esp + 0x6c], dx
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
push edx
mov edx, dword [ecx + 0x4c]
push eax
call edx
test eax, eax
jne 0x10080528
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x68]
push eax
mov eax, dword [edx + 0x48]
push ecx
call eax
test eax, eax
jne 0x1008055a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1008055a
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, 1
shl edx, cl
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov ecx, dword [edi]
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esp + 0x1c]
inc dword [esp + 0x14]
rol edx, 1
add edi, 4
mov dword [esp + 0x1c], edx
test ebx, ebx
je 0x1008058e
mov eax, dword [ebx + 8]
test eax, eax
je 0x1008058e
mov ebx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x10080470
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x58]
add dword [esp + 0x10], 0xc
inc eax
add edi, 4
cmp eax, dword [esi + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], edi
jl 0x10080345
xor edi, edi
cmp dword [esi + 0x24], edi
jle 0x100805d6
lea ebx, [esi + 0x1028]
lea ecx, [ecx]
mov eax, dword [ebx]
test eax, eax
je 0x100805cd
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jl 0x100805c0
xor edi, edi
cmp dword [esi + 0x1c], edi
jle 0x100805f9
lea ebx, [esi + 0x828]
mov eax, dword [ebx]
test eax, eax
je 0x100805f0
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc edi
add ebx, 4
cmp edi, dword [esi + 0x1c]
jl 0x100805e3
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1003dc89
mov esp, ebp
pop ebp
ret