Function at 0x1002e490
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10058fa6
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov esi, 7
xor edx, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], dx
mov dword [esp + 0xc0], ebx
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x1002e7c0
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x1002e554
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x4c], ebx
je 0x1002e69c
push 0x10000000
push ebx
push ebx
push ebx
mov edi, 2
push ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x6c], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
cmp esi, ebx
je 0x1002e698
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jb 0x1002e5a3
mov eax, dword [eax + 4]
jmp 0x1002e5a6
add eax, 4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x28], ebx
je 0x1002e698
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1002e5fd
lea ecx, [esp + 0x78]
call fcn.1000b630
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xc4], 1
push ecx
mov dword [esp + 0x20], edi
call fcn.1002e820
mov byte [esp + 0x17], bl
test al, al
je 0x1002e602
mov byte [esp + 0x17], 1
mov dword [esp + 0xc0], ebx
test byte [esp + 0x18], 2
je 0x1002e61e
and dword [esp + 0x18], 0xfffffffd
lea esi, [esp + 0x78]
call fcn.10002040
cmp byte [esp + 0x17], bl
je 0x1002e67a
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x78]
call fcn.1000b630
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x78]
push edx
push eax
lea edi, [esp + 0x64]
mov byte [esp + 0xc8], 2
call fcn.1002eab0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc8], 3
call fcn.1000b980
mov esi, edi
call fcn.10002040
lea esi, [esp + 0x78]
mov byte [esp + 0xc0], bl
call fcn.10002040
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x1002e689
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1002e698
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x20]
cmp dword [esp + 0xa8], ebx
jne 0x1002e764
cmp dword [esp + 0x3c], ebx
je 0x1002e764
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x1002e6e8
lea ecx, [esp + 0x78]
call fcn.1000b630
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0xc4], 4
or dword [esp + 0x1c], 4
push edx
call fcn.1002e820
mov byte [esp + 0x17], bl
test al, al
je 0x1002e6ed
mov byte [esp + 0x17], 1
mov dword [esp + 0xc0], ebx
test byte [esp + 0x18], 4
je 0x1002e704
lea esi, [esp + 0x78]
call fcn.10002040
cmp byte [esp + 0x17], bl
je 0x1002e764
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x78]
call fcn.1000b630
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
push ecx
lea edi, [esp + 0x64]
mov byte [esp + 0xc8], 5
call fcn.1002eab0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc8], 6
call fcn.1000b980
mov esi, edi
call fcn.10002040
lea esi, [esp + 0x78]
mov byte [esp + 0xc0], bl
call fcn.10002040
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp eax, ebx
je 0x1002e775
push eax
call esi
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x1002e780
push eax
call esi
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x1002e78b
push eax
call esi
push 0xffffffffffffffff
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
lea eax, [esp + 0x9c]
mov ecx, edi
mov word [edi + 4], dx
call fcn.1000b980
cmp dword [esp + 0xac], 8
jb 0x1002e7f7
mov eax, dword [esp + 0x98]
push eax
jmp 0x1002e7ef
xor ecx, ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push 0xffffffffffffffff
mov word [edi + 4], cx
push ebx
lea eax, [esp + 0x9c]
mov ecx, edi
call fcn.1000b980
cmp dword [esp + 0xac], 8
jb 0x1002e7f7
mov edx, dword [esp + 0x98]
push edx
call fcn.1003f2c6
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1003f2d1
mov esp, ebp
pop ebp
ret 4