Function at 0x45a120
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x58
mov eax, dword [0x496ee4]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax + 0x2c4], 0
jne 0x45a150
xor al, al
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0047bc8a
add esp, 0x58
ret 0x14
cmp dword [esi + 0x9c], 0
jne 0x45a13c
call fcn.004598e0
push 0x2b8
mov dword [esi + 0x9c], 1
mov dword [esi + 4], 3
call fcn.0047bd5c
add esp, 4
test eax, eax
je 0x45a18a
push esi
mov ecx, eax
call fcn.00458b60
jmp 0x45a18c
xor eax, eax
push edi
push str.http:__127.0.0.1:
lea ecx, [esp + 0x44]
mov dword [esi + 8], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x4887b4
lea ecx, [esp + 0xc]
push 0x23e3
push ecx
call fcn.0045c960
add esp, 8
push eax
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x496934
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
push str.CMD_
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
push str.cmdgetpeers
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
mov eax, dword [esi]
mov ecx, dword [eax + 0x2cc]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0045c960
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea eax, [esp + 0x14]
push str.policy
push eax
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x200]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0045c9b0
push eax
lea ecx, [esp + 0x14]
push 0x4888ec
push ecx
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esi]
add edx, 0x2b0
push edx
lea eax, [esp + 0xc]
push str.fid
push eax
call edi
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x2e8]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0045c960
push eax
lea ecx, [esp + 0x14]
push str.fetchcount
push ecx
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esi]
mov eax, dword [edx + 0x37c]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0045c9b0
push eax
lea eax, [esp + 0x14]
push 0x4889c0
push eax
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x37c]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0045c9b0
push eax
lea edx, [esp + 0x14]
push 0x4889ac
push edx
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x45a3d5
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0045c960
push eax
lea ecx, [esp + 0x14]
push str.haspeer
push ecx
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x68]
test eax, eax
jl 0x45a517
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0045c960
push eax
lea eax, [esp + 0x14]
push str.piece
push eax
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [esp + 0x70], 0
je 0x45a431
push str.pfirstfetch1
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x37c]
mov eax, dword [edx + 8]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0045c9b0
push eax
lea edx, [esp + 0x14]
push 0x48897c
push edx
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x6c]
test eax, eax
jl 0x45a517
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0045c960
push eax
lea ecx, [esp + 0x14]
push str.nextpiece
push ecx
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [esp + 0x74], 0
je 0x45a4d2
push str.npfirstfetch1
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
mov edx, dword [esi]
mov eax, dword [edx + 0x37c]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0045c9b0
push eax
lea eax, [esp + 0x14]
push 0x48894c
push eax
call edi
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
add eax, 0x7530
cmp dword [esp + 0x58], 0x10
mov dword [esi + 0xa0], eax
mov eax, dword [esp + 0x44]
jae 0x45a539
lea eax, [esp + 0x44]
mov ecx, dword [esi + 8]
push eax
call fcn.00458480
mov eax, dword [esi]
inc dword [eax + 0x2e8]
call edi
cmp eax, dword [esi + 0xa4]
jbe 0x45a56f
call edi
mov ecx, dword [esi]
push str._L_Searching_resources_
add eax, 0xea60
push 3
mov dword [esi + 0xa4], eax
call fcn.00448d90
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0047bc8a
add esp, 0x58
ret 0x14