Function at 0x48f730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test ebx, ebx
je 0x48fbce
lea esi, [esp + 0x10]
call fcn.00464e60
cmp word [ebx + 0x74], 0x7b
jne 0x48fbce
mov edi, dword [ebp + 0x1cc]
test edi, edi
jne 0x48f799
mov eax, dword [0x69f304]
push eax
call fcn.005c052e
mov edi, eax
add esp, 4
test edi, edi
je 0x48fbce
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 1
push 0x69f3a0
call esi
mov dword [edi + 0x44], 0
mov byte [edi + 0x60], 0
jmp 0x48f7e1
mov eax, dword [edi + 0x48]
test eax, eax
je 0x48f7a8
mov ecx, dword [edi + 0x4c]
mov dword [eax + 0x4c], ecx
jmp 0x48f7b1
mov edx, dword [edi + 0x4c]
mov dword [ebp + 0x1d0], edx
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push 0x69f3b8
mov dword [eax], ecx
call esi
push 1
push 0x69f67c
mov byte [edi + 0x60], 0
call esi
mov edx, 0xffff
add word [ebp + 0x496], dx
xor eax, eax
push 1
push eax
mov edx, 0x2c
lea ecx, [ebp + 0x30]
push 1
push edx
mov byte [edi + 0x65], 0
mov byte [edi], 4
mov byte [edi + 1], 1
mov word [edi + 0x56], ax
mov dword [edi + 0x30], ecx
mov word [edi + 0x58], dx
call fcn.00464fc0
add esp, 0x10
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x48f957
cmp byte [edi + 0x60], al
je 0x48f831
movzx eax, word [edi + 0x5e]
push eax
push ebp
call fcn.00496920
add esp, 8
mov byte [edi + 0x60], 0
mov eax, dword [edi + 0x44]
test eax, eax
je 0x48f8e7
or ebx, 0xffffffff
push ebx
add eax, 0x150
push eax
call esi
cmp eax, 1
jne 0x48f8e0
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x48f888
cmp dword [eax + 0xc], 1
jg 0x48f875
add dword [eax + 0xc], ebx
cmp dword [eax + 0xc], 0
jg 0x48f87a
push eax
call fcn.005c05f8
add esp, 4
jmp 0x48f87a
mov ecx, eax
add dword [ecx + 0xc], ebx
mov ecx, dword [edi + 0x44]
xor eax, eax
mov dword [ecx + 0x70], eax
mov edx, dword [edi + 0x44]
mov dword [edx + 0x70], eax
mov eax, dword [edi + 0x44]
cmp byte [eax + 0x1b3], 0
je 0x48f8b2
mov esi, dword [eax + 0x90]
call fcn.00466100
mov eax, dword [edi + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [eax + 0x90], 0
mov ecx, dword [edi + 0x44]
mov byte [ecx + 0x1b3], 0
mov eax, dword [edi + 0x44]
mov edx, 0xfffe
and word [eax + 0x1a4], dx
mov eax, dword [edi + 0x44]
push eax
call fcn.005c05f8
add esp, 4
push 0xffffffffffffffff
push 0x69f39c
call esi
mov dword [edi + 0x44], 0
movzx ecx, word [ebp + 0x496]
cmp ecx, dword [0x69f770]
ja 0x48f93d
mov edx, dword [0x69f3b8]
cmp edx, dword [0x69f76c]
ja 0x48f93d
mov dword [edi + 0x48], 0
mov ecx, dword [ebp + 0x1d0]
lea eax, [edi + 0x48]
mov dword [edi + 0x4c], ecx
mov edx, dword [ebp + 0x1d0]
push 1
mov dword [edx], edi
inc word [ebp + 0x496]
push 0x69f3b8
mov dword [ebp + 0x1d0], eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
call fcn.005c05f8
add esp, 4
push 0xffffffffffffffff
push 0x69f3a0
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
add dword [eax + 8], 0x20
movzx eax, word [edi + 0x58]
mov ecx, dword [edi + 0x3c]
mov dword [ecx + 0xc], eax
push 1
lea eax, [ebx + 0x150]
xor edx, edx
push eax
mov dword [edi + 0x50], 0
mov word [edi + 0x54], dx
mov dword [edi + 0x44], ebx
call esi
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx + 8]
push 0x2c
push 0
push esi
call fcn.005bfd50
mov byte [esi], 4
mov byte [esi + 1], 0
movzx edx, word [edi + 0x58]
add esp, 0xc
push edx
call sub.WS2_32.dll_htons
push 1
mov word [esi + 2], ax
call sub.WS2_32.dll_htons
push 0x28
mov word [esi + 4], ax
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0x14]
mov word [esi + 6], ax
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dl, byte [ebx + 0x74]
mov byte [esi + 0x18], dl
cmp word [ebx + 0x74], 0x7b
mov ecx, 0x200
setne al
dec al
and al, 8
mov byte [esi + 0x19], al
test word [ebx + 0x1a4], cx
je 0x48fa1d
mov edx, dword [ebp + 4]
add edx, 0xd8
push edx
call fcn.00474fd0
mov dword [esi + 0x10], eax
mov dword [ebx + 0x184], eax
mov eax, dword [ebp + 4]
add eax, 0xd8
add esp, 4
push eax
call fcn.00474fd0
add esp, 4
jmp 0x48fa28
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [ebx + 0x184], eax
mov dword [esi + 0x14], eax
cmp word [ebx + 0x74], 0x7b
mov dword [ebx + 0x188], eax
je 0x48fb8d
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x48fa4f
call fcn.004653c0
mov dword [edi + 0x3c], 0
cmp byte [edi + 0x60], 0
je 0x48fa67
movzx ecx, word [edi + 0x5e]
push ecx
push ebp
call fcn.00496920
add esp, 8
mov byte [edi + 0x60], 0
mov eax, dword [edi + 0x44]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x48fb1d
or esi, 0xffffffff
push esi
add eax, 0x150
push eax
call ebx
cmp eax, 1
jne 0x48fb16
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x48fac4
cmp dword [eax + 0xc], 1
jg 0x48fab1
add dword [eax + 0xc], esi
cmp dword [eax + 0xc], 0
jg 0x48fab6
push eax
call fcn.005c05f8
add esp, 4
jmp 0x48fab6
mov ecx, eax
add dword [ecx + 0xc], esi
mov edx, dword [edi + 0x44]
xor eax, eax
mov dword [edx + 0x70], eax
mov ecx, dword [edi + 0x44]
mov dword [ecx + 0x70], eax
mov eax, dword [edi + 0x44]
cmp byte [eax + 0x1b3], 0
je 0x48fae8
mov esi, dword [eax + 0x90]
call fcn.00466100
mov edx, dword [edi + 0x44]
mov dword [edx + 0x90], 0
mov eax, dword [edi + 0x44]
mov byte [eax + 0x1b3], 0
mov eax, dword [edi + 0x44]
mov ecx, 0xfffe
and word [eax + 0x1a4], cx
mov edx, dword [edi + 0x44]
push edx
call fcn.005c05f8
add esp, 4
push 0xffffffffffffffff
push 0x69f39c
call ebx
mov dword [edi + 0x44], 0
movzx eax, word [ebp + 0x496]
cmp eax, dword [0x69f770]
ja 0x48fb73
mov ecx, dword [0x69f3b8]
cmp ecx, dword [0x69f76c]
ja 0x48fb73
mov dword [edi + 0x48], 0
mov edx, dword [ebp + 0x1d0]
lea eax, [edi + 0x48]
mov dword [edi + 0x4c], edx
mov ecx, dword [ebp + 0x1d0]
push 1
mov dword [ecx], edi
inc word [ebp + 0x496]
push 0x69f3b8
mov dword [ebp + 0x1d0], eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
call fcn.005c05f8
add esp, 4
push 0xffffffffffffffff
push 0x69f3a0
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [ebx + 0x78]
mov dword [esi + 0x1c], edx
mov byte [ebx + 0x1b1], 0
mov dword [edi + 0x48], 0
mov ecx, dword [ebp + 0x1d8]
lea eax, [edi + 0x48]
mov dword [edi + 0x4c], ecx
mov edx, dword [ebp + 0x1d8]
push 1
mov dword [edx], edi
inc dword [ebp + 0x368]
push 0x69f534
mov dword [ebp + 0x1d8], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret