Function at 0x425150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e8a9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x473b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov bl, byte [esi + 4]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], 1
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], eax
test bl, bl
je 0x4251d3
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 4], 0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push 0
lea ecx, [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x4252e5
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x38]
call fcn.00425350
mov eax, dword [esi + 0x34]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4252d8
xor eax, eax
jmp 0x425216
mov eax, dword [ebp - 0x18]
mov esi, dword [edi]
mov edi, dword [ebx + 0x10]
mov edx, dword [edi]
add esi, eax
mov dword [esi], edx
sub eax, 0xffffff80
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [edi + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x20]
push 0xffffffffffffffff
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x24]
push 0
lea edx, [edi + 0x28]
mov dword [esi + 0x24], ecx
push edx
lea ecx, [esi + 0x28]
call fcn.00403e20
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x44]
push eax
lea ecx, [esi + 0x44]
call fcn.00403e20
push 0xffffffffffffffff
push 0
add edi, 0x60
push edi
lea ecx, [esi + 0x60]
call fcn.00403e20
cmp byte [ebx + 0x19], 0
jne 0x4252c7
mov eax, dword [ebx + 8]
cmp byte [eax + 0x19], 0
jne 0x4252ac
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x19], 0
jne 0x4252c7
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x19], 0
je 0x4252a0
jmp 0x4252c7
mov eax, dword [ebx + 4]
cmp byte [eax + 0x19], 0
jne 0x4252c5
cmp ebx, dword [eax + 8]
jne 0x4252c5
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x19], 0
je 0x4252b5
mov ebx, eax
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp ebx, dword [ecx + 0x34]
jne 0x425213
mov esi, ecx
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov bl, byte [ebp - 0xd]
test bl, bl
je 0x425335
cmp byte [esi + 4], 0
jne 0x425335
mov edx, dword [ebp - 0x1c]
push 0
push 0
push 1
push 0
mov dword [esi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x425335
push 0
push 0
push esi
push 0x426650
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x425331
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x425335
mov byte [esi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8