Function at 0x1006b4c0
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018712d
mov eax, dword fs:[0]
push eax
mov eax, 0x1178
call fcn.101845a0
mov eax, dword [0x102d5908]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1100], esi
cmp dword [esi + 0x18], 0
mov eax, dword [ebp + 8]
ja 0x1006b513
mov dword [esi + 0xf8], 3
xor al, al
jmp 0x1006c557
xor ecx, ecx
mov dword [ebp - 0x106c], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x1080], cx
lea ecx, [ebp - 0x1080]
push eax
mov dword [ebp - 0x1070], 0
call fcn.1006dbe0
cmp dword [ebp - 0x106c], 8
lea eax, [ebp - 0x1080]
mov edi, dword [sym.imp.MSVCR120.dll__wcsicmp]
cmovae eax, dword [ebp - 0x1080]
push 0x101907d0
push eax
mov dword [ebp - 4], 0
call edi
add esp, 8
test eax, eax
jne 0x1006b583
push 3
push 0x101907d0
lea ecx, [ebp - 0x1080]
call fcn.1006dd50
jmp 0x1006b5ba
cmp dword [ebp - 0x106c], 8
lea eax, [ebp - 0x1080]
push 0x101907d8
cmovae eax, dword [ebp - 0x1080]
push eax
call edi
add esp, 8
test eax, eax
jne 0x1006c529
push 0x101907d8
lea ecx, [ebp - 0x1080]
call fcn.1006dd00
cmp dword [esi], 0
mov byte [ebp - 0x10d4], 1
jne 0x1006b5fd
cmp dword [esi + 0x128], 8
lea eax, [esi + 0x114]
jb 0x1006b5d7
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
jne 0x1006b5fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
jmp 0x1006c533
push dword [esi + 0x184]
push dword [esi + 0x180]
push dword [esi + 0x17c]
push dword [esi + 0x178]
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push 0xa26
push eax
mov word [ebp - 0x1050], ax
lea eax, [ebp - 0x104e]
push eax
call sub.MSVCR120.dll_memset
push 0x3c
lea eax, [ebp - 0x1184]
push 0
push eax
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x420]
mov dword [ebp - 0x1184], 0x3c
mov dword [ebp - 0x1174], eax
add esp, 0x24
cmp dword [esi + 0x1c], 8
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1158], eax
lea eax, [esi + 8]
mov dword [ebp - 0x1170], 0x104
mov dword [ebp - 0x1154], 0x514
mov dword [ebp - 0x117c], 1
jb 0x1006b6b1
mov eax, dword [eax]
lea ecx, [ebp - 0x1184]
push ecx
push 0
push dword [esi + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1006c53a
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x20]
call fcn.1006dd00
push 0
push dword [ebp - 0x116c]
lea eax, [ebp - 0x420]
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1124], eax
test eax, eax
je 0x1006c53a
xor ecx, ecx
mov edx, 0x800000
cmp dword [ebp - 0x1178], 2
cmove ecx, edx
cmp dword [ebp - 0x106c], 8
push ecx
push 0
push 0
push 0
push dword [ebp - 0x1158]
lea edx, [ebp - 0x1080]
cmovae edx, dword [ebp - 0x1080]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x10c0], edi
test edi, edi
je 0x1006c51b
cmp byte [esi + 4], 0
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x1006b77b
cmp dword [ebp - 0x1178], 2
jne 0x1006b77b
push 4
lea ecx, [ebp - 0x10b8]
mov dword [ebp - 0x10b8], 0x3100
push ecx
push 0x1f
push edi
call eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea ecx, [ebp - 0x10b8]
mov dword [ebp - 0x10b8], 0x800
push ecx
push 0x54
push dword [esi]
call eax
test eax, eax
jne 0x1006b7a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
mov byte [ebp - 0x10b1], 0
xor ecx, ecx
lea ecx, [ecx]
mov eax, ecx
inc ecx
mov dword [ebp - 0x1104], ecx
cmp eax, 3
jae 0x1006c4f5
mov ecx, dword [esi + 0xd8]
test ecx, ecx
je 0x1006b7fb
cmp dword [esi + 0xdc], 8
lea eax, [esi + 0xc8]
jb 0x1006b7dd
mov eax, dword [eax]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1006b7fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
cmp dword [esi + 0xb8], 0
jbe 0x1006b874
push str.Cookie:
lea ecx, [ebp - 0x1068]
call fcn.1005fb90
push 0xffffffffffffffff
push 0
lea eax, [esi + 0xa8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1068]
call fcn.1006d970
cmp dword [ebp - 0x1054], 8
lea eax, [ebp - 0x1068]
push 0x1000000
push dword [ebp - 0x1058]
cmovae eax, dword [ebp - 0x1068]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1006b865
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 0
call fcn.10060b90
cmp dword [esi + 0xf0], 0
jbe 0x1006b986
xor eax, eax
mov dword [ebp - 0x1128], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x216]
movq qword [ebp - 0x1130], xmm0
push eax
mov dword [ebp - 0x1130], 3
call sub.MSVCR120.dll_memset
lea eax, [esi + 0xe0]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1006b8cc
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x218]
mov dword [ebp - 0x112c], eax
lea eax, [ebp - 0x1130]
push 0xc
push eax
push 0x26
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1006b910
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x140]
test eax, eax
je 0x1006b986
cmp dword [esi + 0x144], 8
lea ecx, [esi + 0x130]
jb 0x1006b92b
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1002
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1006b94b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x158]
test eax, eax
je 0x1006b986
cmp dword [esi + 0x15c], 8
lea ecx, [esi + 0x148]
jb 0x1006b966
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1003
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1006b986
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
cmp byte [ebp + 0xc], 0
je 0x1006b9b8
push 4
lea eax, [ebp - 0x10b8]
mov dword [ebp - 0x10b8], 2
push eax
push 0x3f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1006b9b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
mov byte [ebp - 0x10c1], 0
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1006bc67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
cmp eax, 0x2f8f
jne 0x1006ba24
push dword [esi]
push 0xa8
call fcn.10061fe0
add esp, 8
test al, al
jne 0x1006ba0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
cmp byte [ebp - 0x10b1], 0
jne 0x1006c50f
mov ecx, dword [ebp - 0x1104]
jmp 0x1006b7b0
lea eax, [ebp - 0x1114]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x1114], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x1006ba00
mov eax, dword [ebp - 0x1110]
test eax, eax
je 0x1006bb4b
cmp dword [esi + 0x1c], 8
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1148], xmm0
mov dword [ebp - 0x1140], eax
lea eax, [esi + 8]
movq qword [ebp - 0x1138], xmm0
mov dword [ebp - 0x1148], 3
mov dword [ebp - 0x1144], 1
mov dword [ebp - 0x1134], 1
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x113c], 0
movq qword [ebp - 0x10fc], xmm0
mov dword [ebp - 0x10f4], 0
jb 0x1006bab6
mov eax, dword [eax]
lea ecx, [ebp - 0x10fc]
push ecx
lea ecx, [ebp - 0x1148]
push ecx
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x1006bc17
push 0xc
lea eax, [ebp - 0x10fc]
push eax
push 0x26
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1006bb22
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1006bb0b
mov byte [ebp - 0x10c1], 1
jmp 0x1006bb22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
cmp eax, 0x2f8f
je 0x1006b9ed
mov eax, dword [ebp - 0x10f8]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x1006bb35
push eax
call edi
mov eax, dword [ebp - 0x10f4]
test eax, eax
je 0x1006bc23
push eax
call edi
jmp 0x1006bc23
mov edi, dword [ebp - 0x110c]
test edi, edi
je 0x1006bc43
xor eax, eax
mov dword [ebp - 0x1118], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x216]
movq qword [ebp - 0x1120], xmm0
push eax
mov dword [ebp - 0x1120], 3
call sub.MSVCR120.dll_memset
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
mov edi, dword [ebp - 0x1108]
lea eax, [ebp - 0x218]
add esp, 0x18
mov dword [ebp - 0x111c], eax
test edi, edi
je 0x1006bbfc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR120.dll_memset
push edi
lea eax, [ebp - 0x628]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
lea eax, [ebp - 0x628]
add esp, 0x18
mov dword [ebp - 0x1118], eax
push 0xc
lea eax, [ebp - 0x1120]
push eax
push 0x26
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1006bc23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
mov eax, dword [ebp - 0x1110]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x1006bc36
push eax
call edi
mov eax, dword [ebp - 0x110c]
test eax, eax
je 0x1006bc43
push eax
call edi
mov eax, dword [ebp - 0x1108]
test eax, eax
je 0x1006bc54
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x10c1], 0
mov edi, dword [ebp - 0x10c0]
je 0x1006ba0c
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x1006bca0
lea ecx, [ebp - 0x10b8]
mov dword [ebp - 0x10b8], 0
push ecx
push dword [esi + 0xc4]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x1006bca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1006ba00
push 0
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], 0
push eax
push 0
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1006bce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1006c03d
mov eax, dword [ebp - 0x10bc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101840ca
mov edi, eax
add esp, 4
mov dword [ebp - 0x10e4], edi
test edi, edi
je 0x1006c037
mov ecx, dword [ebp - 0x10bc]
add ecx, ecx
push ecx
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10bc]
push 0
push eax
push edi
push 0
push 0x16
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1006c02e
lea ecx, [esi + 0x38]
push edi
call fcn.1006dd00
mov dword [ebp - 0x10e0], 0
mov dword [ebp - 0x10dc], 0
mov dword [ebp - 0x10d8], 0
push 0x10190744
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 2
call fcn.1005fb90
cmp byte [esi + 0x12c], 0
mov byte [ebp - 4], 3
jne 0x1006bdf7
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x1068]
call fcn.1006dd00
push 0
lea eax, [ebp - 0x10e0]
push eax
lea eax, [esi + 0x38]
push eax
push 1
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.1006acc0
add esp, 0x18
test al, al
je 0x1006bdf7
mov ecx, dword [ebp - 0x10dc]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x10e0]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1006bdf7
lea ecx, [esi + 0x68]
cmp ecx, edi
je 0x1006bdf7
push 0xffffffffffffffff
push 0
push edi
call fcn.1006dbe0
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x1068]
call fcn.1006dd00
push 0
lea eax, [ebp - 0x10e0]
push eax
lea eax, [esi + 0x38]
push eax
push 1
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.1006acc0
add esp, 0x18
test al, al
je 0x1006be64
mov ecx, dword [ebp - 0x10dc]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x10e0]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1006be64
cmp dword [edi + 0x14], 8
jb 0x1006be54
mov edi, dword [edi]
push edi
call dword [sym.imp.MSVCR120.dll__wtoi]
add esp, 4
mov dword [esi + 0x8c], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x1068]
call fcn.1006dd00
push 0
lea eax, [ebp - 0x10e0]
push eax
lea eax, [esi + 0x38]
push eax
push 1
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.1006acc0
add esp, 0x18
test al, al
je 0x1006becd
mov ecx, dword [ebp - 0x10dc]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x10e0]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1006becd
lea ecx, [esi + 0x160]
cmp ecx, edi
je 0x1006becd
push 0xffffffffffffffff
push 0
push edi
call fcn.1006dbe0
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x1068]
call fcn.1006dd00
push 0
lea eax, [ebp - 0x10e0]
push eax
lea eax, [esi + 0x38]
push eax
push 1
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.1006acc0
add esp, 0x18
test al, al
je 0x1006c00e
mov eax, dword [ebp - 0x10e0]
mov ecx, dword [ebp - 0x10dc]
mov dword [ebp - 0x10c8], eax
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10cc], eax
je 0x1006c00e
xor edi, edi
test eax, eax
je 0x1006bf91
dec eax
mov dword [ebp - 0x10d0], eax
lea eax, [esi + 0x90]
mov esi, dword [ebp - 0x10c8]
mov dword [ebp - 0x10b8], eax
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.1006d970
cmp edi, dword [ebp - 0x10d0]
je 0x1006bf79
mov ecx, dword [ebp - 0x10b8]
push 0x101908b4
call fcn.10061640
mov eax, dword [ebp - 0x10b8]
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x10cc]
jb 0x1006bf55
mov esi, dword [ebp - 0x1100]
push 0x101907cc
lea ecx, [ebp - 0x1098]
call fcn.1005fb90
lea eax, [ebp - 0x1098]
mov byte [ebp - 4], 4
push eax
lea edi, [esi + 0x90]
lea eax, [ebp - 0x10b0]
push edi
push eax
call fcn.1006c730
add esp, 0xc
mov ecx, edi
push eax
call fcn.10061570
lea ecx, [ebp - 0x10b0]
call fcn.10060b90
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 3
call fcn.10060b90
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x1006c00e
cmp dword [edi + 0x14], 8
jb 0x1006bff8
mov eax, dword [edi]
jmp 0x1006bffa
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x3b
je 0x1006c00e
push 0x101908bc
mov ecx, edi
call fcn.10061640
lea ecx, [ebp - 0x1068]
call fcn.10060b90
lea ecx, [ebp - 0x10e0]
mov byte [ebp - 4], 0
call fcn.10060ee0
mov edi, dword [ebp - 0x10e4]
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [ebp - 0x10c0]
push 0
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], 0
push eax
push 0
push 0
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1006c06c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1006c0d8
mov eax, dword [ebp - 0x10bc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101840ca
mov edi, eax
add esp, 4
test edi, edi
je 0x1006c0d8
mov ecx, dword [ebp - 0x10bc]
add ecx, ecx
push ecx
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10bc]
push 0
push eax
push edi
push 0
push 0x13
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1006c0cf
push edi
lea ecx, [esi + 0xfc]
call fcn.1006dd00
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esi + 0x80]
xor edi, edi
mov dword [ebp - 0x10d0], 0x2800
mov dword [ebp - 0x10cc], edi
test eax, eax
je 0x1006c103
push eax
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x80], edi
push 0x2800
call fcn.101840ca
add esp, 4
mov dword [esi + 0x80], eax
test eax, eax
je 0x1006c4f1
push 0x2800
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov edi, edi
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], 0
push eax
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1006c280
push edi
mov ecx, esi
call fcn.1006c610
mov eax, dword [ebp - 0x10bc]
inc eax
push eax
call fcn.101840ca
mov edi, eax
add esp, 4
test edi, edi
je 0x1006c26b
mov ecx, dword [ebp - 0x10bc]
inc ecx
push ecx
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x10c8], 0
lea eax, [ebp - 0x10c8]
push eax
push dword [ebp - 0x10bc]
push edi
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1006c262
mov ecx, dword [ebp - 0x10c8]
mov edx, dword [ebp - 0x10cc]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x10d0]
jbe 0x1006c23d
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x10b8], eax
mov eax, dword [ebp - 0x10d0]
add eax, eax
push eax
mov dword [ebp - 0x10d0], eax
call fcn.101840ca
add esp, 4
mov dword [esi + 0x80], eax
test eax, eax
je 0x1006c28e
push dword [ebp - 0x10d0]
push 0
push eax
call sub.MSVCR120.dll_memset
push dword [ebp - 0x10cc]
push dword [ebp - 0x10b8]
push dword [esi + 0x80]
call sub.MSVCR120.dll_memcpy
push dword [ebp - 0x10b8]
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebp - 0x10c8]
add esp, 0x1c
mov edx, dword [ebp - 0x10cc]
mov eax, dword [esi + 0x80]
push ecx
add eax, edx
push edi
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 0x10cc]
add esp, 0xc
add eax, dword [ebp - 0x10c8]
mov dword [ebp - 0x10cc], eax
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [ebp - 0x10cc]
cmp dword [ebp - 0x10bc], 0
ja 0x1006c130
jmp 0x1006c2a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
jmp 0x1006c271
mov eax, dword [ebp - 0x10b8]
mov dword [esi + 0x80], eax
mov byte [ebp - 0x10d4], 0
mov edi, dword [ebp - 0x10cc]
mov ecx, esi
push edi
call fcn.1006c610
mov dword [esi + 0x84], edi
lea eax, [esi + 0x68]
xor edi, edi
mov dword [ebp - 0x10c8], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x10b8], edi
jb 0x1006c2d2
mov eax, dword [eax]
push 5
push 0x101908c0
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1006c2f8
mov edi, 0xfde9
mov dword [ebp - 0x10c8], eax
mov dword [ebp - 0x10b8], edi
mov eax, dword [esi + 0x84]
push 0
push 0
inc eax
push eax
push dword [esi + 0x80]
push dword [ebp - 0x10c8]
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x1006c353
mov eax, dword [esi + 0x84]
push 0
push 0
inc eax
mov dword [ebp - 0x10b8], 0
push eax
push dword [esi + 0x80]
mov dword [ebp - 0x10c8], 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x1006c3c5
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101840ca
add esp, 4
mov dword [ebp - 0x10e4], eax
test eax, eax
je 0x1006c3c5
lea ecx, [edi + edi]
push ecx
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [esi + 0x84]
add esp, 0xc
inc eax
push edi
mov edi, dword [ebp - 0x10e4]
push edi
push eax
push dword [esi + 0x80]
push dword [ebp - 0x10c8]
push dword [ebp - 0x10b8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x1006c3bc
push edi
lea ecx, [esi + 0x50]
call fcn.1006dd00
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebp - 0x1080]
mov byte [ebp - 0x10b1], 1
push 0x101907d0
push eax
call fcn.10058990
add esp, 8
test al, al
je 0x1006c50f
cmp byte [ebp + 0xc], 0
jne 0x1006c50f
push str._html_
lea ecx, [ebp - 0x1068]
call fcn.1005fb90
mov dword [ebp - 0x10f0], 0
mov dword [ebp - 0x10ec], 0
mov dword [ebp - 0x10e8], 0
push 0
lea eax, [ebp - 0x10f0]
mov byte [ebp - 4], 6
push eax
lea edi, [esi + 0x50]
push edi
push 1
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.1006acc0
add esp, 0x18
test al, al
je 0x1006c4cc
mov ecx, dword [ebp - 0x10ec]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x10f0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1006c4cc
push str.__html_
lea ecx, [ebp - 0x1068]
call fcn.1006dd00
push 0
lea eax, [ebp - 0x10f0]
push eax
push edi
push 1
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.1006acc0
add esp, 0x18
test al, al
je 0x1006c4bb
mov ecx, dword [ebp - 0x10ec]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x10f0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1006c4cc
mov dword [esi + 0xf8], 0xd
mov byte [ebp - 0x10b1], 0
lea ecx, [ebp - 0x10f0]
call fcn.10060ee0
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 0
call fcn.10060b90
mov edi, dword [ebp - 0x10c0]
jmp 0x1006ba0c
xor al, al
jmp 0x1006c4fb
mov eax, dword [ebp - 0x10d4]
xor ecx, ecx
movzx eax, al
cmp byte [ebp - 0x10b1], cl
cmove eax, ecx
mov dword [ebp - 0x10d4], eax
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x1124]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1006c53a
mov dword [esi + 0xf8], 0x57
mov byte [ebp - 0x10d4], 0
cmp dword [ebp - 0x106c], 8
jb 0x1006c551
push dword [ebp - 0x1080]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [ebp - 0x10d4]
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.1018427c
mov esp, ebp
pop ebp
ret 8