Function at 0x1d28590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, edx
mov ebx, ecx
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x1d285c7
mov eax, dword [0x1d92fa0]
cmp eax, 0xffffffff
je 0x1d28665
mov ebx, 0x100000
test eax, eax
jne 0x1d285c7
mov ebx, 0x80000
mov esi, dword [ebp + 0x10]
push 0x10
call fcn.01cc3150
add esp, 4
mov edx, edi
shr edx, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x1d96330]
bt ecx, edx
jae 0x1d28657
push edi
mov esi, eax
call fcn.01cf3ea0
mov eax, esi
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [eax], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [eax + 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
xor edx, edx
lea ecx, [ebp - 0x14]
mov dword [ecx], edx
push ecx
push 0x10000
push eax
push 0x1d28c30
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test eax, eax
je 0x1d2869d
test edi, edi
je 0x1d28685
mov eax, dword [ebp - 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
shr ecx, 0x15
mov byte [ecx + 0x1d9e330], 1
jmp 0x1d285fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x1d92fa0
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1d2868e
mov eax, dword [0x1d92fa0]
jmp 0x1d285b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1d2863e
mov dword [0x1d92fa0], 0
jmp 0x1d285c2
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1d286b9
mov edi, eax
cmp eax, 0x5af
je 0x1d286b9
cmp edi, 0xe
jne 0x1d28722
lea esi, [ebp - 0x20]
push 0xd9
push 0x1d81c30
push str.CreateThreadInternal
push esi
call fcn.01cf89a0
add esp, 0x10
push esi
push ebx
call fcn.01cf4fd0
add esp, 8
cmp dword [ebp - 0x2c], 0
mov esi, dword [ebp - 0x30]
je 0x1d2863e
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x1d96330]
bt edx, ecx
jae 0x1d2870f
push eax
call fcn.01cf3fa0
add esp, 4
push dword [ebp - 0x2c]
call fcn.01cc3180
add esp, 4
mov esi, dword [ebp - 0x30]
jmp 0x1d2863e
mov eax, dword [0x1da317c]
mov ecx, dword [0x1d93658]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1d28798
lea esi, [ebp - 0x20]
push edi
push esi
call fcn.01d2e790
add esp, 8
movzx eax, byte [esi + 0xb]
test al, al
js 0x1d28759
and eax, 0x7f
jmp 0x1d2875f
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
lea ebx, [ebp - 0x28]
mov ecx, ebx
push eax
push esi
call fcn.01cf1490
push dword [ebx + 4]
push dword [ebx]
push dword [0x1da3178]
call fcn.01d46210
add esp, 0xc
cmp byte [ebp - 0x15], 0
jns 0x1d286de
push dword [ebp - 0x20]
call fcn.01cc3180
add esp, 4
jmp 0x1d286de
push 0x1da317c
call fcn.01cc31f7
add esp, 4
cmp dword [0x1da317c], 0xffffffff
jne 0x1d2873f
push 0x20
push str.create_thread_last_error
call fcn.01d461f0
add esp, 8
mov dword [0x1da3178], eax
push 0x1da317c
call fcn.01cc326d
add esp, 4
jmp 0x1d2873f