Function at 0x536b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 1
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
lock xadd dword [ebx], eax
test eax, eax
je 0x536b33
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xfa
call edi
xor eax, eax
lock xadd dword [ebx], eax
cmp eax, 1
jne 0x536b21
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x536baa
cmp byte [esi + 0x2d], 0
je 0x536b4a
mov byte [esi + 0x2d], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0x3c]
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x536b7c
cmp byte [esi + 0x80], 0
je 0x536b66
push 0
mov ecx, esi
call fcn.00536770
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov eax, dword [esi + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x30], 0
cmp byte [esi + 0x2c], 0
je 0x536b8f
mov eax, dword [esi + 4]
mov byte [esi + 0x2c], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esi + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 4], 0
movups xmm0, xmmword [0x624110]
movups xmmword [esi + 8], xmm0
mov eax, dword [esi + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x536bc2
push eax
call edi
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x536bd4
push eax
call edi
mov dword [esi + 0x38], 0xffffffff
mov edi, dword [esi + 0x48]
mov dword [ebp - 8], edi
test edi, edi
je 0x536cad
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x40]
mov ebx, dword [ecx + eax*4]
test ebx, ebx
je 0x536c88
push 2
push dword [ebx]
call fcn.0058bb51
push 2
push dword [ebx + 4]
call fcn.0058bb51
push 2
push dword [ebx + 8]
call fcn.0058bb51
add esp, 0x18
lea ecx, [ebx + 0x18]
push dword [ebx + 0x20]
push 0
call fcn.00534ca0
lea ecx, [ebx + 0x28]
call fcn.00534e70
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x536c4f
push eax
call fcn.005d1ed0
add esp, 4
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], 0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x536c74
push eax
call fcn.005d1ed0
add esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
push 0x38
push ebx
call fcn.0058bb51
mov ecx, dword [esi + 0x40]
add esp, 8
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x536be7
mov eax, dword [esi + 0x48]
sub eax, edi
shl eax, 2
push eax
lea eax, [ecx + edi*4]
push eax
push ecx
call fcn.005c9380
add esp, 0xc
sub dword [esi + 0x48], edi
mov ebx, dword [esi + 0x58]
test ebx, ebx
je 0x536ce7
xor edi, edi
mov eax, dword [esi + 0x50]
push 2
push dword [eax + edi*4]
call fcn.0058bb51
inc edi
add esp, 8
cmp edi, ebx
jb 0x536cb6
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x50]
sub eax, ebx
shl eax, 2
push eax
lea eax, [ecx + ebx*4]
push eax
push ecx
call fcn.005c9380
add esp, 0xc
sub dword [esi + 0x58], ebx
mov ebx, dword [esi + 0x78]
test ebx, ebx
je 0x536d21
xor edi, edi
mov eax, dword [esi + 0x70]
push 2
push dword [eax + edi*4]
call fcn.0058bb51
inc edi
add esp, 8
cmp edi, ebx
jb 0x536cf0
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x70]
sub eax, ebx
shl eax, 2
push eax
lea eax, [ecx + ebx*4]
push eax
push ecx
call fcn.005c9380
add esp, 0xc
sub dword [esi + 0x78], ebx
mov ebx, dword [esi + 0x68]
test ebx, ebx
je 0x536d61
xor edi, edi
nop word [eax + eax]
mov eax, dword [esi + 0x60]
push 2
push dword [eax + edi*4]
call fcn.0058bb51
inc edi
add esp, 8
cmp edi, ebx
jb 0x536d30
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x60]
sub eax, ebx
shl eax, 2
push eax
lea eax, [ecx + ebx*4]
push eax
push ecx
call fcn.005c9380
add esp, 0xc
sub dword [esi + 0x68], ebx
lea eax, [esi + 0x1c]
lock dec dword [eax]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret