Function at 0x4682d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x20]
push ebx
push ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x48], 0x32
mov dword [esi + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push dword [esi + 0x4c]
mov ecx, esi
push dword [esi + 0x48]
mov dword [esi + 0x50], eax
call fcn.00467600
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
call fcn.00468af2
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x468358
push 0x31
pop eax
push dword [ebp + 0x10]
mov ecx, 0x1131
jmp 0x468500
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x46836d
push 0x31
pop eax
mov ecx, 0x1008
push ebx
jmp 0x468500
cmp eax, ebx
mov dword [ebp + 0xc], ebx
jbe 0x4683f8
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
shl edi, 2
lea ecx, [ebp + 0x14]
add eax, edi
push ecx
mov ecx, dword [eax]
call fcn.0046b954
cmp eax, 0x105
jne 0x4683c9
cmp dword [ebp + 0x14], ebx
jne 0x4683c9
mov eax, dword [esi + 0x10]
mov eax, dword [edi + eax]
push dword [ebp + 0x18]
mov dword [eax + 0x4c], 0x101
mov eax, dword [esi + 0x10]
push dword [ebp + 8]
add eax, edi
mov ecx, dword [eax]
call fcn.0046bc70
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x468420
mov dword [esi + 0x4c], 0x1134
jmp 0x4683dd
mov eax, dword [esi + 0x10]
mov dword [esi + 0x4c], 0x1133
mov eax, dword [edi + eax]
mov dword [eax + 0x4c], 0x100
push dword [ebp + 0xc]
mov ecx, esi
push dword [esi + 0x4c]
push dword [esi + 0x48]
call fcn.00467600
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
jb 0x468378
push ebx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x468447
cmp dword [ebp + 0x24], ebx
je 0x4684db
push esi
call fcn.00467c4b
push dword [esi + 0x4c]
push eax
push 0x31
jmp 0x4684ca
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
shl eax, 2
mov ecx, dword [eax + ecx]
mov dword [ecx + 0x4c], 0x107
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + ecx]
mov dword [eax + 0x50], 0x1001
mov dword [esi + 0x4c], 0x1132
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
add eax, 0x34
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0x1032
add eax, 0x100
xor edi, edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x4c], eax
jbe 0x4684ab
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], edi
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x4c], 0x100
je 0x4684a5
xor ecx, ecx
cmp dword [ebp + 0x10], ebx
sete cl
lea ecx, [ecx*8 + 0x1001]
mov dword [eax + 0x4c], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x4c]
mov ecx, esi
push dword [esi + 0x48]
call fcn.00467600
inc edi
cmp edi, dword [esi + 8]
jb 0x468470
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x50], ebx
call fcn.00468b1a
push 0x31
pop eax
push edi
push dword [esi + 0x4c]
push eax
mov dword [esi + 0x48], eax
mov ecx, esi
call fcn.00467600
mov eax, dword [esi + 0x48]
pop edi
pop esi
pop ebx
leave
ret 0x20
lea eax, [ebp + 8]
push eax
push ebx
push esi
push fcn.00467c4b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x4684d1
push 0x31
pop eax
push dword [ebp + 0xc]
mov ecx, 0x1007
mov dword [esi + 0x4c], ecx
push ecx
jmp 0x4684c6