Function at 0x47b84f
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.0047aba0
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
push eax
push 3
push 0x1c
mov dword [ebp - 8], edi
call fcn.00475aa3
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x47b8d9
push 0x31
pop eax
push dword [ebp + 0x10]
mov ecx, 0x1131
jmp 0x47ba85
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x47b8ee
push 0x31
pop eax
mov ecx, 0x1008
push ebx
jmp 0x47ba85
cmp eax, ebx
mov dword [ebp + 0xc], ebx
jbe 0x47b979
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.0047e7b5
cmp eax, 0x105
jne 0x47b94a
cmp dword [ebp + 0x14], ebx
jne 0x47b94a
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.0047eadb
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x47b9a1
mov dword [esi + 0x4c], 0x1134
jmp 0x47b95e
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.0047aba0
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
jb 0x47b8f9
push ebx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x47b9c8
cmp dword [ebp + 0x24], ebx
je 0x47ba60
push esi
call fcn.0047b1db
push dword [esi + 0x4c]
push eax
push 0x31
jmp 0x47ba4f
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 0x47ba2c
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], edi
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x4c], 0x100
je 0x47ba26
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.0047aba0
inc edi
cmp edi, dword [esi + 8]
jb 0x47b9f1
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 3
push 0x1d
mov dword [esi + 0x50], ebx
call fcn.00402e90
push 0x31
pop eax
push edi
push dword [esi + 0x4c]
push eax
mov dword [esi + 0x48], eax
mov ecx, esi
call fcn.0047aba0
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.0047b1db
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x47ba56
push 0x31
pop eax
push dword [ebp + 0xc]
mov ecx, 0x1007
mov dword [esi + 0x4c], ecx
push ecx
jmp 0x47ba4b