Function at 0x5488d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 4]
xor esi, esi
xor ebx, ebx
cmp eax, esi
mov ebp, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
je 0x548971
cmp byte [eax], 0x2d
jne 0x548971
push 0x64
push eax
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x548909
mov ebx, ebp
mov eax, dword [edi + 4]
push 0x65
push eax
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x54891f
mov dword [esp + 0x10], ebp
cmp ebx, esi
mov ebp, 2
je 0x548971
mov eax, dword [edi + 8]
cmp eax, esi
jne 0x548945
mov ecx, dword [edi]
push esi
push esi
push ecx
push esi
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x548968
mov edx, dword [edi]
push 3
push esi
push edx
push esi
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esp + 0x14], ebp
mov ebp, 3
mov eax, dword [edi + ebp*4]
cmp eax, esi
je 0x548b6a
cmp dword [edi + ebp*4 + 4], esi
je 0x548b6a
cmp dword [edi + ebp*4 + 8], esi
je 0x548b6a
push eax
call fcn.00547030
add esp, 4
test eax, eax
je 0x5489af
push esi
push 0x1453
call fcn.00421db0
push eax
mov eax, dword [edi + ebp*4]
push eax
jmp 0x5489d3
mov eax, dword [edi + ebp*4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5489b5
sub eax, edx
cmp eax, 0x5a
jbe 0x5489fe
push esi
push 0x1452
call fcn.00421db0
mov ecx, dword [edi + ebp*4]
push eax
push ecx
push str.__sockopen:__s__s
push 0x615410
call dword [sym.imp.USER32.dll_wsprintfA]
push 6
push esi
push 0x615410
push esi
call fcn.0048a440
add esp, 0x28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [edi + ebp*4 + 8]
push edx
call fcn.005cbdc9
mov ebx, eax
add esp, 4
cmp bx, si
ja 0x548a19
push 3
jmp 0x548b6b
call fcn.00546dd0
mov esi, eax
test esi, esi
jne 0x548a3b
mov ecx, dword [edi]
push 2
push eax
push ecx
push eax
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [edi + ebp*4]
push edx
push 0x64
push esi
call fcn.00423900
mov eax, dword [edi + ebp*4 + 4]
push eax
lea ecx, [esi + 0x64]
push 0x64
push ecx
call fcn.00423900
mov edx, dword [edi + ebp*4 + 4]
push edx
lea eax, [esi + 0xc8]
push 0x64
push eax
call fcn.00423900
mov ecx, dword [esp + 0x34]
push 0
mov word [esi + 0x12c], bx
mov dword [esi + 0x1b0], 3
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1f4], ecx
call fcn.005cce76
mov dword [esi + 0x1e0], eax
mov dword [esi + 0x1e4], eax
mov eax, dword [esp + 0x3c]
add esp, 0x28
test eax, eax
je 0x548ac2
mov edx, dword [edi + eax*4]
push edx
lea eax, [esi + 0x12e]
push 0x64
push eax
call fcn.00423900
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x204], ebx
mov ecx, dword [edi + ebp*4 + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x548b32
push 4
mov dword [esi + 0x1b4], 4
mov edx, dword [edi + ebp*4 + 4]
mov eax, dword [edi + ebp*4]
mov ecx, dword [ebx]
push 0
push edx
push eax
push ecx
call fcn.0047e8b0
add esp, 0x14
test eax, eax
jne 0x548b25
mov edx, dword [esi + 0x200]
push 0x274d0010
push edx
mov dword [esi + 0x1b4], eax
mov eax, dword [0x645324]
push 0x8039
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push esi
call fcn.005486f0
add esp, 4
test eax, eax
jle 0x548b5d
mov ecx, dword [esi + 0x200]
mov edx, dword [0x645324]
push 0x274d0010
push ecx
push 0x8039
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push esi
mov eax, dword [edi]
push esi
push eax
push esi
call fcn.0048a440
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret