Function at 0x47b910
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [0x680da4]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x2cc]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x47b98f
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [eax + 0x2c]
call edi
cmp dword [ebp - 4], 0x103
jne 0x47b985
mov eax, dword [esi + 0x2cc]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call ebx
mov eax, dword [esi + 0x2cc]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2cc]
test ecx, ecx
je 0x47b985
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x2cc], 0
mov eax, dword [esi + 0x2d0]
test eax, eax
je 0x47b9eb
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [eax + 0x2c]
call edi
cmp dword [ebp - 8], 0x103
jne 0x47b9e1
mov eax, dword [esi + 0x2d0]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call ebx
mov eax, dword [esi + 0x2d0]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2d0]
test ecx, ecx
je 0x47b9e1
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x2d0], 0
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x47ba47
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push dword [eax + 0x2c]
call edi
cmp dword [ebp - 0xc], 0x103
jne 0x47ba3d
mov eax, dword [esi + 0x2d4]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call ebx
mov eax, dword [esi + 0x2d4]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2d4]
test ecx, ecx
je 0x47ba3d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x2d4], 0
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x47baa3
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push dword [eax + 0x2c]
call edi
cmp dword [ebp - 0x10], 0x103
jne 0x47ba99
mov eax, dword [esi + 0x2d8]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call ebx
mov eax, dword [esi + 0x2d8]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2d8]
test ecx, ecx
je 0x47ba99
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x2d8], 0
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x47bac0
push eax
call fcn.0049a336
add esp, 4
mov dword [esi + 0xa8], 0
mov eax, dword [esi + 0xa4]
mov dword [esi + 0xa0], 0
test eax, eax
je 0x47bae7
push eax
call fcn.0049a336
add esp, 4
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x47bb04
push eax
call fcn.005c1e76
add esp, 4
mov dword [esi + 0x9c], 0
mov ecx, dword [esi + 0x18c]
test ecx, ecx
je 0x47bb29
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x47bb20
mov eax, dword [ecx]
push 3
call dword [eax + 4]
jmp 0x47bb29
push eax
call fcn.0049a336
add esp, 4
mov ecx, dword [esi + 0x190]
test ecx, ecx
je 0x47bb3a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x47bb4b
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esi + 0x198]
test ecx, ecx
je 0x47bb5c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x47bb6d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov esi, dword [0x680410]
test esi, esi
je 0x47bba7
mov eax, dword [esi + 4]
test eax, eax
je 0x47bb94
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x680410]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x680410], 0
mov esi, dword [0x68040c]
test esi, esi
je 0x47bbe1
mov eax, dword [esi + 4]
test eax, eax
je 0x47bbce
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x68040c]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x68040c], 0
mov esi, dword [0x680408]
test esi, esi
je 0x47bc1b
mov eax, dword [esi + 4]
test eax, eax
je 0x47bc08
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x680408]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x680408], 0
mov esi, dword [0x680404]
test esi, esi
je 0x47bc55
mov eax, dword [esi + 4]
test eax, eax
je 0x47bc42
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x680404]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x680404], 0
mov esi, dword [0x680400]
test esi, esi
je 0x47bc8f
mov eax, dword [esi + 4]
test eax, eax
je 0x47bc7c
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x680400]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x680400], 0
mov esi, dword [0x6803fc]
test esi, esi
je 0x47bcc9
mov eax, dword [esi + 4]
test eax, eax
je 0x47bcb6
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x6803fc]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x6803fc], 0
mov esi, dword [0x6803f8]
test esi, esi
je 0x47bd03
mov eax, dword [esi + 4]
test eax, eax
je 0x47bcf0
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x6803f8]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x6803f8], 0
mov esi, dword [0x6803f4]
test esi, esi
je 0x47bd3d
mov eax, dword [esi + 4]
test eax, eax
je 0x47bd2a
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x6803f4]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x6803f4], 0
mov esi, dword [0x680464]
test esi, esi
je 0x47bd85
mov ecx, esi
call fcn.004940f0
mov ecx, dword [esi + 4]
mov edi, eax
test ecx, ecx
je 0x47bd67
push ecx
call fcn.0049a336
add esp, 4
mov dword [esi + 4], 0
push edi
call fcn.0049a336
push dword [0x680464]
call fcn.0049a336
add esp, 8
mov dword [0x680464], 0
mov esi, dword [0x6803f0]
test esi, esi
je 0x47bdbf
mov eax, dword [esi + 4]
test eax, eax
je 0x47bdac
push eax
call fcn.0049a336
mov dword [esi + 4], 0
add esp, 4
mov esi, dword [0x6803f0]
push esi
call fcn.0049a336
add esp, 4
mov dword [0x6803f0], 0
mov edx, dword [0x680dc8]
xor esi, esi
mov ecx, dword [0x680dc4]
mov eax, edx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x47be02
mov edi, edi
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x47bdf6
push eax
call edi
mov edx, dword [0x680dc8]
mov ecx, dword [0x680dc4]
mov eax, edx
inc esi
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x47bde0
mov eax, dword [0x680694]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x680dc8], ecx
test eax, eax
je 0x47be24
push eax
call esi
mov dword [0x680694], 0
mov eax, dword [0x680690]
test eax, eax
je 0x47be3a
push eax
call esi
mov dword [0x680690], 0
mov eax, dword [0x680448]
test eax, eax
je 0x47be50
push eax
call edi
mov dword [0x680448], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret