Function at 0x52f240
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
cmp dword [esi + 0xb4], 0
push edi
jne 0x52f46e
xor ecx, ecx
cmp byte [esi + 0x7f], cl
mov dword [esp + 0x10], ecx
jne 0x52f3e1
cmp byte [esi + 0x80], cl
jne 0x52f428
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 8
push ecx
push str.winhttp.dll
mov byte [esi + 0x80], 1
call edi
mov ebx, eax
test ebx, ebx
jne 0x52f292
xor ebp, ebp
jmp 0x52f2a0
push str.WinHttpOpen
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
push 8
push 0
push str.winhttp.dll
call edi
test eax, eax
mov dword [esi + 0x18], eax
jne 0x52f2b7
mov dword [esi + 0x1c], eax
jmp 0x52f2c6
push str.WinHttpGetProxyForUrl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
test ebp, ebp
je 0x52f2e2
cmp dword [esi + 0x1c], 0
je 0x52f2e2
push 0
push 0
push 0
push 1
push 0
call ebp
mov dword [esi + 0xb4], eax
cmp dword [esi + 0xb4], 0
je 0x52f30f
test ebx, ebx
je 0x52f465
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x10]
call fcn.00401700
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 8
push 0
push str.jsproxy.dll
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
jne 0x52f32b
mov dword [esi + 4], eax
jmp 0x52f336
push str.InternetInitializeAutoProxyDll
push eax
call ebp
mov dword [esi + 4], eax
push 8
push 0
push str.jsproxy.dll
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x52f34d
mov dword [esi + 0xc], eax
jmp 0x52f358
push str.InternetGetProxyInfo
push eax
call ebp
mov dword [esi + 0xc], eax
push 8
push 0
push str.jsproxy.dll
call edi
test eax, eax
mov dword [esi + 0x10], eax
jne 0x52f36f
mov dword [esi + 0x14], eax
jmp 0x52f37a
push str.InternetDeInitializeAutoProxyDll
push eax
call ebp
mov dword [esi + 0x14], eax
cmp dword [esi + 4], 0
je 0x52f41d
cmp dword [esi + 0xc], 0
je 0x52f41d
cmp dword [esi + 0x14], 0
je 0x52f41d
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esi + 0x7f], 1
call fcn.0052f070
mov ebp, eax
test ebp, ebp
je 0x52f3d2
test ebx, ebx
je 0x52f3bd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x10]
call fcn.00401700
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
test ebx, ebx
je 0x52f3dd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x52f43e
lea eax, [ecx + 4]
mov dword [esp + 0x18], eax
test dword [ecx], 0xffffff00
je 0x52f446
cmp byte [eax], 0
je 0x52f446
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x52f410
sub eax, edx
jmp 0x52f448
test ebx, ebx
je 0x52f428
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x10]
call fcn.00401700
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov dword [esp + 0x18], 0x67b348
xor eax, eax
mov esi, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
add eax, 1
push 0
mov dword [esp + 0x30], eax
call esi
test eax, eax
je 0x52f428
lea edi, [esp + 0x10]
call fcn.00401700
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4