Function at 0x41aadc
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
mov edx, dword [0x41bfc4]
call fcn.00404dc8
xor eax, eax
push ebp
push 0x41b1e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x41b179
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
mov edx, dword [0x424e80]
mov edx, dword [edx]
call fcn.00404420
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404c40
jne 0x41ab8e
mov eax, dword [ebp + 0xc]
mov edx, 0x41b204
call fcn.00404420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b1a5
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.0041823c
test al, al
jne 0x41abbc
mov eax, dword [ebp + 0xc]
mov edx, 0x41b21c
call fcn.00404420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b1a5
cmp dword [ebp - 0x4c], 1
je 0x41abe2
cmp dword [ebp - 0x4c], 2
je 0x41abe2
mov eax, dword [ebp + 0xc]
mov edx, 0x41b234
call fcn.00404420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b1a5
xor eax, eax
push ebp
push 0x41b168
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x48]
call fcn.00404664
mov eax, dword [ebp - 0x84]
mov edx, 0x41b254
call fcn.0040b664
mov edx, dword [ebp + 8]
mov byte [edx], al
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x44]
call fcn.00404a70
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
call fcn.00404a70
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x38]
call fcn.00404a70
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
call fcn.00404a70
lea eax, [ebp - 0x28]
mov edx, 0x41b260
call fcn.00404a70
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.00404c40
jne 0x41ac69
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
call fcn.00404a70
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.00404c40
jne 0x41ac83
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
call fcn.00404a70
lea eax, [ebp - 0x80]
mov edx, 0xc
call fcn.004067d4
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x10]
sub al, 1
jb 0x41ad4d
je 0x41ad07
dec al
je 0x41ad2a
dec al
jne 0x41af4a
mov edx, dword [ebp - 0x24]
mov eax, 0x41b274
call fcn.00404d10
dec eax
jne 0x41acd6
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x7fffffff
mov edx, 6
mov eax, dword [ebp - 0x24]
call fcn.00404cc4
push 0
mov eax, dword [ebp - 0x28]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404b74
push eax
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00404b74
push eax
call sub.Winhttp.dll_WinHttpOpen
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x41af4a
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00404b74
push eax
call sub.Winhttp.dll_WinHttpOpen
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x41af4a
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00404b74
push eax
call sub.Winhttp.dll_WinHttpOpen
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x41af4a
lea eax, [ebp - 0x24]
call fcn.00404a10
lea eax, [ebp - 0x5c]
mov edx, 0x10
call fcn.004067d4
lea eax, [ebp - 0x5c]
push eax
call sub.Winhttp.dll_WinHttpGetIEProxyConfigForCurrentUser
test eax, eax
je 0x41aef2
xor eax, eax
push ebp
push 0x41aeeb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x54], 0
jne 0x41ad93
cmp dword [ebp - 0x5c], 0
jne 0x41ad97
cmp dword [ebp - 0x58], 0
jne 0x41ad97
xor eax, eax
jmp 0x41ad99
mov al, 1
neg al
sbb eax, eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x41ae9a
cmp dword [ebp - 0x58], 0
je 0x41ae8a
mov dword [ebp - 0x74], 2
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 0xffffffff
push 0x10000000
push 0
push 0
push 0
push 0
call sub.Winhttp.dll_WinHttpOpen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41aeb0
xor eax, eax
push ebp
push 0x41ae83
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.Winhttp.dll_WinHttpGetProxyForUrl
test eax, eax
je 0x41ae6c
xor eax, eax
push ebp
push 0x41ae65
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x7c]
call fcn.00404b28
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x78]
call fcn.00404b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ae6c
cmp dword [ebp - 0x7c], 0
je 0x41ae55
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x78], 0
je 0x41ae64
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_GlobalFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41aeb0
mov eax, dword [ebp - 0x14]
push eax
call sub.Winhttp.dll_WinHttpCloseHandle
ret
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 3
jmp 0x41aeb0
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x54]
call fcn.00404b28
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x50]
call fcn.00404b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41aef2
cmp dword [ebp - 0x58], 0
je 0x41aecc
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x54], 0
je 0x41aedb
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x50], 0
je 0x41aeea
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_GlobalFree
ret
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.00404c40
jne 0x41af1e
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00404b74
push eax
call sub.Winhttp.dll_WinHttpOpen
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x41af4a
push 0
mov eax, dword [ebp - 0x28]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404b74
push eax
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00404b74
push eax
call sub.Winhttp.dll_WinHttpOpen
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x41af87
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x88]
call fcn.0040c190
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
mov edx, 0x41b288
call fcn.004046e8
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b1a5
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.00404c40
je 0x41afb5
mov eax, dword [ebp - 0x1c]
call fcn.00404b84
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404b74
push eax
push 0x1000
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.Winhttp.dll_WinHttpSetOption
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.00404c40
je 0x41afe3
mov eax, dword [ebp - 0x20]
call fcn.00404b84
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404b74
push eax
push 0x1001
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.Winhttp.dll_WinHttpSetOption
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x41b011
push 0
push 0
push 0x2f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.Winhttp.dll_WinHttpSetOption
push 4
mov eax, dword [0x424e90]
push eax
push 0x1f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.Winhttp.dll_WinHttpSetOption
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x41b041
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.Winhttp.dll_WinHttpSetTimeouts
push 0
mov ax, word [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404b74
push eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.Winhttp.dll_WinHttpConnect
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x41b0da
lea eax, [ebp - 0x8c]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0xa0]
call fcn.0040c190
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
lea edx, [ebp - 0x9c]
mov ecx, 1
mov eax, 0x41b2ac
call fcn.0040bc08
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp + 0xc]
call fcn.00404420
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b1a5
mov eax, dword [ebp - 0x34]
call fcn.00404b84
test eax, eax
jle 0x41b0f6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
call fcn.00404b90
jmp 0x41b106
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov edx, 0x41b2c8
call fcn.00404b90
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.00404a4c
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x20]
call fcn.00404a4c
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b16f
cmp byte [ebp - 0xd], 0
jne 0x41b167
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x41b14d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call sub.Winhttp.dll_WinHttpCloseHandle
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x41b167
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.Winhttp.dll_WinHttpCloseHandle
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b1f0
lea eax, [ebp - 0xa0]
call fcn.004043cc
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.004043f0
lea eax, [ebp - 0x4c]
mov edx, dword [0x41bfc4]
call fcn.00404e98
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404a28
ret