Function at 0x59aa30
Capabilities:
Check http status code

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x680f68
call fcn.0062921c
sub esp, 0x548
push ebx
xor ebx, ebx
mov dword [ebp + 0x2c], 0xf
push edi
mov edi, ebx
mov dword [ebp + 0x28], ebx
mov byte [ebp + 0x18], bl
push ebx
lea eax, [ebp + 0x30]
mov dword [ebp - 4], ebx
push 0x6e1278
push eax
call fcn.004c3c8d
add esp, 0xc
test al, al
jne 0x59aa7a
mov edi, str.cant_load_wininet.dll
jmp 0x59aca3
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.0048ea87
mov esi, eax
push 0x2f
mov byte [ebp - 4], 1
call fcn.0048e0f5
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004775a9
push esi
push eax
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
call fcn.00423fb1
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0040abbf
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0040abbf
cmp dword [ebp + 0x14], 0x10
mov eax, dword [ebp]
jae 0x59aad0
lea eax, [ebp]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [ebp + 0x30]
mov ecx, eax
mov dword [ebp + 0x48], ecx
test ecx, ecx
jne 0x59aaeb
mov edi, str.InternetOpen_failed
jmp 0x59ac97
push ebx
push ebx
push 3
mov eax, 0x70ed3c
push eax
push eax
push 0x50
push str.update.utorrent.com
push ecx
call dword [ebp + 0x34]
mov ebx, eax
mov dword [ebp + 0x4c], ebx
test ebx, ebx
jne 0x59ab14
mov edi, str.InternetConnect_failed
jmp 0x59ac8f
call fcn.00467358
xor ecx, ecx
test al, al
setne cl
mov dword [ebp + 0x50], ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0046c363
push eax
lea ecx, [ebp + 0x18]
call fcn.0040a1e2
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.0040abbf
cmp dword [ebp + 0x2c], 0x10
mov ecx, dword [ebp + 0x18]
jae 0x59ab57
lea ecx, [ebp + 0x18]
push dword [ebp + 0x50]
movzx eax, byte [ebp + 0x70]
push dword [ebp + 0x74]
push dword [0x74cdb0]
push dword [ebp + 0x68]
push eax
push esi
push ecx
call fcn.0048eb40
push eax
call fcn.0048e1ab
push eax
push dword [ebp + 0x78]
call fcn.0059b045
push eax
push str._crash.php_cl_sver_dUfull_version_dUh_sp_dUpr_dUs_dUsvp_dov_dplus_d
mov esi, 0x500
lea eax, [ebp - 0x554]
push esi
push eax
call fcn.0045acc5
mov ecx, dword [ebp + 0x6c]
add esp, 0x34
test ecx, ecx
je 0x59abc2
cmp byte [ecx], 0
je 0x59abc2
push ecx
sub esi, eax
lea ecx, [ebp - 0x554]
push str.dl_s
add eax, ecx
push esi
push eax
call fcn.0045acc5
add esp, 0x10
mov esi, dword [ebp + 0x64]
mov eax, 0x699ab4
test esi, esi
jne 0x59abd3
mov eax, 0x699abc
xor ecx, ecx
push ecx
push 0x4000000
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x554]
push ecx
push eax
push ebx
call dword [ebp + 0x38]
mov ebx, eax
test ebx, ebx
jne 0x59abfa
mov edi, str.HttpOpenRequest_failed
jmp 0x59ac89
mov ecx, str.Content_type:_application_octet_stream
test esi, esi
jne 0x59ac08
mov ecx, 0x70ed3c
mov eax, esi
neg eax
sbb eax, eax
and eax, dword [ebp + 0x68]
push eax
push esi
push 0xffffffffffffffff
push ecx
push ebx
call dword [ebp + 0x3c]
test eax, eax
jne 0x59ac25
mov edi, str.HttpSendRequest_failed
jmp 0x59ac85
push 0
lea eax, [ebp + 0x58]
mov dword [ebp + 0x58], 4
push eax
lea eax, [ebp + 0x54]
push eax
push 0x20000013
push ebx
call dword [ebp + 0x44]
test eax, eax
jne 0x59ac4a
mov edi, str.HttpQueryInfo_failed
jmp 0x59ac85
cmp dword [ebp + 0x54], 0xc8
je 0x59ac85
push dword [ebp + 0x54]
mov edi, 0x7a1250
push str.Error__d_:
push 0x64
pop esi
push esi
push edi
call fcn.0045acc5
add esp, 0x10
lea ecx, [ebp + 0x58]
sub esi, eax
mov dword [ebp + 0x58], esi
lea eax, [eax + 0x7a1250]
push 0
push ecx
push eax
push 0x14
push ebx
call dword [ebp + 0x44]
push ebx
call dword [ebp + 0x40]
push dword [ebp + 0x4c]
call dword [ebp + 0x40]
push dword [ebp + 0x48]
call dword [ebp + 0x40]
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp]
call fcn.0040abbf
pop esi
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.0040abbf
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x5c]
pop ebp
ret 0x18