Function at 0x47397c
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x543838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.005111e1
xor ebx, ebx
lea ecx, [esp + 0x74]
push ebx
mov dword [esp + 0x224], ebx
call fcn.0042c900
mov eax, dword [0x5ab980]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x228]
mov byte [esp + 0x220], 4
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
jne 0x473a25
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 3
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x220], 2
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x220], 1
call fcn.005128e4
lea ecx, [esp + 0x74]
mov byte [esp + 0x220], bl
call fcn.0042caf0
lea ecx, [esp + 0x28]
mov dword [esp + 0x220], 0xffffffff
call fcn.00511214
xor eax, eax
jmp 0x473d9d
mov edx, dword [esp + 0x234]
lea ecx, [esp + 0x74]
push edx
call fcn.0042cdf0
lea eax, [esp + 0xc]
push 0x4fcf
push eax
call fcn.00422640
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x1a0]
push eax
mov byte [esp + 0x224], 5
call fcn.00516260
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 4
call fcn.005128e4
lea ecx, [esp + 0xc]
push 0x5016
push ecx
call fcn.00422640
add esp, 8
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x228], 6
call fcn.0042cff0
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 4
call fcn.005128e4
push str.0.0.0.0
lea ecx, [esp + 0x10]
call fcn.00512952
mov edx, dword [esi]
mov byte [esp + 0x220], 7
mov eax, dword [edx + 4]
mov edx, dword [eax + esi]
lea ecx, [eax + esi]
mov eax, dword [esp + 0x230]
push eax
lea eax, [esp + 0x10]
push eax
call dword [edx + 0x30]
lea ecx, [esp + 0xc]
mov edi, eax
mov byte [esp + 0x220], 4
call fcn.005128e4
cmp edi, ebx
je 0x473b4e
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 3
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x220], 2
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x220], 1
call fcn.005128e4
lea ecx, [esp + 0x74]
mov byte [esp + 0x220], bl
call fcn.0042caf0
lea ecx, [esp + 0x28]
mov dword [esp + 0x220], 0xffffffff
call fcn.00511214
mov eax, edi
jmp 0x473d9d
push ebp
or edi, 0xffffffff
push 0x7cf
mov dword [esi + 0x48], edi
call dword [sym.imp.WSOCK32.dll_htons]
mov ebp, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 0x28]
push 4
mov word [esi + 0x46], ax
mov edx, dword [esi + 4]
push ecx
push 0x20
push 0xffff
push edx
mov dword [esp + 0x3c], edi
call ebp
cmp eax, edi
jne 0x473b91
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x473d33
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x40]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esi]
and eax, 0xfffff80d
or al, 9
mov dword [esp + 0x50], eax
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi]
lea ecx, [edx + esi]
lea edx, [esp + 0x44]
push edx
call dword [eax + 0xc]
cmp eax, ebx
jne 0x473d33
mov edi, dword [esp + 0x230]
mov ecx, edi
call fcn.0051286f
lea ecx, [esp + 0x78]
call fcn.0042d150
test eax, eax
jne 0x473d2f
mov eax, dword [esi]
push ebx
push 0x64
mov ecx, dword [eax + 4]
lea eax, [esp + 0x2c]
add ecx, esi
push eax
lea eax, [esp + 0x38]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
cmp eax, 0xffffffb0
jne 0x473c6c
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x20
push 0xffff
push edx
mov dword [esp + 0x24], 0xffffffff
call ebp
cmp eax, 0xffffffff
je 0x473b86
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x40]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esi]
and eax, 0xfffff80d
or al, 9
mov dword [esp + 0x50], eax
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi]
lea ecx, [edx + esi]
lea edx, [esp + 0x44]
push edx
call dword [eax + 0xc]
cmp eax, ebx
jne 0x473d33
mov edi, dword [esp + 0x230]
jmp 0x473c74
cmp eax, ebx
jne 0x473d05
mov ecx, dword [esp + 0x24]
cmp dword [ecx], 0x1315749
jne 0x473cf2
mov eax, dword [ecx + 0xc]
test al, 2
je 0x473cf2
test al, 1
je 0x473cf2
and eax, 0x7f8
cmp eax, 8
jne 0x473cf2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + esi + 0x54]
je 0x473cf2
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
cmp eax, ebx
je 0x473cec
push eax
mov ecx, edi
call fcn.00512a6d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
add edx, 0x3c
push edx
call fcn.00512a6d
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [ecx]
push edx
call fcn.004f9670
add esp, 8
cmp eax, ebx
je 0x473d05
mov ecx, edi
call fcn.0051286f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x78]
call fcn.0042d150
test eax, eax
je 0x473be8
jmp 0x473d2f
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x473d2f
mov edx, dword [esp + 0x22c]
mov ecx, dword [esp + 0x14]
push ecx
mov eax, dword [edx]
push eax
call fcn.004f9670
add esp, 8
cmp eax, ebx
mov dword [esp + 0x18], 1
je 0x473d33
mov dword [esp + 0x18], ebx
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi]
lea ecx, [edx + esi]
call dword [eax + 0x24]
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 3
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x224], 2
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 1
call fcn.005128e4
lea ecx, [esp + 0x78]
mov byte [esp + 0x224], bl
call fcn.0042caf0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x224], 0xffffffff
call fcn.00511214
mov eax, dword [esp + 0x18]
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret 0x10