Function at 0x57cac4
Capabilities:
Create thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
call fcn.0057c9ac
mov dword [esp], 0x205c
call fcn.004ed800
mov ebx, eax
mov ecx, 0x205c
xor eax, eax
mov edi, ebx
rep stosb byte es:[edi], al
mov dword [ebx + 0x10], esi
mov eax, dword [esp + 0x70]
mov dword [ebx], eax
call sub.KERNEL32.dll_GetConsoleCP
mov dword [esp + 8], eax
mov dword [esp + 4], str.cp_d
lea edi, [esp + 0x34]
mov dword [esp], edi
call sub.USER32.dll_wsprintfA
call fcn.004ee2f4
mov dword [ebx + 0x1c], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x61ec45
mov dword [esp], ebp
call sub.msvcrt.dll_sprintf
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], str.console
call fcn.004d6320
mov dword [ebx + 0xc], eax
test esi, 2
jne 0x57ccb8
and esi, 4
jne 0x57cbec
mov dword [esp + 0xc], 0x61ec4c
mov dword [esp + 8], 0x61ec51
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004db940
mov dword [esp + 0xc], 0x61ec5e
mov dword [esp + 8], 0x61ec63
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004db940
mov eax, dword [0x67fbb4]
mov edx, dword [eax]
test edx, edx
jne 0x57cbe0
mov dword [esp + 0xc], edi
mov dword [esp + 8], str._encoding
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004db940
mov eax, dword [ebx + 0xc]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.unicode
jmp 0x57cbb8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [ebx + 0x28], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [ebx + 0x30], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [ebx + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x57c42c
mov dword [esp + 4], 0x100
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [ebx + 0x20], eax
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.KERNEL32.dll_SetThreadPriority
sub esp, 8
jmp 0x57cb63
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_GetConsoleMode
sub esp, 8
mov eax, dword [esp + 0x30]
and eax, 0xffffffe7
or eax, 2
mov dword [esp + 0x30], eax
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_SetConsoleMode
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [ebx + 0x2c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [ebx + 0x38], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [ebx + 0x3c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x57c504
mov dword [esp + 4], 0x100
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [ebx + 0x24], eax
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.KERNEL32.dll_SetThreadPriority
sub esp, 8
jmp 0x57cb5a