Function at 0x419ff0
Capabilities:
Allocate thread local storage
Create thread
Get system information on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, ecx
push esi
mov esi, edx
push edi
cmp dword [ebx], 0
mov dword [ebp - 4], esi
je 0x41a2d7
test byte [esi], 1
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
je 0x41a158
cmp dword [0x447cd8], 0xffffffff
lea esi, [ebx + 8]
jne 0x41a055
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edx, eax
cmp edx, 0xffffffff
je 0x41a0ac
mov ecx, edx
mov edi, 0x447cd8
or eax, 0xffffffff
lock cmpxchg dword [edi], ecx
cmp eax, 0xffffffff
je 0x41a050
push edx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 0x28], 0
jne 0x41a06c
push 0
push 0
push 1
push 0
call eax
mov dword [esi + 0x28], eax
test eax, eax
je 0x41a0ac
lea eax, [esi + 0x1c]
mov dword [eax + 8], 0
mov dword [eax], eax
mov dword [eax + 4], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
lea edi, [eax + eax]
mov eax, 6
cmp edi, eax
cmovb edi, eax
push edi
push 0
push 0
push 0xffffffffffffffff
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x41a0c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
test edi, edi
je 0x41a14a
nop
push 0
push 4
push esi
push 0x421b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x41a11c
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 0x28]
call edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0xc]
jb 0x41a0d0
jmp 0x41a150
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.004218d0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [ebp - 4]
test byte [esi], 8
je 0x41a1bf
cmp dword [ebx + 0x40], 0
lea esi, [ebx + 0x3c]
jne 0x41a185
push 0
push 0
push 1
push 0
call eax
mov dword [esi + 4], eax
test eax, eax
je 0x41a29d
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
push 4
push esi
push 0x421700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
je 0x41a29d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
mov esi, dword [ebp - 4]
test byte [esi], 0x10
lea edi, [ebx + 0x9c]
je 0x41a265
cmp dword [edi + 0x28], 0
jne 0x41a21f
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x28], eax
test eax, eax
je 0x41a28b
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x80000400
push edi
call esi
push 0x80000400
lea eax, [edi + 0x34]
push eax
call esi
test eax, eax
jne 0x41a21c
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], 0
jmp 0x41a28b
mov esi, dword [ebp - 4]
push 0
push 4
push edi
push 0x4214d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x2c], eax
test eax, eax
je 0x41a28b
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [edi + 0x2c]
mov dword [edi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x30], 1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi]
mov dword [ebx + 0x104], eax
test eax, eax
jne 0x41a2ce
test cl, 0x10
je 0x41a28b
mov ecx, edi
call fcn.004211f0
mov esi, dword [ebp - 4]
test byte [esi], 8
je 0x41a2a0
lea ecx, [ebx + 0x3c]
call fcn.004217b0
jmp 0x41a2a0
mov esi, dword [ebp - 4]
test byte [esi], 1
je 0x41a2bd
lea ecx, [ebx + 8]
call fcn.004218d0
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x20], 0
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 4], ecx
mov dword [ebx], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret