Function at 0x10052288
Capabilities:
Resolve function by parsing pe exports
Suspend thread

Disassembly:
sub esp, 0x3ac
mov dword [esp + 0xc], edi
mov edi, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0xa
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov dword [esp + 4], ebx
imul ebx, edx, 0xa
mov edx, 0xa
mul edx
add edx, ebx
mov dword [esp + 8], esi
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x28]
mov eax, edi
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xa
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
call fcn.10024998
xor al, 1
jne 0x1005268f
cmp byte [edi + 0x29], 0
je 0x10052663
mov ecx, 0x100913bc
push ecx
call sub.KERNEL32.DLL_LeaveCriticalSection
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xa4], ebx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xa0], 0xfffffffe
imul ecx, edx, 0x2710
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x1c], esi
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0xd0], eax
mov esi, dword [esp + 0xd0]
xor eax, eax
mov dword [esp + 0xd8], 0
mov dword [esp + 0xd4], edx
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0xdc], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xa8], eax
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xac]
imul ecx, edx, 0x2710
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xdc], ebx
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0xc8], eax
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xcc], edx
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x64], esi
mov edx, dword [esp + 0x64]
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xfffffffe
mov dword [esp + 0x38], 0
push edx
push eax
lea eax, [esp + 0x20]
call fcn.10047a94
xor ecx, ecx
cmp eax, ecx
jle 0x10052500
mov dword [esp + 0x54], ecx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0xb4], ebx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0xb0], 1
imul esi, edx, 0x2710
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x50], 1
mov edx, 0x2710
mul edx
add edx, esi
mov dword [esp + 0xb8], eax
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0xbc], edx
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], ebx
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
push edx
push eax
lea eax, [esp + 0x20]
call fcn.10047a94
xor ecx, ecx
cmp eax, ecx
jns 0x10052500
mov dword [esp + 0x4c], ecx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x7c], ebx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x78], 1
imul esi, edx, 0x2710
mov eax, dword [esp + 0x78]
mov edx, 0x2710
mul edx
add edx, esi
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x9c], edx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x48], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
push dword [esp + 0xd4]
push dword [esp + 0xdc]
lea eax, [esp + 0x20]
call fcn.10047a94
test eax, eax
jle 0x1005258f
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x90], edx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x94], ecx
mov edx, dword [esp + 0x94]
xor ecx, ecx
push esi
mov ebx, 0x2710
push edi
call fcn.10063626
pop edi
pop esi
mov esi, eax
push esi
call sub.KERNEL32.DLL_Sleep
push dword [esp + 0xd4]
push dword [esp + 0xdc]
lea eax, [esp + 0x20]
call fcn.1005281c
push dword [esp + 0xd4]
push dword [esp + 0xdc]
lea eax, [esp + 0x20]
call fcn.10047a94
test eax, eax
jg 0x10052557
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, 0x2710
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x6c]
xor ecx, ecx
mov dword [esp + 0x68], esi
mov eax, dword [esp + 0x68]
push esi
push edi
call fcn.10063626
pop edi
pop esi
push eax
call sub.KERNEL32.DLL_Sleep
mov dword [esp + 0x44], 0
mov dword [esp + 0x88], 0xa
mov esi, dword [esp + 0x44]
mov dword [esp + 0x8c], esi
mov edx, dword [esp + 0x8c]
imul ecx, edx, 0x2710
mov eax, dword [esp + 0x88]
mov dword [esp + 0x40], 0xa
mov edx, 0x2710
mul edx
add edx, ecx
mov dword [esp + 0x80], eax
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x84], edx
mov esi, dword [esp + 0x84]
mov dword [esp + 0x74], esi
mov edx, dword [esp + 0x74]
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x70]
push edx
push eax
lea eax, [esp + 0x18]
call fcn.10047a94
test eax, eax
jns 0x10052648
push 0
push 2
lea eax, [esp + 0x18]
call fcn.10057f5c
mov ecx, 0x100913bc
push ecx
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, edi
call fcn.10024998
xor al, 1
jne 0x1005268f
jmp 0x100522f7
mov edx, dword [edi + 0xc]
push edx
sub esp, 4
call sub.KERNEL32.DLL_GetCurrentThreadId
add esp, 4
pop edx
cmp edx, eax
je 0x100526ba
push dword [edi + 8]
call sub.KERNEL32.DLL_SuspendThread
cmp eax, 0xffffffff
jne 0x100526ba
mov eax, edi
call fcn.10024998
xor al, 1
je 0x100526ab
mov eax, edi
call fcn.10024c18
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x3ac
xor eax, eax
ret
mov ebx, 0x1005224c
xor eax, eax
push ebx
push 0x18
call fcn.1002bacc
mov dword [esp + 0xe0], 0x10003
lea ecx, [esp + 0xe0]
push ecx
push dword [edi + 8]
call sub.KERNEL32.DLL_GetThreadContext
test eax, eax
jne 0x100526e8
mov edx, 0x10052268
xor eax, eax
push edx
push 0x1d
call fcn.1002bacc
movsx ebx, byte [edi + 0x4c]
xor bl, 1
je 0x100526fe
mov ecx, dword [edi + 0x48]
mov esi, dword [esp + 0x1a4]
mov dword [ecx + 4], esi
mov edx, dword [esp + 0x190]
mov dword [edi + 0x54], edx
mov eax, dword [esp + 0x184]
mov dword [edi + 0x58], eax
mov ebx, dword [esp + 0x18c]
mov dword [edi + 0x5c], ebx
mov esi, dword [esp + 0x188]
mov dword [edi + 0x60], esi
mov ecx, dword [esp + 0x17c]
mov dword [edi + 0x64], ecx
mov edx, dword [esp + 0x180]
mov dword [edi + 0x68], edx
mov eax, dword [esp + 0x194]
mov dword [edi + 0x6c], eax
mov ebx, dword [esp + 0x1a4]
mov eax, 1
mov dword [edi + 0x70], ebx
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x3ac
ret