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

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x64]
lea eax, [ebx + ebx]
push ebp
mov dword [esp + 0x1c], eax
cmp dword [0x629f98], 0xffffffff
push esi
push edi
jne 0x578720
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x54]
mov dword [0x629f98], edx
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov esi, dword [eax]
mov edi, dword [ebp]
cmp esi, edi
je 0x578748
mov ecx, ebx
imul ecx, dword [esp + 0x7c]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 4]
mov edi, dword [ebp + 4]
cmp esi, edi
je 0x578776
mov eax, dword [esp + 0x7c]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
imul ecx, dword [esp + 0x74]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x68]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax + 8]
mov edi, dword [ebp + 8]
cmp esi, edi
je 0x5787a0
mov eax, dword [esp + 0x7c]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
imul ecx, dword [esp + 0x74]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x78]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x7c]
cdq
and edx, 0xf
add eax, edx
mov edi, eax
mov eax, dword [0x629f98]
sar edi, 4
sar esi, 4
cmp eax, 1
mov dword [esp + 0x1c], edi
jle 0x57895b
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x7c]
mov dword [0x6f8d04], eax
mov eax, dword [esp + 0x74]
mov dword [0x6f8d10], eax
mov dword [0x6f8d18], edx
mov edx, dword [esp + 0x80]
lea eax, [edi - 1]
mov dword [esp + 0x6c], eax
mov dword [0x6f8d1c], edx
cdq
sub eax, edx
mov dword [0x6f8d14], ecx
mov ecx, dword [esp + 0x84]
sar eax, 1
mov dword [0x6f8d08], ebp
mov dword [0x6f8d0c], ebx
mov dword [0x6f8d20], ecx
mov dword [0x6f8d24], esi
mov dword [0x6f8d28], edi
mov dword [0x6f8d2c], 0
mov dword [esp + 0x20], eax
mov dword [0x6f8d30], eax
mov dword [0x6f8d34], 0x5785a0
call fcn.00578540
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x6c]
jge 0x57893e
mov edx, ebx
shl edx, 5
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x74]
shl edx, 4
mov dword [esp + 0x28], edx
mov edx, eax
shl edx, 5
lea edi, [edx + 0xe]
imul edi, ebx
mov ecx, eax
mov dword [esp + 0x18], edi
imul ecx, esi
add edx, 0x1e
imul edx, ebx
mov edi, eax
mov eax, dword [esp + 0x6c]
shl edi, 4
add edi, 0xe
imul edi, dword [esp + 0x74]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
jmp 0x5788c0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x5788c0
mov eax, dword [ebp]
push esi
push ecx
mov ecx, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x88]
push ecx
push dword [esp + 0x88]
mov ecx, dword [ebp + 8]
push ebx
add ecx, edi
push ecx
mov ecx, dword [ebp + 4]
add ecx, edi
add edx, eax
push ecx
push edx
mov edx, dword [esp + 0x40]
add edx, eax
push edx
call fcn.00577b00
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
add ecx, esi
add edi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x44]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x4c]
add esp, 0x2c
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jne 0x5788b3
mov edi, dword [esp + 0x1c]
mov eax, dword [0x6f8cfc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x6f8d34], 0
jmp 0x578a26
lea eax, [edi - 1]
test eax, eax
mov dword [esp + 0x6c], eax
jle 0x578a2a
mov edi, dword [esp + 0x74]
mov ecx, ebx
shl ecx, 5
mov dword [esp + 0x28], ecx
mov ecx, edi
shl ecx, 4
mov dword [esp + 0x2c], ecx
mov ecx, ebx
imul ecx, ecx, 0xe
mov dword [esp + 0x10], ecx
mov ecx, ebx
imul ecx, ecx, 0x1e
imul edi, edi, 0xe
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jmp 0x5789a7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
push esi
push edx
mov edx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x88]
push edx
mov edx, dword [ebp + 8]
push ebx
add edx, edi
push edx
mov edx, dword [ebp + 4]
add edx, edi
add ecx, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
push ecx
call fcn.00577b00
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
add ecx, esi
add edi, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x3c]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x4c]
add esp, 0x2c
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jne 0x5789a3
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
mov edx, dword [ebp]
mov ecx, eax
imul eax, esi
shl ecx, 4
add ecx, 7
imul ecx, ebx
test esi, esi
lea ecx, [edx + ecx*2]
mov dword [esp + 0x2c], ecx
jle 0x578b17
mov ebx, dword [esp + 0x24]
mov edx, ecx
sub edx, ebx
lea edi, [ebx + ecx]
lea ebx, [ecx + ebx*2]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x80]
lea eax, [ebx + eax*4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x18], esi
jmp 0x578a90
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
jmp 0x578a90
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
mov eax, dword [eax*4 + 0x5ed618]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
sub eax, edi
sub ecx, edi
sub edx, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], 0x10
jmp 0x578ad0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea ecx, [ecx]
add eax, edi
push eax
push edi
add edx, edi
lea ebx, [ecx + edi]
mov ecx, dword [esp + 0x44]
push edx
push ecx
call fcn.00577630
mov eax, dword [esp + 0x30]
add esp, 0x10
add edi, 2
dec eax
mov dword [esp + 0x20], eax
jne 0x578ac1
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x18], eax
jne 0x578a78
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x1c]
cmp dword [0x629f98], 1
jle 0x578ccd
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
mov dword [0x6f8d18], eax
mov eax, dword [esp + 0x84]
mov dword [0x6f8d20], eax
mov dword [0x6f8d04], edx
mov edx, dword [esp + 0x74]
lea eax, [esi - 1]
mov dword [0x6f8d10], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x68], eax
mov dword [0x6f8d30], eax
mov eax, dword [0x629f9c]
test eax, eax
mov dword [0x6f8d14], ecx
mov ecx, dword [esp + 0x80]
mov dword [0x6f8d08], ebp
mov dword [0x6f8d0c], ebx
mov dword [0x6f8d1c], ecx
mov dword [0x6f8d24], esi
mov dword [0x6f8d28], edi
mov dword [0x6f8d2c], 0
mov dword [0x6f8d34], 0x578670
je 0x578bef
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [0x6f8d00], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0x578500
push 0
push 0
mov dword [0x6f8cfc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x629f9c], 0
mov edx, dword [0x6f8d00]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x68]
lea eax, [esi - 1]
cmp ecx, eax
mov dword [esp + 0x68], ecx
jge 0x578cb0
mov eax, ecx
shl eax, 5
shl ecx, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
jmp 0x578c30
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
lea esp, [esp]
mov edx, dword [ebp]
push edi
add eax, edx
mov edx, dword [esp + 0x6c]
push esi
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [ebp + 8]
lea edx, [ecx + edx + 0xe]
push ebx
push edx
mov edx, dword [ebp + 4]
lea ecx, [edx + ecx + 0xe]
push ecx
lea edx, [eax + 0x1e]
push edx
add eax, 0xe
push eax
call fcn.00577ca0
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
add ecx, 0x20
add esp, 0x30
inc eax
mov dword [esp + 0x6c], ecx
add edx, 0x10
lea ecx, [esi - 1]
cmp eax, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
jl 0x578c21
mov eax, dword [0x6f8cfc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x6f8d34], 0
jmp 0x578d74
xor ecx, ecx
lea eax, [esi - 1]
cmp eax, ecx
mov dword [esp + 0x68], ecx
jle 0x578d74
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
jmp 0x578cf0
mov ecx, dword [esp + 0x70]
lea esp, [esp]
mov edx, dword [ebp]
mov eax, dword [esp + 0x6c]
push edi
add eax, edx
mov edx, dword [esp + 0x6c]
push esi
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [ebp + 8]
lea edx, [ecx + edx + 0xe]
push ebx
push edx
mov edx, dword [ebp + 4]
lea ecx, [edx + ecx + 0xe]
push ecx
lea edx, [eax + 0x1e]
push edx
add eax, 0xe
push eax
call fcn.00577ca0
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
add ecx, 0x20
add esp, 0x30
inc eax
mov dword [esp + 0x6c], ecx
add edx, 0x10
lea ecx, [esi - 1]
cmp eax, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
jl 0x578ce8
mov edx, dword [ebp]
lea eax, [esi - 1]
mov ecx, eax
shl ecx, 5
test edi, edi
lea ebx, [ecx + edx + 0xe]
jle 0x578ddf
mov edx, dword [esp + 0x80]
lea ecx, [esi*4]
mov dword [esp + 0x7c], ecx
lea esi, [edx + eax*4]
mov dword [esp + 0x74], edi
mov eax, dword [esi]
mov edi, dword [eax*4 + 0x5ed618]
mov ebp, 0x10
mov edi, edi
lea ecx, [ebx + 4]
push ecx
lea edx, [ebx + 2]
push edx
lea eax, [ebx - 2]
push eax
push edi
call fcn.00577630
mov ecx, dword [esp + 0x34]
add esp, 0x10
add ebx, ecx
dec ebp
jne 0x578db0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
add esi, ecx
dec eax
mov dword [esp + 0x74], eax
jne 0x578da0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret