Function at 0x471d30
Capabilities:
Check http status code
Contain obfuscated stackstrings
Create raw socket
Receive data
Receive data on socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4ad784
push eax
mov eax, 0x29d0
mov dword fs:[0], esp
call fcn.004a0d60
mov eax, dword [esp + 0x29e0]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x14], ecx
jg 0x471d70
mov eax, 1
mov dword [esp + 0x29f0], eax
mov dword [ecx + 0x70], eax
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.WANPPPConnection
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WANPPPConnection
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x78], cl
lea ecx, [esp + 0x78]
mov dword [esp + 0x29ec], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.service
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.service
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x88]
mov byte [esp + 0x29ec], 1
mov byte [esp + 0x88], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.WANIPConnection
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WANIPConnection
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x98]
mov byte [esp + 0x29ec], 2
mov byte [esp + 0x98], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.service
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.service
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0xa8], cl
lea ecx, [esp + 0xa8]
mov byte [esp + 0x29ec], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.InternetGatewayDevice
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.InternetGatewayDevice
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0xb8]
mov byte [esp + 0x29ec], 4
mov byte [esp + 0xb8], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.device
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.device
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push esi
push 2
push 2
mov byte [esp + 0x29f4], 5
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 0xc8]
mov dword [esp + 0x18], eax
push ecx
push 0x8004667e
push eax
mov dword [esp + 0xd4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
jge 0x472645
cdq
mov ecx, 0x64
idiv ecx
test edx, edx
jne 0x472177
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x64]
mov ebx, 2
lea edi, [edx + 0x10]
mov eax, dword [esp + 0x29f0]
lea ecx, [esp + 0x190]
push eax
push ecx
call fcn.004709b0
mov ebp, eax
lea edx, [esi + 0x10]
lea eax, [esp + 0x138]
push edx
push 0x513060
push eax
mov byte [esp + 0x29fc], 6
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x4c9e10
lea ecx, [esp + 0x1c8]
push eax
push ecx
mov byte [esp + 0x2a08], 7
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push esi
lea edx, [esp + 0x1e4]
push eax
push edx
mov byte [esp + 0x2a14], 8
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x4c9e10
push eax
lea eax, [esp + 0x1d4]
mov byte [esp + 0x2a1c], 9
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push ebp
lea ecx, [esp + 0x13c]
push eax
push ecx
mov byte [esp + 0x2a2c], 0xa
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0x44
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x29e8], 0xb
mov ecx, dword [edx]
push ecx
push 0
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x104]
mov byte [esp + 0x29ec], 0xa
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x29ec], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x29ec], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x29ec], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x134]
mov byte [esp + 0x29ec], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x194]
mov byte [esp + 0x29ec], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xe4]
mov byte [esp + 0xe4], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
lea eax, [esp + 0x1d4]
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nMAN:__ssdp:discover__r_nMX:_6_r_nST:
push eax
mov byte [esp + 0x29f4], 0xc
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push str._r_n_r_n
lea ecx, [esp + 0x160]
push eax
push ecx
mov byte [esp + 0x2a00], 0xd
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x18
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x29e8], 0xe
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0xec]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x154]
mov byte [esp + 0x29ec], 0xd
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x29ec], 0xc
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xe0]
push edx
push 0x76c
push 0xfaffffef
push eax
call fcn.00471220
add esp, 0x10
lea ecx, [esp + 0xe0]
mov byte [esp + 0x29e8], 5
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x20
dec ebx
jne 0x471f53
mov ecx, dword [esp + 0x14]
push 0xa
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x472645
mov ecx, 0xa00
xor eax, eax
lea edi, [esp + 0x1e0]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x1e4]
push 0x2800
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0xc4], esi
jle 0x472634
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x1e0]
push esi
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
mov byte [esp + 0x29ec], 0xf
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x30]
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x29f0], 0x10
call fcn.00471330
add esp, 8
test al, al
je 0x47267e
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x64]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
lea ebx, [ecx + 0x10]
mov edx, dword [esp + 0x29f0]
lea eax, [esp + 0x180]
push edx
push eax
call fcn.004709b0
mov esi, eax
lea ecx, [edi + 0x10]
lea edx, [esp + 0x168]
push ecx
push 0x513060
push edx
mov byte [esp + 0x29fc], 0x11
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x4c9e10
push eax
lea eax, [esp + 0x15c]
mov byte [esp + 0x2a04], 0x12
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push edi
lea ecx, [esp + 0x144]
push eax
push ecx
mov byte [esp + 0x2a14], 0x13
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x4c9e10
lea edx, [esp + 0x140]
push eax
push edx
mov byte [esp + 0x2a20], 0x14
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push esi
push eax
lea eax, [esp + 0x1b0]
mov byte [esp + 0x2a28], 0x15
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0x44
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x29e8], 0x16
mov edx, dword [ecx]
mov ecx, ebx
push edx
push ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x174]
mov byte [esp + 0x29ec], 0x15
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x114]
mov byte [esp + 0x29ec], 0x14
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x124]
mov byte [esp + 0x29ec], 0x13
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x29ec], 0x12
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x164]
mov byte [esp + 0x29ec], 0x11
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x184]
mov byte [esp + 0x29ec], 0x10
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
cmp eax, ebp
jne 0x472394
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ecx
push ebp
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
cmp eax, 0xffffffff
je 0x4725ab
xor ebp, ebp
mov edi, 0x4c7658
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x4c7658
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov esi, eax
cmp esi, 0xffffffff
je 0x47267e
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea ecx, [esp + 0xf4]
push ebp
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x29f4], 0x17
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x29e8], 0x18
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x29ec], 0x17
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x28]
add esi, 2
test eax, eax
mov dword [esp + 0xcc], esi
je 0x472591
push 9
lea edx, [esp + 0xd4]
push 0
push edx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov ebp, dword [esp + 0xd4]
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor eax, eax
mov byte [esp + 0x29e8], 0x19
mov dword [esp + 0x41], eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x45], eax
test ebp, ebp
mov byte [esp + 0x49], al
je 0x472496
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xd8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov ecx, eax
je 0x4724d9
mov al, byte [esp + ecx + 0x40]
cmp al, 0x61
jl 0x4724d6
cmp al, 0x7a
jg 0x4724d6
sub al, 0x20
mov byte [esp + ecx + 0x40], al
dec ecx
jne 0x4724c4
mov esi, 0x4c9da8
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x472508
test cl, cl
je 0x472502
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x472508
add eax, 2
add esi, 2
test cl, cl
jne 0x4724e2
xor edi, edi
xor eax, eax
jmp 0x47250f
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
je 0x472734
cmp ebp, edi
je 0x472538
mov al, byte [ebp - 1]
lea ecx, [ebp - 1]
test al, al
je 0x47252f
cmp al, 0xff
je 0x47252f
dec al
mov byte [ecx], al
jmp 0x472538
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xd4], edi
cmp ecx, edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], edi
mov byte [esp + 0x29e8], 0x10
je 0x472579
mov al, byte [ecx - 1]
test al, al
je 0x47256f
cmp al, 0xff
je 0x47256f
dec al
mov byte [ecx - 1], al
jmp 0x472579
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
jmp 0x4723ac
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x29ec], 0x10
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, dword [esp + 0x4c]
xor ebp, ebp
mov eax, dword [esp + 0x50]
add edi, 0x20
inc eax
mov dword [esp + 0x4c], edi
cmp eax, 2
mov dword [esp + 0x50], eax
jl 0x472244
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x4725e9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4725e0
cmp al, 0xff
je 0x4725e0
dec al
mov byte [ecx], al
jmp 0x4725e9
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], ebp
cmp ecx, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x29e8], 5
je 0x472621
mov al, byte [ecx - 1]
test al, al
je 0x472617
cmp al, 0xff
je 0x472617
dec al
mov byte [ecx - 1], al
jmp 0x472621
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov ecx, dword [esp + 0x1c]
inc ecx
cmp esi, ebp
mov dword [esp + 0x1c], ecx
jle 0x471f24
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xb8]
xor esi, esi
cmp ecx, esi
je 0x4728e2
mov al, byte [ecx - 1]
test al, al
je 0x4728d8
cmp al, 0xff
je 0x4728d8
dec al
mov byte [ecx - 1], al
jmp 0x4728e2
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x29ec], 0xf
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x29ec], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xb8]
mov byte [esp + 0x29ec], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x29ec], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x29ec], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x29ec], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0x29ec], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x68]
mov dword [esp + 0x29ec], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
jmp 0x472a04
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xf0]
push eax
push 9
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x29e8], 0x1a
mov ecx, dword [edx]
push ecx
push edi
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x29ec], 0x19
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 1
mov eax, dword [ebx + 0x28]
lea esi, [ebx + 0x20]
push eax
mov ecx, esi
call fcn.00475d50
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4727b0
xor esi, esi
jmp 0x4727b8
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 4
dec esi
mov ecx, ebx
push esi
call fcn.00472a70
push 1
lea ecx, [esp + 0xd4]
mov bl, al
mov byte [esp + 0x29ec], 0x17
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x29ec], 0x10
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x29ec], 0xf
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x29ec], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xb8]
mov byte [esp + 0x29ec], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x29ec], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x29ec], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x29ec], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x78]
xor esi, esi
cmp eax, esi
je 0x472899
mov cl, byte [eax - 1]
test cl, cl
je 0x47288f
cmp cl, 0xff
je 0x47288f
dec cl
mov byte [eax - 1], cl
jmp 0x472899
dec eax
push eax
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x78], esi
cmp ecx, esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
je 0x4728d1
mov al, byte [ecx - 1]
test al, al
je 0x4728c7
cmp al, 0xff
je 0x4728c7
dec al
mov byte [ecx - 1], al
mov al, bl
jmp 0x472a04
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov al, bl
jmp 0x472a04
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xb8], esi
cmp ecx, esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
je 0x47291e
mov al, byte [ecx - 1]
test al, al
je 0x472914
cmp al, 0xff
je 0x472914
dec al
mov byte [ecx - 1], al
jmp 0x47291e
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xa8], esi
cmp ecx, esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
je 0x47295a
mov al, byte [ecx - 1]
test al, al
je 0x472950
cmp al, 0xff
je 0x472950
dec al
mov byte [ecx - 1], al
jmp 0x47295a
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x98], esi
cmp ecx, esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
je 0x472996
mov al, byte [ecx - 1]
test al, al
je 0x47298c
cmp al, 0xff
je 0x47298c
dec al
mov byte [ecx - 1], al
jmp 0x472996
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x88], esi
cmp ecx, esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
je 0x4729cf
mov al, byte [ecx - 1]
test al, al
je 0x4729c5
cmp al, 0xff
je 0x4729c5
dec al
mov byte [ecx - 1], al
jmp 0x4729cf
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x78], esi
cmp ecx, esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
je 0x472a02
mov al, byte [ecx - 1]
test al, al
je 0x4729f8
cmp al, 0xff
je 0x4729f8
dec al
mov byte [ecx - 1], al
jmp 0x472a02
dec ecx
push ecx
call fcn.0049c000
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x29e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29dc
ret 4