Function at 0x49d410
Capabilities:
Contain obfuscated stackstrings
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a52ba
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34c], ecx
mov dword [ebp - 0x348], 0
mov eax, dword [ebp - 0x34c]
add eax, 0x30
push eax
lea ecx, [ebp - 0x44]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::util::MutexGuard::constructor_class_gloox::util::Mutex__
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34c]
cmp dword [ecx + 0x3c], 0
jge 0x49d47c
mov edx, dword [ebp - 0x34c]
cmp dword [edx + 8], 0
jle 0x49d4a0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::util::MutexGuard::destructor_void_
mov eax, dword [ebp - 0xa0]
jmp 0x49df0c
mov eax, dword [ebp - 0x34c]
mov dword [eax + 8], 1
mov ecx, dword [ebp - 0x34c]
cmp dword [ecx + 0x3c], 0
jge 0x49d4d4
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x2c]
push eax
call sym.GNTKProProxy.exe_public:_static_int___cdecl_gloox::DNS::getSocket_class_gloox::LogSink_const__
add esp, 4
mov ecx, dword [ebp - 0x34c]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 0x34c]
cmp dword [edx + 0x3c], 0
jge 0x49d504
mov dword [ebp - 0xa4], 7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::util::MutexGuard::destructor_void_
mov eax, dword [ebp - 0xa4]
jmp 0x49df0c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x1002
push 0xffff
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x49d56d
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ecx + 0x48]
cmp edx, dword [ebp - 0x18]
jle 0x49d56d
push 4
mov eax, dword [ebp - 0x34c]
add eax, 0x48
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x49d5c8
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ecx + 0x48]
cmp edx, dword [ebp - 0x18]
jle 0x49d5c8
push 4
mov eax, dword [ebp - 0x34c]
add eax, 0x48
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp - 0x34c]
add ecx, 0xc
call fcn.00403230
movzx ecx, al
test ecx, ecx
je 0x49d626
mov dword [ebp - 0x350], 0
jmp 0x49d63a
mov ecx, dword [ebp - 0x34c]
add ecx, 0xc
call fcn.00403210
mov dword [ebp - 0x350], eax
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x28]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.0049d2e0
add esp, 8
mov dword [ebp - 0x354], eax
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x354]
call fcn.00403210
push eax
mov ecx, dword [ebp - 0x350]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xc0]
call fcn.00403180
cmp dword [ebp - 0x1c], 0
je 0x49d92b
call fcn.004c9c77
mov edx, dword [eax]
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x34c]
add ecx, 0xc
call fcn.00403230
movzx eax, al
test eax, eax
je 0x49d6f4
push 0x5dfae4
lea ecx, [ebp - 0x118]
call fcn.00403100
mov dword [ebp - 0x358], eax
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 0x35c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x348]
or edx, 1
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x35c]
mov dword [ebp - 0x360], eax
jmp 0x49d703
mov ecx, dword [ebp - 0x34c]
add ecx, 0xc
mov dword [ebp - 0x360], ecx
mov edx, dword [ebp - 0x360]
mov dword [ebp - 0xfc], edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0049d2e0
add esp, 8
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x28]
push eax
lea ecx, [ebp - 0xf8]
push ecx
call fcn.0049d2e0
add esp, 8
mov dword [ebp - 0x36c], eax
mov edx, dword [ebp - 0x36c]
mov dword [ebp - 0x370], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xfc]
push eax
push str.getaddrinfo___for
lea ecx, [ebp - 0x134]
push ecx
call fcn.00426690
add esp, 0xc
mov dword [ebp - 0x374], eax
mov edx, dword [ebp - 0x374]
mov dword [ebp - 0x378], edx
mov byte [ebp - 4], 4
push 0x5dfae0
mov eax, dword [ebp - 0x378]
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.004090d0
add esp, 0xc
mov dword [ebp - 0x37c], eax
mov edx, dword [ebp - 0x37c]
mov dword [ebp - 0x380], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x370]
push eax
mov ecx, dword [ebp - 0x380]
push ecx
lea edx, [ebp - 0x16c]
push edx
call fcn.00409180
add esp, 0xc
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x388], eax
mov byte [ebp - 4], 6
push 0x5dfac4
mov ecx, dword [ebp - 0x388]
push ecx
lea edx, [ebp - 0x188]
push edx
call fcn.004090d0
add esp, 0xc
mov dword [ebp - 0x38c], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x390], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x368]
push ecx
mov edx, dword [ebp - 0x390]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00409180
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x188]
call fcn.00403180
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x16c]
call fcn.00403180
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x150]
call fcn.00403180
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x134]
call fcn.00403180
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf8]
call fcn.00403180
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xdc]
call fcn.00403180
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x348]
and ecx, 1
je 0x49d8c8
and dword [ebp - 0x348], 0xfffffffe
lea ecx, [ebp - 0x118]
call fcn.00403180
lea edx, [ebp - 0x64]
push edx
push 0x200
mov eax, dword [ebp - 0x34c]
mov ecx, dword [eax + 0x2c]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::LogSink::dbg_enum_gloox::LogArea__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x34c]
mov ecx, dword [eax + 0x3c]
push ecx
call sym.GNTKProProxy.exe_public:_static_void___cdecl_gloox::DNS::closeSocket_int__class_gloox::LogSink_const__
add esp, 8
mov dword [ebp - 0x18c], 7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00403180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::util::MutexGuard::destructor_void_
mov eax, dword [ebp - 0x18c]
jmp 0x49df0c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x34c]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x49dbea
call fcn.004c9c77
mov edx, dword [eax]
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x34c]
add ecx, 0xc
call fcn.00403230
movzx eax, al
test eax, eax
je 0x49d9b3
push 0x5dfb1c
lea ecx, [ebp - 0x1e4]
call fcn.00403100
mov dword [ebp - 0x394], eax
mov ecx, dword [ebp - 0x394]
mov dword [ebp - 0x398], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x348]
or edx, 2
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x398]
mov dword [ebp - 0x39c], eax
jmp 0x49d9c2
mov ecx, dword [ebp - 0x34c]
add ecx, 0xc
mov dword [ebp - 0x39c], ecx
mov edx, dword [ebp - 0x39c]
mov dword [ebp - 0x1c8], edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.0049d2e0
add esp, 8
mov dword [ebp - 0x3a0], eax
mov ecx, dword [ebp - 0x3a0]
mov dword [ebp - 0x3a4], ecx
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x28]
push eax
lea ecx, [ebp - 0x1c4]
push ecx
call fcn.0049d2e0
add esp, 8
mov dword [ebp - 0x3a8], eax
mov edx, dword [ebp - 0x3a8]
mov dword [ebp - 0x3ac], edx
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x1c8]
push eax
push str.bind___to
lea ecx, [ebp - 0x200]
push ecx
call fcn.00426690
add esp, 0xc
mov dword [ebp - 0x3b0], eax
mov edx, dword [ebp - 0x3b0]
mov dword [ebp - 0x3b4], edx
mov byte [ebp - 4], 0x13
push 0x5dfb18
mov eax, dword [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004090d0
add esp, 0xc
mov dword [ebp - 0x3b8], eax
mov edx, dword [ebp - 0x3b8]
mov dword [ebp - 0x3bc], edx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x3ac]
push eax
mov ecx, dword [ebp - 0x3bc]
push ecx
lea edx, [ebp - 0x238]
push edx
call fcn.00409180
add esp, 0xc
mov dword [ebp - 0x3c0], eax
mov eax, dword [ebp - 0x3c0]
mov dword [ebp - 0x3c4], eax
mov byte [ebp - 4], 0x15
push 0x5dfafc
mov ecx, dword [ebp - 0x3c4]
push ecx
lea edx, [ebp - 0x254]
push edx
call fcn.004090d0
add esp, 0xc
mov dword [ebp - 0x3c8], eax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x3cc], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x3a4]
push ecx
mov edx, dword [ebp - 0x3cc]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.00409180
add esp, 0xc
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x254]
call fcn.00403180
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x238]
call fcn.00403180
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x21c]
call fcn.00403180
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x200]
call fcn.00403180
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x1c4]
call fcn.00403180
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1a8]
call fcn.00403180
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x348]
and ecx, 2
je 0x49db87
and dword [ebp - 0x348], 0xfffffffd
lea ecx, [ebp - 0x1e4]
call fcn.00403180
lea edx, [ebp - 0x80]
push edx
push 0x200
mov eax, dword [ebp - 0x34c]
mov ecx, dword [eax + 0x2c]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::LogSink::dbg_enum_gloox::LogArea__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x34c]
mov ecx, dword [eax + 0x3c]
push ecx
call sym.GNTKProProxy.exe_public:_static_void___cdecl_gloox::DNS::closeSocket_int__class_gloox::LogSink_const__
add esp, 8
mov dword [ebp - 0x258], 7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00403180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::util::MutexGuard::destructor_void_
mov eax, dword [ebp - 0x258]
jmp 0x49df0c
push 0xa
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jge 0x49dee3
call fcn.004c9c77
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x34c]
add ecx, 0xc
call fcn.00403230
movzx edx, al
test edx, edx
je 0x49dc66
push 0x5dfb50
lea ecx, [ebp - 0x2b0]
call fcn.00403100
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x3d4], eax
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x348]
or ecx, 4
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x3d4]
mov dword [ebp - 0x3d8], edx
jmp 0x49dc75
mov eax, dword [ebp - 0x34c]
add eax, 0xc
mov dword [ebp - 0x3d8], eax
mov ecx, dword [ebp - 0x3d8]
mov dword [ebp - 0x294], ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x274]
push edx
call fcn.0049d2e0
add esp, 8
mov dword [ebp - 0x3dc], eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 4], 0x20
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ecx + 0x28]
push edx
lea eax, [ebp - 0x290]
push eax
call fcn.0049d2e0
add esp, 8
mov dword [ebp - 0x3e4], eax
mov ecx, dword [ebp - 0x3e4]
mov dword [ebp - 0x3e8], ecx
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x294]
push edx
push str.listen___on
lea eax, [ebp - 0x2cc]
push eax
call fcn.00426690
add esp, 0xc
mov dword [ebp - 0x3ec], eax
mov ecx, dword [ebp - 0x3ec]
mov dword [ebp - 0x3f0], ecx
mov byte [ebp - 4], 0x22
push 0x5dfb4c
mov edx, dword [ebp - 0x3f0]
push edx
lea eax, [ebp - 0x2e8]
push eax
call fcn.004090d0
add esp, 0xc
mov dword [ebp - 0x3f4], eax
mov ecx, dword [ebp - 0x3f4]
mov dword [ebp - 0x3f8], ecx
mov byte [ebp - 4], 0x23
push 0x5dfb48
mov edx, dword [ebp - 0x3f8]
push edx
lea eax, [ebp - 0x304]
push eax
call fcn.004090d0
add esp, 0xc
mov dword [ebp - 0x3fc], eax
mov ecx, dword [ebp - 0x3fc]
mov dword [ebp - 0x400], ecx
mov byte [ebp - 4], 0x24
mov edx, dword [ebp - 0x3e8]
push edx
mov eax, dword [ebp - 0x400]
push eax
lea ecx, [ebp - 0x320]
push ecx
call fcn.00409180
add esp, 0xc
mov dword [ebp - 0x404], eax
mov edx, dword [ebp - 0x404]
mov dword [ebp - 0x408], edx
mov byte [ebp - 4], 0x25
push str.__failed._WSAGetLastError:
mov eax, dword [ebp - 0x408]
push eax
lea ecx, [ebp - 0x33c]
push ecx
call fcn.004090d0
add esp, 0xc
mov dword [ebp - 0x40c], eax
mov edx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], edx
mov byte [ebp - 4], 0x26
mov eax, dword [ebp - 0x3e0]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
lea edx, [ebp - 0x9c]
push edx
call fcn.00409180
add esp, 0xc
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x33c]
call fcn.00403180
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x320]
call fcn.00403180
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x304]
call fcn.00403180
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x2e8]
call fcn.00403180
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x2cc]
call fcn.00403180
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x290]
call fcn.00403180
mov byte [ebp - 4], 0x2e
lea ecx, [ebp - 0x274]
call fcn.00403180
mov byte [ebp - 4], 0x2f
mov eax, dword [ebp - 0x348]
and eax, 4
je 0x49de7d
and dword [ebp - 0x348], 0xfffffffb
lea ecx, [ebp - 0x2b0]
call fcn.00403180
lea ecx, [ebp - 0x9c]
push ecx
push 0x200
mov edx, dword [ebp - 0x34c]
mov ecx, dword [edx + 0x2c]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::LogSink::dbg_enum_gloox::LogArea__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const
mov eax, dword [ebp - 0x34c]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x3c]
push eax
call sym.GNTKProProxy.exe_public:_static_void___cdecl_gloox::DNS::closeSocket_int__class_gloox::LogSink_const__
add esp, 8
mov dword [ebp - 0x340], 7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.00403180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::util::MutexGuard::destructor_void_
mov eax, dword [ebp - 0x340]
jmp 0x49df0c
mov ecx, dword [ebp - 0x34c]
mov byte [ecx + 0x4c], 0
mov dword [ebp - 0x344], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call sym.GNTKProProxy.exe_public:_void___thiscall_gloox::util::MutexGuard::destructor_void_
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret