Function at 0x4017c0
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431d28
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
xor esi, esi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
push 0x3c
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 4
push edi
push eax
call fcn.0041dbc0
mov ecx, dword [ebp - 0x78]
add esp, 0xc
mov eax, dword [ebp - 0x54]
mov edx, 2
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x4c], 1
cmp word [ecx + 8], 0x53
mov dword [ebp - 0x30], 1
cmove eax, edx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push ecx
mov dword [ebp - 0x38], 1
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x4018ec
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp dword [ebp - 0x44], ecx
push dword [ebp - 0x4c]
cmove eax, ecx
cmp dword [ebp - 0x3c], ecx
push dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
cmove eax, ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x38], eax
call fcn.00402a80
test eax, eax
je 0x4018ec
push dword [ebp - 0x30]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x34]
call fcn.00402a80
test eax, eax
je 0x4018ec
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4018d2
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x20]
call fcn.00402a80
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4018d2
mov eax, dword [ebp - 0x74]
jmp 0x4019a8
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4018f4
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x14]
call fcn.00402a80
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x4018f4
mov eax, dword [ebp - 0x74]
jmp 0x4019a8
lea eax, [ebp - 0x70]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x70], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
push 0
push 0
push 0
push 0
push str.iMailSetting
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x6c]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ecx, ecx
je 0x401932
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x40193c
push ecx
call eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40194a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
test ecx, ecx
je 0x4019a8
push 0
push dword [ebp - 0x48]
push dword [ebp - 0x18]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov eax, dword [ebp - 0x74]
mov dword [eax + 4], edx
test edx, edx
je 0x4019a8
cmp dword [eax + 0x20], 8
lea ecx, [eax + 0xc]
jb 0x401979
mov ecx, dword [ecx]
xor eax, eax
mov dword [ebp - 0x78], 0x800000
cmp dword [ebp - 0x54], 2
cmove eax, dword [ebp - 0x78]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 0x74]
test eax, eax
mov dword [ecx + 8], eax
mov eax, ecx
jne 0x4019f2
mov edx, dword [eax + 8]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edx, edx
je 0x4019c8
push edx
call ecx
mov eax, dword [ebp - 0x74]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [eax + 8], 0
mov edx, dword [eax + 4]
test edx, edx
je 0x4019dc
push edx
call ecx
mov eax, dword [ebp - 0x74]
mov dword [eax + 4], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x4019f2
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x74]
mov dword [eax], 0
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x401a05
push edi
call fcn.0040f3b0
add esp, 4
test esi, esi
je 0x401a12
push esi
call fcn.0040f3b0
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x401a22
push eax
call fcn.0040f3b0
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x401a32
push ecx
call fcn.0040f3b0
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4