Function at 0x524030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576302
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5e56f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], esp
push str.OnCountHelperData
call fcn.004e8f80
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x2c]
call fcn.00527af0
push 0xd8
call fcn.0054a46d
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0
je 0x5240a5
mov ecx, dword [ebp - 0x38]
call fcn.00540760
mov dword [ebp - 0x40], eax
jmp 0x5240ac
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x28], ecx
push 0xd8
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0054cf60
add esp, 0xc
push 0x57e4cc
mov ecx, dword [ebp - 0x28]
call fcn.004e90e0
mov eax, dword [ebp - 0x2c]
add eax, 0x2d4
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x18
call fcn.004e90c0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2bc
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x30
call fcn.004e90c0
mov edx, dword [ebp - 0x2c]
add edx, 0x2ec
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x48
call fcn.004e90c0
lea eax, [ebp - 0x90]
push eax
call fcn.004e54f0
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
call fcn.004e9c60
push eax
lea edx, [ebp - 0xc0]
push edx
call fcn.004e19c0
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x60
call fcn.004e9050
lea ecx, [ebp - 0xc0]
call fcn.004e9090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004e99a0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x310
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x78
call fcn.004e90c0
push 0x57e4d8
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.004e90e0
push 0x57e4e0
mov ecx, dword [ebp - 0x28]
add ecx, 0x90
call fcn.004e90e0
push 0xc
lea ecx, [ebp - 0x24]
call fcn.00520d90
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.0052c300
mov dword [ebp - 4], 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], eax
push 4
lea ecx, [ebp - 0x14]
call fcn.00520d90
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.005485a0
push 4
lea ecx, [ebp - 0x18]
call fcn.00520d90
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.00543880
jmp 0x524217
lea ecx, [ebp - 0x14]
call fcn.00541d60
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00541b70
movzx ecx, al
test ecx, ecx
je 0x5242ba
lea ecx, [ebp - 0x14]
call fcn.00547b90
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
add edx, 0x18
push edx
push 0x57fb64
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.004f0c10
add esp, 0xc
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.004f0d00
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xcc
call fcn.004e9dc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.004e9090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call fcn.004e9090
jmp 0x52420f
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x2a7]
test edx, edx
je 0x52430a
mov dword [ebp - 0x30], 0
jmp 0x5242da
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2c
call fcn.004ea130
cmp dword [ebp - 0x30], eax
jae 0x52430a
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x2c
call fcn.004ea150
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xa8
call fcn.004e9ea0
jmp 0x5242d1
push 8
call fcn.0054a46d
add esp, 4
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x34], edx
push 8
push 0
mov eax, dword [ebp - 0x34]
push eax
call fcn.0054cf60
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
push 0
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push 0x53d7e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004f4e80
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret 0x10