Function at 0x10002972
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push ebx
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x44]
mov dword [ebp - 0x48], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x10002b5f
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x100029d7
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], eax
cmp dword [ebp - 0x44], ebx
push esi
push 1
mov esi, 0x1b58
pop edi
je 0x10002a4e
push 0x10000000
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push esi
push esi
push esi
push esi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp - 4]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x10002a45
lea eax, [ebp - 0x38]
push 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x48], ebx
je 0x10002ab5
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push esi
push esi
push esi
push esi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], edi
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], 3
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x10002aac
lea eax, [ebp - 0x38]
push 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x10002b50
push dword [ebp - 0xc]
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x246]
mov word [ebp - 0x248], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 0xc]
call fcn.10002b66
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jle 0x10002b42
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x446]
mov word [ebp - 0x448], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10002bb4
pop ecx
test eax, eax
pop ecx
je 0x10002b42
lea eax, [ebp - 0x448]
push esi
push eax
push str._s:_d
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
cmp dword [ebp - 0xc], ebx
je 0x10002b50
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], ebx
pop esi
je 0x10002b5f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
leave
ret