Function at 0x64057660
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x6407e59d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x640ba34c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x30], 0
jne 0x64057979
push str.winhttp
mov byte [esi + 0x30], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x64057979
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push edi
call ebp
push str.WinHttpCloseHandle
push edi
mov dword [0x640ba454], eax
call ebp
push str.WinHttpGetProxyForUrl
push edi
mov dword [0x640ba460], eax
call ebp
push str.WinHttpGetDefaultProxyConfiguration
push edi
mov dword [0x640ba450], eax
call ebp
push str.WinHttpGetIEProxyConfigForCurrentUser
push edi
mov dword [0x640ba458], eax
call ebp
lea ecx, [esp + 0x30]
push ecx
mov dword [0x640ba45c], eax
call eax
mov edi, dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
or ebx, 0xffffffff
test eax, eax
je 0x640577fc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x6405774c
push ebx
push eax
lea edx, [esp + 0x1c]
push edx
call edi
add esp, 0xc
push eax
lea ecx, [esi + 0x20]
mov dword [esp + 0x4c], 0
call dword [0x64082178]
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [esp + 0x34]
push eax
call ebp
mov eax, dword [esp + 0x38]
test eax, eax
je 0x640577a4
push ebx
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x5c], 1
call fcn.640574d0
add esp, 0x14
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x4c], 2
call fcn.64003ff0
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call fcn.64003b70
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [esp + 0x38]
push eax
call ebp
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x640577fc
push ebx
push eax
lea ecx, [esp + 0x1c]
push ecx
call edi
push eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x5c], 3
call fcn.640574d0
add esp, 0x14
push eax
lea ecx, [esi + 0x28]
mov byte [esp + 0x4c], 4
call fcn.64003ff0
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.64003b70
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [esp + 0x3c]
push eax
call ebp
cmp dword [esp + 0x30], 0
mov dword [esi + 4], 0
jne 0x640578ef
lea ecx, [esi + 0x20]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::isEmpty_void_const]
test al, al
je 0x640578ef
lea ecx, [esp + 0x24]
push ecx
call dword [0x640ba458]
test eax, eax
je 0x640578d7
cmp dword [esp + 0x24], 3
jne 0x640578d7
mov edx, dword [esp + 0x2c]
push ebx
push edx
lea eax, [esp + 0x1c]
push eax
call edi
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x5c], 5
call fcn.640574d0
add esp, 0x14
push eax
lea ecx, [esi + 0x28]
mov byte [esp + 0x4c], 6
call fcn.64003ff0
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 5
call fcn.64003b70
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov edx, dword [esp + 0x28]
push ebx
push edx
lea eax, [esp + 0x28]
push eax
call edi
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x5c], 7
call fcn.640574d0
add esp, 0x14
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x4c], 8
call fcn.64003ff0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 7
call fcn.64003b70
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x640578e2
push eax
call ebp
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x6405795a
push eax
call ebp
jmp 0x6405795a
lea ecx, [esi + 0x24]
call fcn.64003c60
lea ecx, [esi + 0x28]
call fcn.64003c60
push 0
push 0
push 0
push 1
push str.Qt_System_Proxy_access_1.0
call dword [0x640ba454]
test eax, eax
mov dword [esi + 4], eax
je 0x64057979
xor eax, eax
cmp dword [esp + 0x30], eax
mov byte [esi + 0x32], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
je 0x64057947
mov dword [esi + 8], 1
mov dword [esi + 0xc], 3
jmp 0x6405795a
lea ecx, [esi + 0x20]
mov dword [esi + 8], 2
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
mov dword [esi + 0x10], eax
cmp byte [esi + 0x32], 0
jne 0x64057971
lea ecx, [esi + 0x24]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QListData::isEmpty_void_const]
test al, al
je 0x64057971
xor eax, eax
jmp 0x64057976
mov eax, 1
mov byte [esi + 0x31], al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret