Function at 0x406b50
Capabilities:
Check mutex on windows
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4274
call fcn.0044e270
mov eax, dword [0x48ae5c]
xor eax, esp
mov dword [esp + 0x4270], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x4801e8
lea eax, [esp + 0x3afc]
push 0x2bc
push eax
mov dword [esp + 0x24], edi
call fcn.0044da6a
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406ba0
sub eax, edx
sar eax, 1
je 0x406fe5
push 0x104
lea ecx, [esp + 0x3374]
push 0
push ecx
call fcn.0044e830
add esp, 0xc
push 0x208
lea edx, [esp + 0x4074]
push 0
push edx
call fcn.0044e830
add esp, 0xc
push 0x104
lea eax, [esp + 0x347c]
push 0
push eax
call fcn.0044e830
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x480210
push esi
mov dword [esp + 0x1c], 0
call fcn.0044df0a
add esp, 0xc
test eax, eax
je 0x406e4c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [sym.imp.WS2_32.dll_WSAStartup]
lea esp, [esp]
cmp word [esi], 0x2f
jne 0x406c39
add esi, 2
movzx eax, word [esi]
add eax, 0xffffffbf
cmp eax, 0x2f
ja case.0x406c4f.66
movzx edx, byte [eax + 0x407084]
jmp dword [edx*4 + 0x40706c]
push 0
push 0
push 0x104
lea eax, [esp + 0x337c]
push eax
push 0xffffffffffffffff
add esi, 4
push esi
push 0
push 0
call edi
test eax, eax
jle case.0x406c4f.66
lea ecx, [esp + 0x3370]
push 0x20
push ecx
call fcn.0044d3b0
add esp, 8
test eax, eax
je 0x406caa
lea edx, [esp + 0x3370]
push 0x20
push edx
mov byte [eax], 0
call fcn.0044d3b0
add esp, 8
test eax, eax
jne 0x406c91
lea eax, [esp + 0x3370]
push 0x2e
push eax
call fcn.0044d3b0
add esp, 8
test eax, eax
jne case.0x406c4f.66
lea ecx, [esp + 0x38]
push ecx
push 0x202
call ebx
lea edx, [esp + 0x3370]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je case.0x406c4f.66
cmp word [eax + 8], 2
jne case.0x406c4f.66
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x3374]
push 0x104
push edx
call fcn.0044d0da
add esp, 0xc
jmp case.0x406c4f.66
push 0
push 0
push 0x104
lea eax, [esp + 0x3484]
push eax
push 0xffffffffffffffff
add esi, 4
push esi
push 0
push 0
call edi
test eax, eax
jle case.0x406c4f.66
lea ecx, [esp + 0x3478]
push 0x20
push ecx
call fcn.0044d3b0
add esp, 8
test eax, eax
je case.0x406c4f.66
lea esp, [esp]
lea edx, [esp + 0x3478]
push 0x20
push edx
mov byte [eax], 0
call fcn.0044d3b0
add esp, 8
test eax, eax
jne 0x406d60
jmp case.0x406c4f.66
mov eax, dword [esp + 0x14]
add eax, 0xfffffffc
cmp word [eax], 0x20
jne 0x406d9e
jmp 0x406d90
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp word [eax], 0x20
je 0x406d90
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x3afc]
push 0x2bc
push eax
call fcn.0044da6a
add esp, 0xc
cmp word [esp + 0x3af8], 0x22
jne case.0x406c4f.66
add esi, 6
push esi
lea ecx, [esp + 0x3afc]
push 0x2bc
push ecx
call fcn.0044da6a
add esp, 0xc
lea edx, [esp + 0x3af8]
push 0x22
push edx
call fcn.0044dfe8
add esp, 8
test eax, eax
je case.0x406c4f.66
xor ecx, ecx
mov word [eax], cx
jmp case.0x406c4f.66
add esi, 4
push esi
call fcn.0044e016
add esp, 4
push eax
push str..mailslotkyoceramitautility_08x
lea edx, [esp + 0x4078]
push 0x104
push edx
call fcn.0044dacd
add esp, 0x10
jmp case.0x406c4f.66
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push 0x480210
push esi
call fcn.0044df0a
add esp, 0xc
test eax, eax
jne 0x406c30
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x3af8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406e56
sub eax, edx
sar eax, 1
je 0x406fe5
push 0x578
lea ecx, [esp + 0x3584]
push 0
push ecx
call fcn.0044e830
add esp, 0xc
push str.kyoceramita_kmstmnet300_snmp2_
lea edx, [esp + 0x3584]
push 0x2bc
push edx
call fcn.0044da6a
add esp, 0xc
lea eax, [esp + 0x3af8]
push eax
lea ecx, [esp + 0x3584]
push 0x2bc
push ecx
call fcn.0044e02c
add esp, 0xc
lea edx, [esp + 0x3580]
push 0x5c
push edx
call fcn.0044e0a1
add esp, 8
test eax, eax
je 0x406f0e
lea eax, [esp + 0x3580]
push 0x5c
push eax
call fcn.0044e0a1
add esp, 8
test eax, eax
je 0x406f0e
jmp 0x406ef0
lea edx, [esp + 0x3580]
mov ecx, 0x5f
push 0x5c
push edx
mov word [eax], cx
call fcn.0044e0a1
add esp, 8
test eax, eax
jne 0x406ef0
lea eax, [esp + 0x3580]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406fe5
lea ecx, [esp + 0x1c8]
push ecx
call fcn.00404320
lea edx, [esp + 0x3af8]
push edx
lea eax, [esp + 0x4fc]
push 0x104
push eax
call fcn.0044da6a
add esp, 0xc
lea ecx, [esp + 0x4070]
push ecx
lea edx, [esp + 0xa5c]
push 0x104
push edx
call fcn.0044da6a
add esp, 0xc
lea eax, [esp + 0x3370]
push eax
lea ecx, [esp + 0x704]
push 0x104
push ecx
call fcn.0044d0da
add esp, 0xc
lea edx, [esp + 0x3478]
push edx
lea eax, [esp + 0x808]
push 0x23
push eax
call fcn.0044d0da
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x336c], ecx
add esp, 0xc
mov eax, edi
lea ecx, [esp + 0x1c8]
call fcn.00404630
push edi
lea ecx, [esp + 0x1cc]
call fcn.004046e0
test eax, eax
jne 0x406ffe
lea ecx, [esp + 0x1c8]
call fcn.00404590
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4270]
xor ecx, esp
call fcn.0044ca30
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
call esi
test eax, eax
je 0x407040
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
call esi
test eax, eax
jne 0x407021
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x1c8]
call fcn.00404590
mov ecx, dword [esp + 0x427c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ca30
mov esp, ebp
pop ebp
ret 0x10