Function at 0x535ba0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x228c
call fcn.0060f180
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [0x6a9b28]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x18]
xor esi, esi
cmp eax, esi
je 0x535bd6
mov byte [eax], 0
mov dword [ebx + 0x1c], esi
cmp byte [ebx + 0x10], 0
jne 0x535be2
push ebx
call fcn.00535733
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x535fdd
cmp dword [eax + 4], esi
je 0x535fdd
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jne 0x535cf0
push 0x2cc
lea eax, [esp + 0x13c]
push esi
push eax
call fcn.005fc0d0
add esp, 0xc
lea eax, [esp + 0x138]
push eax
mov dword [esp + 0x13c], 0x10007
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
push pe_nt_image_headers32
lea eax, [esp + 0x34]
push esi
push eax
call fcn.005fc0d0
mov eax, dword [esp + 0x1fc]
mov ecx, dword [esp + 0x1f8]
add esp, 0xc
push 3
mov dword [esp + 0x34], eax
pop eax
push 0x420
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x200]
lea eax, [esp + 0x654]
push esi
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], esi
call fcn.005fc0d0
add esp, 0xc
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, 0x248
push edi
lea eax, [esp + 0x40c]
push esi
push eax
mov dword [esp + 0x65c], 0x20
mov dword [esp + 0x674], 0x400
mov dword [esp + 0x24], 0x18
call fcn.005fc0d0
mov dword [esp + 0x414], edi
add esp, 0xc
mov dword [esp + 0x10], esi
mov edi, 0x14c
jmp 0x535f69
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
lea eax, [esp + 0x13c]
push esi
push eax
call fcn.005fc0d0
add esp, 0xc
lea eax, [esp + 0x138]
push eax
push edi
mov dword [esp + 0x140], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x535c36
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0x14]
jmp 0x535fe9
push 0x1828
lea eax, [esp + 0xa74]
push esi
push eax
call fcn.005fc0d0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, eax
add esp, 0xc
or edx, ecx
mov dword [esp + 0xa70], eax
mov dword [esp + 0xa74], ecx
je 0x535f3c
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x650]
push edx
lea edx, [esp + 0x167c]
push edx
push dword [esp + 0x3c]
push eax
push dword [ebx + 8]
call dword [ecx + 0x28]
test eax, eax
je 0x535deb
push 0x400
lea edx, [esp + 0x670]
lea esi, [esp + 0xa7c]
call fcn.00538365
mov eax, dword [ebx + 4]
push 0x1000
mov esi, 0x400
push esi
lea ecx, [esp + 0xe80]
push ecx
lea ecx, [esp + 0x678]
push ecx
call dword [eax + 0x3c]
mov eax, dword [ebx + 4]
push 0
push esi
lea ecx, [esp + 0x1280]
push ecx
lea ecx, [esp + 0x678]
push ecx
call dword [eax + 0x3c]
xor esi, esi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
cmp eax, esi
je 0x535e35
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x1684]
push ecx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [ebx + 8]
call eax
test eax, eax
je 0x535e35
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0x400
lea esi, [esp + 0x168c]
mov dword [esp + 0x1688], eax
call fcn.00538365
xor esi, esi
lea eax, [esp + 0x408]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00535633
test al, al
je 0x535f3c
mov eax, dword [esp + 0x428]
cmp eax, 8
mov dword [esp + 0x1a88], eax
ja case.default.0x535e6b
jmp dword [eax*4 + 0x535ffc]
mov dword [esp + 0x1a8c], str._nosymbols_
jmp 0x535eee
mov dword [esp + 0x1a8c], str.COFF
jmp 0x535eee
mov dword [esp + 0x1a8c], 0x67ab74
jmp 0x535eee
mov dword [esp + 0x1a8c], 0x67ab78
jmp 0x535eee
mov dword [esp + 0x1a8c], str._exported_
jmp 0x535eee
mov dword [esp + 0x1a8c], str._deferred_
jmp 0x535eee
mov dword [esp + 0x1a8c], 0x67ab94
jmp 0x535eee
mov dword [esp + 0x1a8c], 0x67ab98
jmp 0x535eee
mov dword [esp + 0x1a8c], str.Virtual
jmp 0x535eee
mov dword [esp + 0x1a8c], esi
push 0x400
lea edx, [esp + 0x430]
lea esi, [esp + 0x1a94]
call fcn.00538365
mov eax, dword [esp + 0x410]
mov dword [esp + 0x1e90], eax
mov eax, dword [esp + 0x414]
push 0x400
lea edx, [esp + 0x550]
lea esi, [esp + 0x1e9c]
mov dword [esp + 0x1e98], eax
call fcn.00538365
xor esi, esi
xor eax, eax
inc eax
cmp dword [esp + 0x10], esi
jne 0x535f47
xor eax, eax
mov edx, dword [ebx]
lea ecx, [esp + 0xa70]
push ecx
push eax
mov ecx, ebx
call dword [edx + 4]
test al, al
je 0x535faa
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
je 0x535f99
inc dword [esp + 0x10]
mov eax, dword [ebx + 4]
push esi
push dword [eax + 0x1c]
lea ecx, [esp + 0x140]
push dword [eax + 0x14]
push 0x536020
push ecx
lea ecx, [esp + 0x44]
push ecx
push dword [ebp + 0x10]
push dword [ebx + 8]
push edi
call dword [eax + 0x38]
test eax, eax
jne 0x535d3f
jmp 0x535fb1
mov eax, dword [ebx]
lea ecx, [esp + 0xa70]
push ecx
push 2
mov ecx, ebx
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [ebx + 0x18]
cmp ebx, esi
jne 0x535fc6
mov ebx, 0x631a7e
mov eax, dword [ebp + 0xc]
push ebx
call fcn.0053fee3
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x535ff1
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc