Function at 0x483740
Capabilities:
Create thread
Get system information on windows

Disassembly:
sub esp, 0xac
mov eax, dword [0x5ecd88]
mov dword [esp + 0x9c], ebx
mov ebx, 1
test eax, eax
mov dword [esp + 0xa8], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], edi
je 0x4837d0
mov eax, dword [0x5ecd8c]
test eax, eax
jne 0x4837f0
lea eax, [esp + 0x80]
mov dword [esp], eax
call sub.msvcrt.dll__ftime
mov eax, dword [esp + 0x80]
mov dword [ebp], eax
movsx eax, word [esp + 0x84]
imul eax, eax, 0x3e8
mov dword [ebp + 4], eax
mov ebx, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
add esp, 0xac
ret
call fcn.0044d170
mov eax, dword [0x5ecd88]
test eax, eax
je 0x483994
call fcn.0044d1e0
mov eax, dword [0x5ecd8c]
test eax, eax
je 0x483780
mov dword [esp], 0x5ecd70
mov edi, 0xd53e8000
mov esi, 0x19db1de
mov dword [0x5ed1d0], edi
mov dword [0x5ed1d4], esi
call sub.KERNEL32.dll_EnterCriticalSection
sub esp, 4
lea eax, [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceCounter
sub esp, 4
mov esi, dword [0x5ecdb8]
mov ecx, 0xa
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov edi, dword [0x5ecdbc]
mov dword [esp + 0x28], eax
sub eax, dword [0x5ecdb0]
mov dword [esp + 0x2c], edx
sbb edx, dword [0x5ecdb4]
mov dword [esp + 0x20], eax
mov eax, esi
shl eax, 2
mov dword [esp + 0x24], edx
mov edx, edi
shld edx, esi, 2
add eax, esi
adc edx, edi
shld edx, eax, 1
add eax, eax
add eax, esi
adc edx, edi
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00593e50
cmp dword [esp + 0x24], edx
jg 0x48395a
jl 0x48389e
cmp dword [esp + 0x20], eax
jae 0x48395a
imul ecx, dword [esp + 0x24], 0x989680
mov eax, 0x989680
mul dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov edi, 0xf4240
lea edx, [edx + ecx]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00593e50
add eax, dword [0x5ecda8]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
adc edx, dword [0x5ecdac]
mov dword [0x5ecda8], eax
sub eax, dword [0x5ed1d0]
mov dword [0x5ecdb0], ecx
mov dword [0x5ecdac], edx
sbb edx, dword [0x5ed1d4]
xor ecx, ecx
mov dword [0x5ecdb4], ebx
mov ebx, 0xa
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00593e50
mov dword [esp], eax
xor ecx, ecx
mov ebx, eax
mov dword [esp + 0xc], ecx
mov esi, edx
mov dword [esp + 8], edi
mov dword [esp + 4], edx
call fcn.00593e50
mov dword [ebp], eax
mov edx, 0xf4240
xor eax, eax
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
call fcn.00593c50
mov dword [ebp + 4], eax
mov dword [esp], 0x5ecd70
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
test ebx, ebx
jne 0x483780
mov ebx, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
add esp, 0xac
ret
mov dword [esp], 0x5ecda0
call sub.KERNEL32.dll_QueryPerformanceFrequency
mov dword [0x5ecd8c], eax
sub esp, 4
test eax, eax
je 0x483af4
mov edx, dword [0x5ecda4]
mov eax, dword [0x5ecda0]
test edx, edx
jl 0x483a02
jle 0x483b08
lea eax, [esp + 0x50]
mov dword [esp], eax
call sub.KERNEL32.dll_GetSystemInfo
sub esp, 4
lea esi, [esp + 0x40]
mov dword [esp + 4], esi
mov dword [esp], 0
call fcn.00460d70
test eax, eax
jne 0x4839fa
cmp dword [esp + 0x44], 0x756e6547
je 0x483b18
xor esi, esi
mov dword [0x5ecd8c], esi
mov ecx, dword [0x5ecd8c]
test ecx, ecx
je 0x483af4
mov dword [esp], 0x5ecd70
call sub.KERNEL32.dll_InitializeCriticalSection
xor eax, eax
sub esp, 4
xor edx, edx
mov dword [esp + 8], eax
xor eax, eax
xor edi, edi
mov dword [esp + 0xc], edx
mov esi, 0x484220
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x5ecd94], eax
sub esp, 0x10
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x5ecd98], eax
sub esp, 0x10
mov ecx, 0x100
mov dword [esp + 4], ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x5ecd90], eax
mov edx, 2
sub esp, 0x18
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_SetThreadPriority
sub esp, 8
mov eax, 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [0x5ecd94]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [0x5ecd94]
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], 0x483bf0
call fcn.00432ae0
mov eax, 1
mov dword [0x5ecd88], eax
call fcn.0044d1e0
jmp 0x4837e7
cmp eax, 0xe4e1c0
jbe 0x483a02
jmp 0x4839c5
cmp dword [esp + 0x4c], 0x49656e69
jne 0x4839fa
cmp dword [esp + 0x48], 0x6c65746e
jne 0x4839fa
mov dword [esp + 4], esi
mov dword [esp], 1
call fcn.00460d70
test eax, eax
jne 0x4839fa
mov edx, dword [esp + 0x40]
mov eax, edx
and eax, 0xf00
cmp eax, 0xf00
je 0x483b75
and edx, 0xf00000
je 0x4839fa
test byte [esp + 0x4f], 0x10
je 0x4839fa
movzx eax, byte [esp + 0x46]
cmp eax, dword [esp + 0x64]
jne 0x4839fa
mov edi, 1
mov dword [0x5ecd8c], edi
jmp 0x483a02