Function at 0x463650
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x14]
push esi
mov esi, dword [ebx + 8]
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
mov dword [ebx + 0x38], edi
lea eax, [ebx + 0x70]
lea ecx, [edi + 0x20]
jmp 0x463680
mov dword [eax + 0x100], edi
mov dword [eax + 0x104], edi
mov dword [eax], edi
mov dword [eax + 4], edi
add eax, 8
dec ecx
jne 0x463680
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], edi
cmp esi, edi
jbe 0x4636ce
lea esi, [ebx + 0x270]
call fcn.00463190
test eax, eax
jne 0x463888
inc edi
add esi, 0x44
cmp edi, dword [ebp - 4]
jb 0x4636b3
mov esi, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 0xc], edi
cmp esi, edi
jbe 0x46378d
lea esi, [ebx + 0x29c]
nop
cmp dword [esi - 0x14], 0
lea edi, [esi - 0x14]
jne 0x463773
push 0
push 0
push 0
lea eax, [esi - 0x2c]
push 0
mov dword [esi - 4], 0x463440
mov dword [esi], eax
mov dword [esi - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi - 0x10], eax
test eax, eax
jne 0x46372a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46382b
mov eax, 1
jmp 0x46376b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi - 0xc], eax
test eax, eax
je 0x463715
lea ecx, [ebp - 0x10]
push ecx
push 0
push edi
push 0x463060
push 0
push 0
call fcn.005a9bc4
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x463773
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46382b
test eax, eax
jne 0x46382b
mov eax, dword [ebp - 0xc]
inc eax
add esi, 0x44
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 4]
jb 0x4636e0
mov esi, dword [ebp - 4]
xor edi, edi
cmp esi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
jbe 0x4637b6
mov esi, dword [ebp + 8]
add esi, 0x28c
mov edi, edi
mov edx, dword [esi]
push edx
call ebx
test eax, eax
je 0x463834
inc edi
add esi, 0x44
cmp edi, dword [ebp - 4]
jb 0x4637a0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2b0]
push eax
call ebx
test eax, eax
jne 0x4637cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x2ac]
push ecx
call ebx
test eax, eax
jne 0x4637df
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4637ff
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 0x290
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call ebx
add esi, 0x44
dec edi
jne 0x4637f2
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 4]
test edi, edi
je 0x46387e
lea esi, [ebx + 0x2b0]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi - 4]
test eax, eax
je 0x463853
push eax
call ebx
test eax, eax
jne 0x463853
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46385a
mov dword [ebp - 8], 0xc
jmp 0x463802
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0xc
mov dword [esi + 0x2a4], 1
jmp 0x4637b9
mov dword [esi - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x46386f
push eax
call ebx
test eax, eax
jne 0x46386f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x463875
mov dword [esi], 0
add esi, 0x44
dec edi
jne 0x463815
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x463888
mov eax, dword [ebx + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret