Function at 0x4b483c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x88e0e4], ebx
jne 0x4b488c
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x88e0e4
push ebx
push ebx
push 0x4b4397
push ebx
push ebx
mov dword [0x88e0ec], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x88e0e8], eax
cmp eax, ebx
je 0x4b4881
cmp eax, 0xffffffff
jne 0x4b488c
push 0x52feb4
call fcn.0045d3d3
pop ecx
mov eax, dword [0x559a74]
dec dword [0x559a74]
test eax, eax
jge 0x4b48d5
xor esi, esi
cmp dword [0x88e158], ebx
jbe 0x4b48cb
mov edi, dword [0x88e150]
push 1
xor edx, edx
mov ecx, 0x52f064
call fcn.004b6ae8
mov ecx, dword [edi + esi*4]
push eax
call fcn.004b3365
inc esi
cmp esi, dword [0x88e158]
jb 0x4b48a5
mov dword [0x559a74], 0x384
cmp dword [0x88e128], ebx
jne 0x4b4b64
mov al, byte [0x88e13a]
test al, al
je 0x4b4b64
cmp dword [0x88e13c], 0xffffffff
jne 0x4b494b
mov dword [0x88e13c], ebx
cmp byte [0x559a70], bl
je 0x4b4b64
cmp word [0x88e138], bx
jne 0x4b4918
mov byte [0x88e13a], bl
call fcn.004b4348
xor eax, eax
mov edx, 0x510d20
mov ecx, 0x88f938
mov word [0x88e140], ax
mov dword [0x88f930], ebx
mov word [0x88e144], ax
mov dword [0x88f934], ebx
call fcn.0049fe6d
jmp 0x4b4b64
mov cx, word [0x88e138]
mov al, byte [0x559a70]
cmp cx, bx
jne 0x4b4964
cmp al, bl
jne 0x4b4ae7
dec dword [0x88e13c]
jns 0x4b4ae7
mov dword [0x88e13c], 3
call fcn.004b3dc8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp dword [0x88e158], ebx
jne 0x4b4a3a
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.00472e83
test al, al
je 0x4b49a8
cmp dword [ebp - 0xc], ebx
jne 0x4b49c8
push 0x76c
call fcn.00472bcf
push eax
lea ecx, [ebp - 0x28]
call fcn.0049ca27
push 0x14
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.004a117a
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
jbe 0x4b4a32
xor edi, edi
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4b49f2
mov ecx, esi
call fcn.0047d4cc
mov dword [esi], 0x52ef34
mov dword [ebp - 4], esi
jmp 0x4b49f5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add eax, edi
push eax
call fcn.004b3283
test al, al
jne 0x4b4a12
mov ecx, dword [ebp - 4]
push ebx
call fcn.0047dc20
jmp 0x4b4a24
push 4
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x88e150
call fcn.004a117a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add edi, 0x14
cmp eax, dword [ebp - 0xc]
jb 0x4b49d2
lea ecx, [ebp - 0x14]
call fcn.004a0bd2
cmp dword [0x88e12c], ebx
jne 0x4b4a83
push 4
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [0x88e12c], eax
call fcn.004b3140
test al, al
jne 0x4b4a77
mov eax, dword [0x88e12c]
push dword [eax]
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi], 0xffffffff
mov dword [0x88e12c], ebx
jmp 0x4b4b64
push dword [0x88e0ec]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x88e158], ebx
je 0x4b4b64
xor ecx, ecx
cmp dword [0x88e164], ebx
je 0x4b4ab1
xor eax, eax
mov edx, dword [0x88e15c]
mov byte [eax + edx + 0xc], bl
inc ecx
add eax, 0x10
cmp ecx, dword [0x88e164]
jne 0x4b4a9b
xor esi, esi
cmp dword [0x88e158], ebx
jbe 0x4b4b64
mov eax, dword [0x88e150]
push ebx
xor edx, edx
mov ecx, 0x52f064
lea edi, [eax + esi*4]
call fcn.004b6ae8
mov ecx, dword [edi]
push eax
call fcn.004b3365
inc esi
cmp esi, dword [0x88e158]
jb 0x4b4abf
jmp 0x4b4b64
cmp dword [0x88e13c], ebx
jne 0x4b4b64
cmp cx, bx
jne 0x4b4af8
cmp al, bl
jne 0x4b4b64
cmp byte [0x88e13b], bl
jne 0x4b4b5e
inc dword [0x88e148]
cmp dword [0x88e148], 3
jg 0x4b4b31
cmp al, bl
je 0x4b4b1a
push 0x52fe7c
jmp 0x4b4b1f
push 0x52fe40
push 1
call fcn.004b2e04
or dword [0x88e13c], 0xffffffff
pop ecx
pop ecx
jmp 0x4b4b64
cmp al, bl
je 0x4b4b50
movzx eax, cx
push eax
call fcn.004b25a3
push eax
push 0x52fe14
push 1
call fcn.004b2e04
add esp, 0x10
jmp 0x4b4b5e
push 0x52fde8
push 1
call fcn.004b2e04
pop ecx
pop ecx
mov byte [0x88e13a], bl
pop edi
pop esi
pop ebx
leave
ret