Function at 0x4a0238
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x5d3d20]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a02f9
push 0xe5
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x5d3d4c]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a0341
push 0x12b
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x5d4ccc]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a0389
push 0x171
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x61a548]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a03d1
push 0x1b7
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x5d4648]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a0419
push 0x1fd
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba24]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a0461
push 0x243
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba44]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a04a9
push 0x289
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba54]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a04f1
push 0x2cf
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
jge 0x4a090d
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_EnterCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a052b
push 0x379
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba2c]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a0573
push 0x3ac
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_LeaveCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a059a
push 0x3d9
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x28], eax
jge 0x4a08da
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_EnterCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a05cd
push 0x43a
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba34]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a0615
push 0x46d
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_LeaveCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a063c
push 0x49a
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4a0654
cmp dword [ebp - 0x2c], 1
je 0x4a0654
xor eax, eax
jmp 0x4a0659
mov eax, 1
test eax, eax
je 0x4a0666
jmp 0x4a090d
cmp dword [ebp - 0x2c], 2
jne 0x4a06a3
mov dword [ebp - 0x44], esp
push 0x64
push 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
cmp dword [ebp - 0x44], esp
je 0x4a069e
push 0x57e
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
jmp 0x4a04f8
inc dword [ebp - 0x24]
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x61cfc8]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
lea eax, [ebp - 0x24]
push eax
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a06ee
push 0x61a
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
mov eax, 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0
push dword [ebp + 8]
push 0x4a2556
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
cmp dword [ebp - 0x44], esp
je 0x4a0735
push 0x67a
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4a07e5
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_EnterCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a0769
push 0x6f4
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba34]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
mov eax, 0xffffffff
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a07b9
push 0x720
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_LeaveCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a07e0
push 0x756
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
jmp 0x4a090d
mov dword [ebp - 0x44], esp
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x44], esp
je 0x4a080c
push 0x785
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_EnterCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a0833
push 0x7c5
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba68]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a087b
push 0x7f8
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_LeaveCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a08a2
push 0x825
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push 0x64
push 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
cmp dword [ebp - 0x44], esp
je 0x4a08d0
push 0x83f
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x4a080c
mov dword [ebp - 0x44], esp
push 0x64
push 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
cmp dword [ebp - 0x44], esp
je 0x4a0908
push 0x8b0
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
jmp 0x4a04f8
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_EnterCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a0934
push 0x90f
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba2c]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a097c
push 0x942
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_LeaveCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a09a3
push 0x96f
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push 0x64
push 0xffffffff
call sub.KERNEL32.DLL_WaitForSingleObject
cmp dword [ebp - 0x44], esp
je 0x4a09d1
push 0x989
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
cmp dword [ebp - 0x28], 0
jne 0x4a090d
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba34]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a0a23
push 0xa11
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4a0b72
mov ebx, dword [0x96593c]
call fcn.00406fc4
xor ecx, ecx
push eax
lea eax, [ebp - 0x38]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4a0aba
mov ebx, dword [0x96593c]
call fcn.00403718
push ebx
push ecx
mov eax, dword [ebp - 0x38]
dec eax
jns 0x4a0a79
push 0xabb
push 0x41702a4
push 4
call fcn.004b785a
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4a0a96
push 0xabb
push 0x41702a4
push 1
call fcn.004b785a
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebx]
cmp dword [ebp + 8], eax
jne 0x4a0ab2
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
pop eax
pop ebx
pop ecx
jmp 0x4a0a41
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x4a0b6d
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0
push 0
push dword [ebp - 0x6c]
push 1
push 0
push 1
push 0
push 1
push 0xffffffff
push 1
push dword [ebp - 0x3c]
push dword [ebp - 4]
call fcn.004a0da8
jmp 0x4a0d05
cmp dword [ebp - 0x2c], 0
jne 0x4a0d05
fild dword [ebp + 8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x8aba4c]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
fld qword [ebp - 0x50]
call fcn.004020b4
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_RtlMoveMemory
cmp dword [ebp - 0x54], esp
je 0x4a0bc4
push 0xc60
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov ebx, dword [0x96593c]
call fcn.00406fc4
xor ecx, ecx
push eax
lea eax, [ebp - 0x38]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4a0c51
mov ebx, dword [0x96593c]
call fcn.00403718
push ebx
push ecx
mov eax, dword [ebp - 0x38]
dec eax
jns 0x4a0c10
push 0xcd3
push 0x41702a4
push 4
call fcn.004b785a
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4a0c2d
push 0xcd3
push 0x41702a4
push 1
call fcn.004b785a
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebx]
cmp dword [ebp + 8], eax
jne 0x4a0c49
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
pop eax
pop ebx
pop ecx
jmp 0x4a0bd8
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x4a0d00
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0
push 0
push dword [ebp - 0x6c]
push 1
push dword [ebp - 0x40]
push 1
push dword [ebp - 0x20]
push 1
push 0
push 1
push dword [ebp - 0x3c]
push dword [ebp - 4]
call fcn.004a0da8
jmp 0x4a0d05
mov dword [ebp - 0x44], esp
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_DeleteCriticalSection
cmp dword [ebp - 0x44], esp
je 0x4a0d2c
push 0xe65
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_HeapDestroy
cmp dword [ebp - 0x44], esp
je 0x4a0d53
push 0xe7f
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x44], esp
je 0x4a0d7a
push 0xe99
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x44], esp
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x44], esp
je 0x4a0da1
push 0xeb3
push 0x41702a4
push 6
call fcn.004b785a
add esp, 0xc
mov esp, ebp
pop ebp
ret 4