Function at 0x47a4e7
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1024
call fcn.0059bb50
mov eax, dword [0x6b0d44]
xor eax, esp
mov dword [esp + 0x1020], eax
movzx eax, word [esp + 0x1028]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1044]
mov ebp, edx
mov ebx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1048]
push edi
push 0xffffffffffffffff
mov edi, dword [ebx + ebp*4 + 0x174]
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edi
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
inc edx
cmp dword [esp + 0x1044], 0x32
push 2
pop ecx
jne 0x47a7b7
mov eax, dword [ebx + ebp*4 + 0x174]
mov ecx, dword [esp + 0x1c]
movzx ecx, cx
mov dword [esp + 0x24], ecx
mov edx, ecx
mov ecx, dword [eax + 0x80]
push 0
call fcn.00470754
mov esi, eax
mov eax, dword [esp + 0x24]
pop ecx
push 2
pop edx
movsx ecx, byte [eax]
mov dword [esp + 0x10], esi
sub ecx, edx
je 0x47a73d
sub ecx, 1
jne 0x47a6cb
movzx eax, word [eax + 8]
push eax
mov byte [esp + 0x1f], dl
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x20]
xor edx, edx
movzx eax, ax
inc edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [ecx + eax + 0xc], 0
mov eax, 0x8000
test eax, esi
jne 0x47a6cb
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
mov word [esp + 0x10], ax
movzx eax, byte [ecx + 1]
sub eax, edx
je 0x47a613
sub eax, edx
je 0x47a610
sub eax, 0x7e
je 0x47a604
sub eax, edx
je 0x47a5fd
sub eax, edx
jne 0x47a626
mov eax, 0x82
or word [esp + 0x12], ax
jmp 0x47a618
mov eax, 0x81
jmp 0x47a5f6
mov eax, 0x80
or word [esp + 0x12], ax
jmp 0x47a626
push 2
pop edx
or word [esp + 0x12], dx
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov word [esp + 0x16], ax
mov ecx, dword [ebx + ebp*4 + 0x174]
push dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x80]
call fcn.0047064e
mov ecx, dword [ebx + ebp*4 + 0x174]
push dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x84]
call fcn.0047064e
mov eax, dword [ebx + ebp*4 + 0x174]
pop ecx
pop ecx
push 0
push 1
push dword [eax + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [ebx + 0x1ac]
mov esi, dword [esp + 0x1c]
test ecx, ecx
je 0x47a69c
push dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add eax, 0xc
push eax
push esi
push dword [ebx + ebp*4 + 0x174]
push ebx
call ecx
add esp, 0x14
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx + ebp*4 + 0x174]
push 0xffffffffffffffff
push dword [ecx + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x2c], 0
jne 0x47a6cb
push 1
lea eax, [esp + 0x1f]
mov edx, ebp
push eax
push 0x32
push esi
mov ecx, ebx
call fcn.0047a346
add esp, 0x10
push 2
pop ecx
cmp dword [edi + 0x94], 0
je 0x47a9e2
cmp byte [edi + 0x94], 0xff
jne 0x47a9e2
movzx eax, word [edi + 0x96]
mov esi, eax
shr esi, 1
sub esi, ecx
mov ecx, dword [edi + 0xf4]
add ecx, dword [edi + 0xec]
sub ecx, eax
mov eax, dword [ecx]
cmp eax, dword [edi + 0x68]
ja 0x47a9e2
mov eax, esi
mov edx, 0x1000
shl eax, 2
cmp eax, edx
ja 0x47a9cd
test esi, esi
jle 0x47a737
lea eax, [esi + esi]
push eax
lea eax, [ecx + 4]
push eax
lea ecx, [esp + 0x38]
call section..text
pop ecx
pop ecx
push esi
jmp 0x47a9cf
test esi, 0x4000
je 0x47a6cb
mov ecx, dword [ebx + ebp*4 + 0x174]
xor esi, 0xc000
mov edx, dword [esp + 0x24]
or esi, 0x8000
mov word [esp + 0x10], si
push dword [esp + 0x10]
mov ecx, dword [ecx + 0x80]
call fcn.0047064e
mov eax, dword [ebx + ebp*4 + 0x174]
pop ecx
push 0
push 1
push dword [eax + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, dword [ebx + 0x1b4]
test eax, eax
je 0x47a7a0
push dword [esp + 0x1c]
push dword [ebx + ebp*4 + 0x174]
push ebx
call eax
add esp, 0xc
mov eax, dword [ebx + ebp*4 + 0x174]
push 0xffffffffffffffff
push dword [eax + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x47a6cb
mov al, byte [esp + 0x1040]
and al, 3
cmp al, 3
jne 0x47a834
cmp dword [ebx + 0x13c], 0
je 0x47a6ce
mov eax, dword [ebx + ebp*4 + 0x174]
cmp dword [eax + 0x78], ecx
jne 0x47a6ce
push 0
push edx
push dword [eax + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [ebx + ebp*4 + 0x174]
lea eax, [ecx + 0x38]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
push dword [esp + 0x1050]
push dword [esp + 0x2c]
push ecx
push ebx
call dword [ebx + 0x13c]
mov eax, dword [ebx + ebp*4 + 0x174]
add esp, 0x1c
test eax, eax
je 0x47a9f6
push 2
pop edx
cmp dword [eax + 0x78], edx
jne 0x47a9f6
jmp 0x47a7a7
mov eax, dword [ebx + ebp*4 + 0x174]
mov ecx, dword [esp + 0x1c]
movzx ecx, cx
mov dword [esp + 0x24], ecx
mov edx, ecx
mov ecx, dword [eax + 0x8c]
push 0
call fcn.00470754
mov esi, eax
pop ecx
test esi, esi
jne 0x47a895
test byte [esp + 0x1040], 2
je 0x47a6cb
push 0x1e5
push 0x764218
push 1
push 0xc
call fcn.005ce020
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47aa0f
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x28]
test byte [esp + 0x1040], 2
je 0x47a8a3
and dword [esi + 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
js 0x47a6cb
mov eax, dword [esp + 0x14]
add eax, ecx
cmp eax, dword [esi + 8]
jle 0x47a911
push 0xdd9
push 0x7648dc
push 1
push eax
push dword [esi]
call fcn.005ce1d0
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x47a905
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0xdd9
push esi
push edi
mov edx, 0x7648f8
xor ecx, ecx
call fcn.0047145c
push edi
push 0x764914
push 0x764930
jmp 0x47aa39
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
add eax, ecx
mov dword [esi + 8], eax
mov edx, dword [esi + 8]
push dword [esp + 0x14]
mov eax, dword [esp + 0x24]
sub edx, ecx
mov ecx, dword [esi]
add ecx, dword [esi + 4]
push eax
call section..text
mov eax, dword [esp + 0x1c]
add dword [esi + 4], eax
mov ecx, dword [ebx + ebp*4 + 0x174]
mov edx, dword [esp + 0x2c]
push esi
mov ecx, dword [ecx + 0x8c]
call fcn.0047064e
add esp, 0xc
test byte [esp + 0x1040], 1
je 0x47a6cb
cmp dword [ebx + 0x13c], 0
push 2
pop ecx
je 0x47a9c4
mov eax, dword [ebx + ebp*4 + 0x174]
cmp dword [eax + 0x78], ecx
jne 0x47a9c4
push 0
push 1
push dword [eax + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [ebx + ebp*4 + 0x174]
lea eax, [ecx + 0x38]
push eax
push dword [esi + 4]
push dword [esi]
push dword [esp + 0x1050]
push dword [esp + 0x2c]
push ecx
push ebx
call dword [ebx + 0x13c]
mov eax, dword [ebx + ebp*4 + 0x174]
add esp, 0x1c
test eax, eax
je 0x47a9f6
push 2
pop edx
cmp dword [eax + 0x78], edx
jne 0x47a9f6
push 0xffffffffffffffff
push dword [eax + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 2
pop ecx
or dword [esi + 4], 0xffffffff
jmp 0x47a6ce
push 0
and dword [edi + 0x94], 0
lea edx, [esp + 0x34]
mov ecx, edi
call fcn.0047d362
pop ecx
mov eax, dword [ebx + ebp*4 + 0x174]
push 0
push 1
push dword [eax + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [esp + 0x1030]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059b3f0
add esp, 0x1024
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x1e6
push esi
push edi
mov edx, 0x764234
xor ecx, ecx
call fcn.0047145c
push edi
push 0x764250
push 0x76426c
call fcn.004010b4
add esp, 0x18
push esi
call fcn.005aae60
int3