Function at 0x5aeef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x38], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x30], edx
mov ax, word [eax + 0x10]
mov word [ebp - 0x2c], ax
movsx ecx, byte [0x1276e2d]
cmp ecx, 1
jne 0x5aef5c
cmp dword [0x1276e34], 0
je 0x5aef55
mov edx, dword [0x1276e34]
mov eax, dword [edx]
mov ecx, dword [0x1276e34]
push ecx
mov edx, dword [eax + 8]
call edx
mov dword [0x1276e34], 0
mov byte [0x1276e2d], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.005ccae8
add esp, 4
mov dword [0x1276df4], eax
cmp dword [0x1276df4], 0
jne 0x5aef7d
xor eax, eax
jmp 0x5af1f7
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x1276df4]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.WINMM.dll_mmioRead]
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0x24], 0x181c0
mov edx, dword [ebp - 0x34]
shl edx, 1
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
push 0
push 0x1276b50
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [0x1276dec]
mov eax, dword [edx]
mov ecx, dword [0x1276dec]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x5af00b
mov eax, dword [0x1276df4]
push eax
call fcn.005cbb3c
add esp, 4
xor eax, eax
jmp 0x5af1f7
push 0x1276e34
push 0x5fa078
mov ecx, dword [0x1276b50]
mov edx, dword [ecx]
mov eax, dword [0x1276b50]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x5af06c
mov edx, dword [0x1276df4]
push edx
call fcn.005cbb3c
add esp, 4
cmp dword [0x1276b50], 0
je 0x5af065
mov eax, dword [0x1276b50]
mov ecx, dword [eax]
mov edx, dword [0x1276b50]
push edx
mov eax, dword [ecx + 8]
call eax
mov dword [0x1276b50], 0
xor eax, eax
jmp 0x5af1f7
push 0
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [0x1276274], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [0x1276278], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [0x127627c], eax
mov dword [ebp - 0x60], 0
mov ecx, dword [0x1276274]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x58], edx
mov eax, dword [0x1276278]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [0x127627c]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x60]
push edx
push 3
mov eax, dword [0x1276e34]
mov ecx, dword [eax]
mov edx, dword [0x1276e34]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x5af157
cmp dword [0x1276e34], 0
je 0x5af11b
mov ecx, dword [0x1276e34]
mov edx, dword [ecx]
mov eax, dword [0x1276e34]
push eax
mov ecx, dword [edx + 8]
call ecx
mov dword [0x1276e34], 0
mov edx, dword [0x1276df4]
push edx
call fcn.005cbb3c
add esp, 4
cmp dword [0x1276b50], 0
je 0x5af150
mov eax, dword [0x1276b50]
mov ecx, dword [eax]
mov edx, dword [0x1276b50]
push edx
mov eax, dword [ecx + 8]
call eax
mov dword [0x1276b50], 0
xor eax, eax
jmp 0x5af1f7
mov byte [0x1276e2d], 1
mov dword [0x1276e48], 0
mov ecx, dword [0x1276b50]
mov dword [0x1276258], ecx
mov dword [0x127625c], 0x1276274
mov dword [0x1276260], 3
mov dword [0x1276264], 2
mov edx, dword [0x1276df4]
mov dword [0x1276268], edx
mov eax, dword [ebp - 0x44]
mov dword [0x127626c], eax
mov ecx, dword [ebp - 0x34]
mov dword [0x1276270], ecx
push 0x1276d58
push 0
push 0x1276258
push 0x5ae990
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x1276b54], eax
cmp dword [0x1276b54], 0
jne 0x5af1dc
xor eax, eax
jmp 0x5af1f7
mov edx, 1
test edx, edx
je 0x5af1f2
cmp dword [0x1276e48], 0
je 0x5af1f0
jmp 0x5af1f2
jmp 0x5af1dc
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret