Function at 0x57d648
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.0057d530
mov dword [esp], 0x205c
call fcn.004edfec
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.004eeae0
mov dword [ebx + 0x1c], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x62e445
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.004d6a3c
mov dword [ebx + 0xc], eax
test esi, 2
jne 0x57d83c
and esi, 4
jne 0x57d770
mov dword [esp + 0xc], 0x62e44c
mov dword [esp + 8], 0x62e451
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004dc05c
mov dword [esp + 0xc], 0x62e45e
mov dword [esp + 8], 0x62e463
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004dc05c
mov eax, dword [0x68cbb4]
mov edx, dword [eax]
test edx, edx
jne 0x57d764
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.004dc05c
mov eax, dword [ebx + 0xc]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.unicode
jmp 0x57d73c
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], 0x57cfb0
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 0x57d6e7
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], 0x57d088
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 0x57d6de