Function at 0x525c82
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a324
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0xa
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 9
ja case.0x5259a7.3
mov edx, dword [ebp - 0x38]
jmp dword [edx*4 + 0x525d78]
push 0xa
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x2a0]
add ecx, 1
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x2a0], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x2a0], 3
jle 0x525a2e
mov ecx, dword [ebp - 0x34]
add ecx, 0x264
call fcn.004e9c20
push eax
call fcn.004e6010
add esp, 4
mov dword [ebp - 0x14], 0
push 1
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0x27c
call fcn.004e9c20
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x24c
call fcn.004e9c20
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00538da0
mov dword [ebp - 0x4c], eax
jmp case.0x5259a7.3
mov ecx, dword [ebp - 0x34]
add ecx, 0x264
call fcn.004e9c20
push eax
call fcn.004e5d00
add esp, 4
test eax, eax
je 0x525a5f
push 0
push 0x7d0
push 0xa
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00546370
jmp 0x525a95
mov dword [ebp - 0x18], 0
push 1
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x34]
add ecx, 0x27c
call fcn.004e9c20
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x24c
call fcn.004e9c20
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00538da0
mov dword [ebp - 0x48], eax
jmp case.0x5259a7.3
push 0xb
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
lea eax, [ebp - 0x30]
push eax
call fcn.004e6f00
add esp, 4
mov dword [ebp - 4], 0
push 0x584d74
lea ecx, [ebp - 0x30]
call fcn.004e9d10
test eax, eax
je 0x525ae9
call fcn.004e6de0
cmp eax, 4
jl 0x525ae9
push 0
push 1
push 0x4d4
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004e9960
jmp case.0x5259a7.3
mov ecx, dword [0x5ecbc4]
add ecx, 1
mov dword [0x5ecbc4], ecx
cmp dword [0x5ecbc4], 3
jl 0x525b2c
mov dword [0x5ecbc4], 0
push 0x11
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
jmp case.0x5259a7.3
call fcn.004e7a20
movzx edx, al
test edx, edx
je 0x525ba2
mov ecx, dword [ebp - 0x34]
call fcn.00529860
mov dword [0x5ecbc8], 0
push 0x10
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
push 0
push 0
push 0x4d0
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d90
push 0
push 0xea60
push 0x13
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00546370
push 0
push 0x7530
push 0xc
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00546370
mov ecx, dword [ebp - 0x34]
call fcn.00539630
jmp 0x525bcf
mov eax, dword [0x5ecbc8]
add eax, 1
mov dword [0x5ecbc8], eax
cmp dword [0x5ecbc8], 0x14
jle 0x525bcf
mov dword [0x5ecbc8], 0
push 0x10
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
jmp case.0x5259a7.3
push 0xc
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x2a6]
test edx, edx
jne 0x525c0d
mov eax, dword [ebp - 0x34]
mov byte [eax + 0x2a6], 1
push 0
push 0
push 0x530
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d90
push 0
push 0
push 0x4cf
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d90
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x2a7]
test edx, edx
jne 0x525c43
push 0
push 0
push 0x532
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d90
push 0
push 0
push 0x533
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d90
jmp case.0x5259a7.3
push 0xe
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
push 0
push 0
push 0x4ce
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d90
jmp case.0x5259a7.3
push 0xf
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.hours_later__run_update
call fcn.004e8f40
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x34]
call fcn.0052b810
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
push 0x530540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x5259a7.3
push 0x12
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
mov ecx, dword [ebp - 0x34]
call fcn.00529860
jmp case.0x5259a7.3
push 0x584f9c
call fcn.004e5d00
add esp, 4
test eax, eax
je 0x525d2a
mov dword [0x5ecbcc], 0
push 0x13
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
push 0
push 0xea60
push 0xb
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00546370
jmp case.0x5259a7.3
mov edx, dword [0x5ecbcc]
add edx, 1
mov dword [0x5ecbcc], edx
cmp dword [0x5ecbcc], 0x14
jle case.0x5259a7.3
mov dword [0x5ecbcc], 0
push 0x13
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00545d70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret 0x10