Function at 0x4221e0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
cmp dword [esi + 0xbc], 0
push edi
jne 0x422412
xor ecx, ecx
cmp byte [esi + 0x87], cl
mov dword [esp + 0x10], ecx
jne 0x422387
cmp byte [esi + 0x88], cl
jne 0x4223cc
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 8
push ecx
push str.winhttp.dll
mov byte [esi + 0x88], 1
call edi
mov ebx, eax
test ebx, ebx
jne 0x422235
xor ebp, ebp
jmp 0x422243
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 0x42225a
mov dword [esi + 0x1c], eax
jmp 0x422269
push str.WinHttpGetProxyForUrl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
test ebp, ebp
je 0x422285
cmp dword [esi + 0x1c], 0
je 0x422285
push 0
push 0
push 0
push 1
push 0
call ebp
mov dword [esi + 0xbc], eax
cmp dword [esi + 0xbc], 0
je 0x4222b2
test ebx, ebx
je 0x422409
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x10]
call fcn.00401070
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 0x4222ce
mov dword [esi + 4], eax
jmp 0x4222d9
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 0x4222f0
mov dword [esi + 0xc], eax
jmp 0x4222fb
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 0x422312
mov dword [esi + 0x14], eax
jmp 0x42231d
push str.InternetDeInitializeAutoProxyDll
push eax
call ebp
mov dword [esi + 0x14], eax
cmp dword [esi + 4], 0
je 0x4223c1
cmp dword [esi + 0xc], 0
je 0x4223c1
cmp dword [esi + 0x14], 0
je 0x4223c1
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esi + 0x87], 1
call fcn.00422040
mov ebp, eax
test ebp, ebp
je 0x422378
test ebx, ebx
je 0x422363
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x10]
call fcn.00401070
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
test ebx, ebx
je 0x422383
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 0x4223e2
lea eax, [ecx + 4]
mov dword [esp + 0x18], eax
test dword [ecx], 0xffffff00
je 0x4223ea
cmp byte [eax], 0
je 0x4223ea
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4223b4
sub eax, edx
jmp 0x4223ec
test ebx, ebx
je 0x4223cc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x10]
call fcn.00401070
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov dword [esp + 0x18], 0x543bb1
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 0x4223cc
lea edi, [esp + 0x10]
call fcn.00401070
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4