Function at 0x5acab0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xac]
xor ebp, ebp
cmp eax, ebp
push edi
jne 0x5acd8e
mov al, byte [esi + 0x77]
test al, al
mov dword [esp + 0x10], ebp
jne 0x5acc54
mov al, byte [esi + 0x78]
test al, al
je 0x5acaf5
lea ecx, [esp + 0x10]
call fcn.004039f0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 8
push ebp
push str.winhttp.dll
mov byte [esi + 0x78], 1
call edi
mov ebx, eax
cmp ebx, ebp
je 0x5acb1d
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 0x5acb34
mov dword [esi + 0x1c], eax
jmp 0x5acb43
push str.WinHttpGetProxyForUrl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
test ebp, ebp
je 0x5acb60
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5acb60
push 0
push 0
push 0
push 1
push 0
call ebp
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0xac]
test eax, eax
je 0x5acb8a
test ebx, ebx
je 0x5acb75
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call fcn.004039f0
pop edi
pop esi
pop ebp
xor eax, eax
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 0x5acba6
mov dword [esi + 4], eax
jmp 0x5acbb1
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 0x5acbc8
mov dword [esi + 0xc], eax
jmp 0x5acbd3
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 0x5acbea
mov dword [esi + 0x14], eax
jmp 0x5acbf5
push str.InternetDeInitializeAutoProxyDll
push eax
call ebp
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x5acc81
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5acc81
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5acc81
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esi + 0x77], 1
call fcn.005ac790
mov edi, eax
test edi, edi
je 0x5acc49
test ebx, ebx
je 0x5acc34
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call fcn.004039f0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
test ebx, ebx
je 0x5acc54
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x10]
xor edx, edx
test edi, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], edx
je 0x5acca2
add edi, 4
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x5accac
test ebx, ebx
je 0x5acc8c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call fcn.004039f0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 4
mov dword [esp + 0x18], 0x6b6e10
xor ecx, ecx
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
inc ecx
push 0
mov dword [esp + 0x30], ecx
call esi
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x5acd33
test eax, eax
je 0x5acd26
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x5acd26
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x5acd15
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x5acd10
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5acd15
mov eax, 0xff
test eax, eax
jne 0x5acd26
mov eax, dword [esp + 0x10]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 4
test eax, eax
je 0x5acd8e
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x5acd8e
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x5acd7d
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x5acd78
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5acd7d
mov eax, 0xff
test eax, eax
jne 0x5acd8e
mov eax, dword [esp + 0x10]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4