Function at 0x41ac4c
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 [0x41c134]
call fcn.00404dc8
xor eax, eax
push ebp
push 0x41b359
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 0x41b2e9
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 0x41acfe
mov eax, dword [ebp + 0xc]
mov edx, 0x41b374
call fcn.00404420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b315
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004183ac
test al, al
jne 0x41ad2c
mov eax, dword [ebp + 0xc]
mov edx, 0x41b38c
call fcn.00404420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b315
cmp dword [ebp - 0x4c], 1
je 0x41ad52
cmp dword [ebp - 0x4c], 2
je 0x41ad52
mov eax, dword [ebp + 0xc]
mov edx, 0x41b3a4
call fcn.00404420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b315
xor eax, eax
push ebp
push 0x41b2d8
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, 0x41b3c4
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, 0x41b3d0
call fcn.00404a70
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.00404c40
jne 0x41add9
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 0x41adf3
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 0x41aebd
je 0x41ae77
dec al
je 0x41ae9a
dec al
jne 0x41b0ba
mov edx, dword [ebp - 0x24]
mov eax, 0x41b3e4
call fcn.00404d10
dec eax
jne 0x41ae46
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 0x41b0ba
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 0x41b0ba
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 0x41b0ba
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 0x41b062
xor eax, eax
push ebp
push 0x41b05b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x54], 0
jne 0x41af03
cmp dword [ebp - 0x5c], 0
jne 0x41af07
cmp dword [ebp - 0x58], 0
jne 0x41af07
xor eax, eax
jmp 0x41af09
mov al, 1
neg al
sbb eax, eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x41b00a
cmp dword [ebp - 0x58], 0
je 0x41affa
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 0x41b020
xor eax, eax
push ebp
push 0x41aff3
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 0x41afdc
xor eax, eax
push ebp
push 0x41afd5
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 0x41afdc
cmp dword [ebp - 0x7c], 0
je 0x41afc5
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x78], 0
je 0x41afd4
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 0x41b020
mov eax, dword [ebp - 0x14]
push eax
call sub.Winhttp.dll_WinHttpCloseHandle
ret
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 3
jmp 0x41b020
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 0x41b062
cmp dword [ebp - 0x58], 0
je 0x41b03c
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x54], 0
je 0x41b04b
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 0x50], 0
je 0x41b05a
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 0x41b08e
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 0x41b0ba
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 0x41b0f7
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, 0x41b3f8
call fcn.004046e8
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b315
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.00404c40
je 0x41b125
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 0x41b153
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 0x41b181
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 0x41b1b1
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 0x41b24a
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, 0x41b41c
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 0x41b315
mov eax, dword [ebp - 0x34]
call fcn.00404b84
test eax, eax
jle 0x41b266
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
call fcn.00404b90
jmp 0x41b276
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov edx, 0x41b438
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 0x41b2df
cmp byte [ebp - 0xd], 0
jne 0x41b2d7
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x41b2bd
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 0x41b2d7
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 0x41b360
lea eax, [ebp - 0xa0]
call fcn.004043cc
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.004043f0
lea eax, [ebp - 0x4c]
mov edx, dword [0x41c134]
call fcn.00404e98
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404a28
ret