Function at 0x6b4587e0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov dword [esp], 0
mov ebx, dword [esi + 0xc]
mov dword [eax], 0
and byte [ebx + 0x24f], 0xbf
cmp dword [esi + 0x78], 0
je 0x6b45881d
push 2
push 3
push esi
call fcn.6b47b6c0
add esp, 0xc
mov ecx, esi
mov edx, edi
push dword [esp + 0x54]
call fcn.6b4583a0
add esp, 4
mov ebp, eax
mov dword [esp], eax
test eax, eax
je 0x6b4588b1
push edi
push 0x6b72cbc7
push esi
call fcn.6b4767f0
add esp, 0xc
inc dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x78], 0
je 0x6b45885b
push 3
push esi
call fcn.6b47b700
add esp, 8
test ebp, ebp
jne 0x6b458ba5
mov dword [esp + 4], 0
cmp dword [esi + 0x6b4], 0
je 0x6b4588be
push 1
push esi
call fcn.6b470f50
add esp, 8
push dword [esi + 0x6b8]
push 0
push dword [esi + 0x8fc]
call dword [esi + 0x6b4]
add esp, 0xc
mov ebp, eax
push 0
push esi
call fcn.6b470f50
add esp, 8
test ebp, ebp
je 0x6b4588be
mov edi, 0xffffffff
jmp 0x6b458bab
mov edi, 0xffffffff
cmp dword [esi + 0x78], 0
jne 0x6b458850
jmp 0x6b45885b
lea ebp, [esp + 0x34]
push ebp
push dword [esp + 0x54]
push 2
call fcn.6b466e00
add esp, 0xc
test eax, eax
jle 0x6b4588f2
push dword [esp + 0x54]
push dword [esp + 0x54]
push ebp
push 2
call fcn.6b4496a0
add esp, 0x10
mov ebp, eax
test eax, eax
jne 0x6b458b53
lea eax, [esp + 0x10]
push eax
mov ebp, dword [esp + 0x54]
push ebp
push 0x17
call fcn.6b466e00
add esp, 0xc
test eax, eax
jle 0x6b458928
push dword [esp + 0x54]
push ebp
lea eax, [esp + 0x18]
push eax
push 0x17
call fcn.6b4496a0
add esp, 0x10
mov ebp, eax
test eax, eax
jne 0x6b458b53
cmp byte [ebx + 0x100], 2
jne 0x6b458941
mov eax, dword [esi + 0x70]
cmp dword [eax + 0xd4], 0
je 0x6b4588a7
push 0x6b72cbea
push dword [esp + 0x54]
call fcn.6b481200
add esp, 8
test eax, eax
je 0x6b458b00
mov eax, dword [0x6b83acf0]
push 1
push 0x3a
call dword [eax]
add esp, 8
xor ebp, ebp
mov dword [esp + 0xc], eax
test eax, eax
je 0x6b458b4f
mov eax, dword [esp + 0x54]
movzx ebx, ax
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 0x20]
push eax
push 0x6b72cd78
push 2
call fcn.6b466e00
add esp, 0xc
test eax, eax
jle 0x6b458b4f
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov dword [edx], 0
mov dword [edx + 4], 2
mov dword [edx + 8], 1
mov dword [edx + 0xc], 6
mov dword [edx + 0x10], 0x10
lea ecx, [edx + 0x20]
mov dword [edx + 0x18], ecx
mov word [edx + 0x20], 2
movzx ecx, word [esp + 0xa]
mov word [edx + 0x22], cx
mov dword [edx + 0x24], eax
mov dword [edx + 0x2c], 0
mov dword [edx + 0x28], 0
mov eax, edx
add eax, 0x30
mov dword [edx + 0x14], eax
mov dword [edx + 0x30], 0x61636f6c
mov dword [edx + 0x34], 0x736f686c
mov word [edx + 0x38], 0x74
push 1
push 0x46
mov eax, dword [0x6b83acf0]
call dword [eax]
add esp, 8
mov ebp, eax
xor eax, eax
test ebp, ebp
je 0x6b458af7
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, eax
lea eax, [esp + 0x24]
push eax
push 0x6b72cd82
push 0x17
call fcn.6b466e00
add esp, 0xc
test eax, eax
mov eax, 0
jle 0x6b458af7
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [ebp], 0
mov dword [ebp + 4], 0x17
mov dword [ebp + 8], 1
mov dword [ebp + 0xc], 6
mov dword [ebp + 0x10], 0x1c
mov dword [ebp + 0x1c], 0
lea eax, [ebp + 0x20]
mov dword [ebp + 0x18], eax
mov word [ebp + 0x20], 0x17
mov word [ebp + 0x22], bx
mov dword [ebp + 0x24], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], ecx
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], 0
mov eax, ebp
add eax, 0x3c
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x3c], 0x61636f6c
mov dword [ebp + 0x40], 0x736f686c
mov word [ebp + 0x44], 0x74
mov eax, ebp
mov ebp, dword [esp + 0xc]
mov dword [ebp + 0x1c], eax
jmp 0x6b458b4f
cmp dword [esp + 0x58], 0
je 0x6b458b10
test byte [esi + 0x6db], 1
jne 0x6b458b37
push ebx
push esi
call fcn.6b459320
add esp, 8
test eax, eax
je 0x6b4588a7
lea eax, [esp + 4]
push eax
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
call fcn.6b4580c0
jmp 0x6b458b4a
lea eax, [esp + 4]
push eax
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
call fcn.6b44c820
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x6b458bb5
cmp dword [esi + 0x78], 0
je 0x6b458b66
push 2
push 3
push esi
call fcn.6b47b6c0
add esp, 0xc
push dword [esp + 0x54]
push dword [esp + 0x54]
push ebp
push esi
call fcn.6b458500
add esp, 0x10
mov dword [esp], eax
cmp dword [esi + 0x78], 0
je 0x6b458b8f
push 3
push esi
call fcn.6b47b700
add esp, 8
mov eax, dword [esp]
xor ecx, ecx
test eax, eax
jne 0x6b458ba0
push ebp
call fcn.6b449330
add esp, 4
mov ecx, edi
mov ebp, dword [esp]
mov edi, ecx
mov eax, dword [esp + 0x5c]
mov dword [eax], ebp
mov eax, edi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 4], 0
mov ecx, edi
je 0x6b458ba0
mov eax, dword [esi + 0xc]
test byte [eax + 0x24f], 0x40
jne 0x6b458bd5
mov eax, esp
push eax
push esi
call fcn.6b442480
jmp 0x6b458bde
mov eax, esp
push eax
push esi
call fcn.6b44d160
add esp, 8
test eax, eax
jne 0x6b4588a7
xor ecx, ecx
cmp dword [esp], 0
sete cl
jmp 0x6b458ba0