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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x477368
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [eax + 0x38]
mov eax, ecx
mov dword [esp + 0x10], ecx
mov dword [ebx + 0x28], 0
test ecx, ecx
je 0x477a3f
mov esi, eax
xor edx, edx
mov eax, dword [eax + 0x38]
cmp eax, ecx
cmovne edx, eax
mov eax, dword [esi + 4]
add eax, 0xfffffffe
mov dword [esp + 0x18], edx
cmp eax, 0xf
ja case.0x47739f.6
jmp dword [eax*4 + 0x477a58]
mov edx, dword [esi]
mov eax, dword [edx + 8]
sub eax, 7
je 0x4773d8
sub eax, 5
je 0x4773cb
sub eax, 2
jne case.0x47739f.6
push esi
mov ecx, ebx
call fcn.00479910
jmp 0x477a2c
push esi
mov ecx, ebx
call fcn.00480f70
jmp 0x477a2c
push esi
mov ecx, ebx
call fcn.004833f0
jmp 0x477a2c
mov edi, dword [esi + 0x44]
mov eax, dword [edi + 8]
sub eax, 7
je 0x4774cf
sub eax, 5
je 0x4774c0
sub eax, 2
jne case.0x47739f.6
mov eax, dword [esi + 0x34]
sub dword [edi + 0x30], eax
add dword [edi + 0x40], 0xffffffff
jne 0x47742d
mov eax, dword [edi + 0x2c]
test al, 1
jne 0x47742d
test al, 0x40
je 0x47742d
and eax, 0xffffffbf
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x47742d
mov eax, dword [edi + 4]
dec dword [eax + 4]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
cmp dword [esi + 0x3c], 0
je 0x47745e
push dword [esi + 0x20]
call dword [0x50f720]
mov ecx, eax
call fcn.004822d0
push eax
mov eax, dword [esi + 0x3c]
push esi
call eax
add esp, 8
dec dword [edi + 0x88]
cmp dword [edi + 0x8c], 0
je 0x47748c
cmp dword [edi + 0x88], 0
jne 0x47748c
mov eax, dword [edi + 0x2c]
test al, 8
jne 0x47748c
or eax, 8
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x28], eax
mov dword [ebx + 0x2c], edi
dec dword [edi + 0x3c]
mov eax, dword [edi + 0x2c]
test al, 1
je 0x477a2f
cmp dword [edi + 0x3c], 0
jne 0x477a2f
test al, 8
jne 0x477a2f
or eax, 8
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x28], eax
mov dword [ebx + 0x2c], edi
jmp 0x477a2f
push esi
mov edx, edi
mov ecx, ebx
call fcn.00481250
jmp 0x477a2c
push esi
mov edx, edi
mov ecx, ebx
call fcn.004836e0
jmp 0x477a2c
mov edi, dword [esi]
mov eax, dword [edi + 8]
sub eax, 7
je 0x4775bc
sub eax, 5
je 0x4774ff
sub eax, 2
jne case.0x47739f.6
jmp 0x477a4c
mov ecx, dword [esi + 0x3c]
cmp ecx, 0xffffffff
jne 0x477560
mov eax, dword [edi + 0x2c]
test eax, 0x800
je 0x47761f
and eax, 0xfffff7ff
add dword [edi + 0x40], ecx
mov dword [edi + 0x2c], eax
jne 0x47753a
test al, 1
jne 0x47753a
test al, 0x40
je 0x47753a
and eax, 0xffffffbf
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x47753a
mov eax, dword [edi + 4]
dec dword [eax + 4]
mov ebp, dword [edi + 0x88]
test ebp, ebp
je 0x47761f
mov ecx, dword [esi + 0x20]
call fcn.004848b0
mov ecx, eax
call fcn.004822d0
push eax
push edi
call ebp
jmp 0x47761c
cmp dword [esi + 0x20], 0
jl 0x477598
push 4
lea eax, [edi + 0x90]
push eax
push 0x700b
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x477598
mov eax, dword [edi + 0xa0]
mov dword [esi + 0x168], eax
mov dword [edi + 0xa0], esi
jmp 0x4775e4
push dword [esi + 0x3c]
call dword [0x4eb3ac]
mov dword [esi + 0x3c], 0xffffffff
test dword [edi + 0x2c], 0x800
je 0x47761f
mov edx, esi
mov ecx, edi
call fcn.00480930
jmp 0x47761f
mov eax, dword [edi + 0x2c]
test al, 1
je 0x4775cf
add dword [edi + 0x3c], 0xffffffff
jne case.0x47739f.6
jmp 0x47763b
cmp dword [esi + 0x20], 0
jl 0x4775f5
mov eax, dword [edi + 0xa8]
mov dword [esi + 0x40], eax
mov dword [edi + 0xa8], esi
mov eax, dword [edi + 0x88]
test eax, eax
je 0x47761f
push 0
push edi
call eax
jmp 0x47761c
mov eax, dword [esi + 0x3c]
cmp eax, 0xffffffff
je 0x47760b
push eax
call dword [0x4eb070]
mov dword [esi + 0x3c], 0xffffffff
test byte [edi + 0x2c], 1
jne 0x47761f
push ecx
push esi
mov edx, edi
mov ecx, ebx
call fcn.00482e50
add esp, 8
dec dword [edi + 0x3c]
mov eax, dword [edi + 0x2c]
test al, 1
je 0x477a2f
cmp dword [edi + 0x3c], 0
jne 0x477a2f
mov ecx, dword [esp + 0x10]
test al, 8
jne case.0x47739f.6
or eax, 8
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x28], eax
mov dword [ebx + 0x2c], edi
jmp case.0x47739f.6
mov edi, dword [esi + 0x40]
mov eax, dword [edi + 8]
sub eax, 7
je 0x47771f
sub eax, 5
je 0x477679
sub eax, 2
jne case.0x47739f.6
jmp 0x477a52
add dword [edi + 0x40], 0xffffffff
jne 0x47769a
mov eax, dword [edi + 0x2c]
test al, 1
jne 0x47769a
test al, 0x40
je 0x47769a
and eax, 0xffffffbf
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x47769a
mov eax, dword [edi + 4]
dec dword [eax + 4]
mov ecx, dword [esi + 0xc]
xor ebp, ebp
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x20]
test ecx, ecx
js 0x477718
push ebp
push ebp
push 0x7010
push 0xffff
push dword [edi + 0x90]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x477710
or dword [edi + 0x2c], 0x19000
mov ecx, ebp
mov dword [edi + 0x88], ebp
mov dword [edi + 0x48], 0xe
mov dword [edi + 0x64], ebp
mov dword [edi + 0x80], ebp
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x44], edi
inc dword [ebx + 0x58]
call fcn.004822d0
push eax
mov eax, dword [esi + 0x3c]
push esi
call eax
jmp 0x47761c
call dword [0x4eb3b8]
jmp 0x477785
call fcn.004848b0
jmp 0x477785
add dword [edi + 0x40], 0xffffffff
jne 0x477740
mov eax, dword [edi + 0x2c]
test al, 1
jne 0x477740
test al, 0x40
je 0x477740
and eax, 0xffffffbf
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x477740
mov eax, dword [edi + 4]
dec dword [eax + 4]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
cmp dword [esi + 0x3c], 0
je 0x47761f
mov eax, dword [esi + 0x20]
xor ebp, ebp
test eax, eax
js 0x47777e
mov ecx, edi
call fcn.004827c0
mov ecx, ebp
call fcn.004822d0
push eax
mov eax, dword [esi + 0x3c]
push esi
call eax
jmp 0x47761c
push eax
call dword [0x50f720]
mov ebp, eax
mov ecx, ebp
call fcn.004822d0
push eax
mov eax, dword [esi + 0x3c]
push esi
call eax
jmp 0x47761c
mov edx, dword [esi + 0x3c]
mov ecx, ebx
push esi
call fcn.00483820
jmp 0x477a2c
mov edx, dword [esi]
mov ecx, ebx
push esi
call fcn.00481860
jmp 0x477a2c
mov edi, dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
sub dword [edi + 0x30], eax
dec dword [edi + 0x34]
add dword [edi + 0x40], 0xffffffff
jne 0x4777e6
mov eax, dword [edi + 0x2c]
test al, 1
jne 0x4777e6
test al, 0x40
je 0x4777e6
and eax, 0xffffffbf
mov dword [edi + 0x2c], eax
test al, 0x20
je 0x4777e6
mov eax, dword [edi + 4]
dec dword [eax + 4]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x47761f
mov ecx, dword [esi + 0x20]
xor eax, eax
test ecx, ecx
jns 0x477810
call fcn.004848b0
mov ecx, eax
call fcn.004822d0
push eax
push esi
call ebp
jmp 0x47761c
mov ecx, dword [esi]
mov eax, dword [ecx + 0x2c]
mov byte [ecx + 0x70], 0
test al, 1
je 0x477849
test al, 8
jne 0x477a2f
or eax, 8
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [ecx + 0x28], eax
mov dword [ebx + 0x2c], ecx
jmp 0x477a2f
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x477a2f
push ecx
call eax
jmp 0x477a2c
mov esi, dword [esi]
xor ecx, ecx
lea eax, [esi + 0x84]
xchg dword [eax], ecx
cmp ecx, dword [esi + 0x34]
jne 0x477877
mov eax, dword [esi + 0x30]
push ecx
push esi
call eax
add esp, 8
test dword [esi + 0x2c], 0x100
je 0x477887
mov ecx, esi
call fcn.00476f40
mov ecx, dword [esi + 0x2c]
mov eax, ecx
and al, 9
cmp al, 1
jne 0x477a2f
or ecx, 8
mov dword [esi + 0x2c], ecx
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
jmp 0x477a2f
mov edi, dword [esi]
test dword [edi + 0x2c], 0x2000000
jne 0x4778c4
push esi
mov edx, edi
mov ecx, ebx
call fcn.00483c30
jmp 0x477a2c
lea eax, [edi + 0x80]
cmp esi, eax
jne 0x4778dd
mov al, byte [edi + 0xfa]
mov byte [edi + 0xf8], 0
jmp 0x4778f8
lea eax, [edi + 0xbc]
cmp esi, eax
jne case.0x47739f.6
mov al, byte [edi + 0xfb]
mov byte [edi + 0xf9], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
jns 0x477922
cmp byte [edi + 0xfc], 0
je 0x477943
push ecx
call dword [0x50f720]
push 0
mov ecx, eax
mov byte [edi + 0xfc], 0
call fcn.004822d0
push eax
jmp 0x47793a
mov ecx, dword [esi + 0x24]
movzx eax, al
not eax
and ecx, eax
movzx eax, byte [edi + 0xfc]
and ecx, eax
je 0x477943
push ecx
push 0
mov eax, dword [edi + 0x30]
push edi
call eax
add esp, 0xc
mov dh, byte [edi + 0xf9]
mov dl, byte [edi + 0xf8]
movzx ecx, dl
movzx eax, dh
or ecx, eax
not ecx
test byte [edi + 0xfc], cl
je 0x47796f
mov edx, edi
mov ecx, ebx
call fcn.00483ee0
jmp 0x477a2f
mov eax, dword [edi + 0x2c]
test al, 1
je 0x477a2f
test dl, dl
jne 0x477a2f
test dh, dh
jmp 0x477631
mov esi, dword [esi]
mov eax, dword [esi + 0x2c]
mov byte [esi + 0x84], 0
test al, 1
je 0x4779b5
test al, 8
jne case.0x47739f.6
or eax, 8
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
jmp case.0x47739f.6
mov eax, dword [esi + 0x7c]
cmp eax, 0xffffffff
je 0x4779cb
push eax
call dword [0x4eb100]
mov dword [esi + 0x7c], 0xffffffff
mov eax, dword [esi + 0x2c]
test al, 0x40
je 0x4779e2
and eax, 0xffffffbf
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x4779e2
mov eax, dword [esi + 4]
dec dword [eax + 4]
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4779ff
mov eax, dword [esp + 0x14]
xor edx, edx
jmp 0x477a0d
call dword [0x4eb0cc]
mov ecx, eax
call fcn.004822d0
cdq
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x477a2f
push dword [esi + 0x78]
push edx
push eax
push esi
call ecx
add esp, 0x10
jmp 0x477a2f
push dword [esi]
mov edx, esi
mov ecx, ebx
call fcn.0047f060
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x477380
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
push ecx
call fcn.0047bb00
push ecx
call fcn.0047bb00
push edi
jbe 4684450
add ch, ah
jae 0x477aa6
add byte [edx - 0x46ffb889], bl
ja 0x477aae
add byte [ebx], dh
jp 0x477ab2
add byte [ebx], dh
jp 0x477ab6
add byte [ebx], dh
jp 0x477aba
add byte [ebx], dh
jp 0x477abe
add dh, bl
je 0x477ac2
add byte [ecx], ah
jp 0x477ac6
add byte [edx - 0x76ffb888], ch
jns 0x477ace
add byte [esi - 0x55ffb88d], ah
ja 0x477ad6
add byte [eax], ah
js 0x477ada
add byte [eax + edi*2 + 0x47], bl
add ah, cl
int3
in al, dx
and esp, 0xfffffff8
sub esp, 0x14
push esi
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
add bh, bh
adc eax, sym.imp.KERNEL32.dll_SetErrorMode
xlatb
xchg esp, eax
add byte [eax - 0x50], ch
adc al, byte [eax]
push fcn.004012b0
mov al, 0x12
inc eax
add al, ch
inc ecx
mov dh, 2
call fcn.004a3100
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 4
push 0x50f518
call esi
add byte [ebx - 0x6b2893cb], cl
xlatb
xchg esp, eax
add byte [ebx + 0x186804c4], al
cmc
les eax, [eax + ebp*2]
sbb ch, dh
push eax
add bh, bh
salc
call fcn.00484e00
call fcn.004846b0
call fcn.004ab67e
push 0x50f500
mov dword [eax], 0x8000
retf
mov al, byte [0x6800033b]
add ch, dh
push eax
add bh, al
add byte [eax], al
add byte [eax], 0
call esi
push 1
push 0x476ee0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x477bd1
push 0
push bind
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x50f554], eax
test eax, eax
jne 0x477b2f
call dword [0x4eb0cc]
mov ecx, eax
call fcn.004822d0
test eax, eax
jne 0x477bd6
push 0
push 0
push 3
push 0
push 2
push 0xc0000000
push str.CONOUT_
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x50bae0], eax
test eax, eax
je 0x477b61
push 0x10
push 0
push 0x47bb10
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
push 0x50f55c
call esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x477b9a
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
call fcn.004e6560
movsd xmm1, qword [0x501158]
divsd xmm1, xmm0
movsd qword [0x50f398], xmm1
jmp 0x477ba5
xorps xmm0, xmm0
movsd qword [0x50f398], xmm0
mov eax, dword [0x50f6e8]
test eax, eax
je 0x477bcc
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0x484610
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
push ecx
push 2
call eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004a974b
call fcn.004a974b
int3