Function at 0x57af1c
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.0057ae54
mov dword [esp], 0x205c
call fcn.004edaf0
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.0050ee8c
mov dword [ebx + 0x1c], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x61c765
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.004d5fe0
mov dword [ebx + 0xc], eax
test esi, 2
jne 0x57b110
and esi, 4
jne 0x57b044
mov dword [esp + 0xc], 0x61c76c
mov dword [esp + 8], 0x61c771
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004db720
mov dword [esp + 0xc], 0x61c77e
mov dword [esp + 8], 0x61c783
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004db720
mov eax, dword [0x67c530]
mov edx, dword [eax]
test edx, edx
jne 0x57b038
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.004db720
mov eax, dword [ebx + 0xc]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.unicode
jmp 0x57b010
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], 0x57a900
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 0x57afbb
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], 0x57a9c0
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 0x57afb2