Function at 0x440730
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1791
mov eax, dword fs:[0]
push eax
sub esp, 0xcfc
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xce0], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0xc58], cx
lea ecx, [ebp - 0xc58]
push eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
call fcn.004114e0
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
push 0x4dae44
cmovae eax, dword [ebp - 0xc58]
push eax
mov dword [ebp - 4], 0
call fcn.00480d46
add esp, 8
test eax, eax
jne 0x4407cb
push 3
push 0x4dae4c
jmp 0x4407fc
cmp dword [ebp - 0xc44], 8
lea eax, [ebp - 0xc58]
push 0x4dae54
cmovae eax, dword [ebp - 0xc58]
push eax
call fcn.00480d46
add esp, 8
test eax, eax
jne 0x440e81
push 4
push 0x4dae60
lea ecx, [ebp - 0xc58]
call fcn.004116f0
push 0
push 0
push 0
push 0
push dword [0x4fdde8]
mov byte [ebp - 0xcd8], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0xcf0], edi
test edi, edi
je 0x440e81
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0047bb20
xor eax, eax
push 0xa26
push eax
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0xc3e]
push eax
call fcn.0047bb20
push 0x3c
lea eax, [ebp - 0xccc]
push 0
push eax
call fcn.0047bb20
lea eax, [ebp - 0x218]
mov dword [ebp - 0xccc], 0x3c
mov dword [ebp - 0xcbc], eax
add esp, 0x24
cmp dword [ebx + 0x1c], 8
lea eax, [ebp - 0xc40]
mov dword [ebp - 0xca0], eax
lea eax, [ebx + 8]
mov dword [ebp - 0xcb8], 0x104
mov dword [ebp - 0xc9c], 0x514
mov dword [ebp - 0xcc4], 0xffffffff
jb 0x4408c6
mov eax, dword [eax]
lea ecx, [ebp - 0xccc]
push ecx
push 0
push dword [ebx + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x440e76
cmp word [ebp - 0x218], 0
jne 0x4408f5
xor ecx, ecx
jmp 0x44090f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440900
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebx + 0x68]
call fcn.004116f0
push 0
push dword [ebp - 0xcb4]
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xcec], eax
test eax, eax
je 0x440e76
xor ecx, ecx
mov edx, 0x800000
cmp dword [ebp - 0xcc0], 2
cmove ecx, edx
cmp dword [ebp - 0xc44], 8
push ecx
push 0
push 0
push 0
push dword [ebp - 0xca0]
lea edx, [ebp - 0xc58]
cmovae edx, dword [ebp - 0xc58]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0xcdc], edi
test edi, edi
je 0x440e68
xor dl, dl
xor ecx, ecx
mov byte [ebp - 0xccd], dl
lea esi, [ecx + 2]
lea ebx, [ebx]
mov eax, ecx
inc ecx
mov dword [ebp - 0xce8], ecx
cmp eax, 3
jge 0x440e49
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 0x440e33
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x440e33
push 0
lea eax, [ebp - 0xc8c]
mov dword [ebp - 0xc8c], 0
push eax
push 0
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x440a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x440e33
mov eax, dword [ebp - 0xc8c]
xor ecx, ecx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004780a0
mov esi, eax
add esp, 4
mov dword [ebp - 0xce4], esi
test esi, esi
je 0x440e2e
mov ecx, dword [ebp - 0xc8c]
add ecx, ecx
push ecx
push 0
push esi
call fcn.0047bb20
add esp, 0xc
lea eax, [ebp - 0xc8c]
push 0
push eax
push esi
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x440e2e
push esi
lea ecx, [ebx + 0x20]
call fcn.004116a0
push dword [ebp - 0xc8c]
push esi
call fcn.0048104e
add esp, 8
lea ecx, [ebp - 0xc70]
push esi
call fcn.0040f510
push 0
push str.charset
lea ecx, [ebp - 0xc70]
mov byte [ebp - 4], 1
call fcn.0041ff50
mov ecx, eax
cmp ecx, 0xffffffff
je 0x440b75
mov edi, dword [ebp - 0xc60]
add ecx, 8
xor eax, eax
mov dword [ebp - 0xc90], ecx
mov dword [ebp - 0xcd4], eax
cmp ecx, edi
jae 0x440b41
mov edx, dword [ebp - 0xc5c]
lea eax, [edi - 1]
mov esi, dword [ebp - 0xc70]
jmp 0x440ae0
cmp ecx, eax
je 0x440c38
cmp edx, 8
lea eax, [ebp - 0xc70]
cmovae eax, esi
cmp word [eax + ecx*2], 0x20
je 0x440c38
cmp edx, 8
lea eax, [ebp - 0xc70]
cmovae eax, esi
cmp word [eax + ecx*2], 0x3b
je 0x440c38
cmp edx, 8
lea eax, [ebp - 0xc70]
cmovae eax, esi
cmp word [eax + ecx*2], 0xa
je 0x440c38
inc ecx
lea eax, [edi - 1]
cmp ecx, edi
jb 0x440ae0
mov esi, dword [ebp - 0xce4]
mov eax, dword [ebp - 0xcd4]
mov ecx, dword [ebp - 0xc90]
push eax
push ecx
lea eax, [ebp - 0xd08]
push eax
lea ecx, [ebp - 0xc70]
call fcn.00421ab0
push eax
lea ecx, [ebx + 0x50]
call fcn.0041ae10
lea ecx, [ebp - 0xd08]
call fcn.00424c50
mov edi, dword [ebp - 0xcdc]
push esi
call fcn.0047b041
add esp, 4
lea ecx, [ebp - 0xc88]
push 0x4dae88
call fcn.0040f510
mov byte [ebp - 4], 2
jmp 0x440ba0
lea eax, [ebp - 0xc8c]
mov dword [ebp - 0xc8c], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x440dcb
push dword [ebp - 0xc8c]
call fcn.004780a0
mov esi, eax
add esp, 4
test esi, esi
je 0x440dcb
push dword [ebp - 0xc8c]
push 0
push esi
call fcn.0047bb20
add esp, 0xc
mov dword [ebp - 0xc90], 0
lea eax, [ebp - 0xc90]
push eax
push dword [ebp - 0xc8c]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x440dcb
cmp dword [ebx], 0
jne 0x440c4d
push dword [ebp - 0xc90]
call fcn.004780a0
mov ecx, dword [ebp - 0xc90]
push ecx
push esi
push eax
mov dword [ebx], eax
mov dword [ebx + 4], ecx
call fcn.0047b4d0
add esp, 0x10
jmp 0x440c90
mov esi, dword [ebp - 0xce4]
mov eax, ecx
mov ecx, dword [ebp - 0xc90]
sub eax, ecx
jmp 0x440b47
mov eax, dword [ebx + 4]
add eax, dword [ebp - 0xc90]
push eax
call fcn.004780a0
push dword [ebx + 4]
mov edi, eax
push dword [ebx]
push edi
call fcn.0047b4d0
push dword [ebp - 0xc90]
mov eax, dword [ebx + 4]
add eax, edi
push esi
push eax
call fcn.0047b4d0
push dword [ebx]
call fcn.0047b041
mov eax, dword [ebp - 0xc90]
add esp, 0x20
add dword [ebx + 4], eax
mov dword [ebx], edi
push 0
push str.utf_8
lea ecx, [ebx + 0x50]
call fcn.0041ff50
push 0
push 0
push dword [ebp - 0xc8c]
push esi
cmp eax, 0xffffffff
je 0x440d3b
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jle 0x440dcb
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004780a0
mov edi, eax
add esp, 4
test edi, edi
je 0x440dcb
lea ecx, [ebx + ebx]
push ecx
push 0
push edi
call fcn.0047bb20
add esp, 0xc
push ebx
push edi
push dword [ebp - 0xc8c]
push esi
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jle 0x440d35
movzx esi, word [edi + ebx*2]
lea ecx, [ebp - 0xc88]
xor eax, eax
push edi
mov word [edi + ebx*2], ax
call fcn.004113b0
mov word [edi + ebx*2], si
push edi
jmp 0x440dc3
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x440dc2
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004780a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x440dc2
lea ecx, [edi + edi]
push ecx
push 0
push ebx
call fcn.0047bb20
add esp, 0xc
push edi
push ebx
push dword [ebp - 0xc8c]
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xcd4], eax
test eax, eax
jle 0x440db9
movzx edi, word [ebx + eax*2]
xor ecx, ecx
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0xc88]
push ebx
call fcn.004113b0
mov eax, dword [ebp - 0xcd4]
mov word [ebx + eax*2], di
push ebx
call fcn.0047b041
add esp, 4
push esi
call fcn.0047b041
add esp, 4
cmp dword [ebp - 0xc8c], 0
mov ebx, dword [ebp - 0xce0]
mov edi, dword [ebp - 0xcdc]
ja 0x440ba0
cmp dword [ebp - 0xc78], 0x12c
jbe 0x440e0e
lea ecx, [ebx + 0x38]
mov byte [ebp - 0xccd], 1
lea eax, [ebp - 0xc88]
cmp ecx, eax
je 0x440e0e
push 0xffffffffffffffff
push 0
push eax
call fcn.004114e0
lea ecx, [ebp - 0xc88]
call fcn.00424c50
lea ecx, [ebp - 0xc70]
mov byte [ebp - 4], 0
call fcn.00424c50
mov edi, dword [ebp - 0xcdc]
mov esi, 2
mov dl, byte [ebp - 0xccd]
mov ecx, dword [ebp - 0xce8]
test dl, dl
je 0x4409a0
jmp 0x440e5f
mov eax, dword [ebp - 0xcd8]
xor ecx, ecx
test dl, dl
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0xcd8], eax
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0xcec]
call esi
mov edi, dword [ebp - 0xcf0]
push edi
call esi
mov ebx, dword [ebp - 0xcd8]
jmp 0x440e83
xor bl, bl
cmp dword [ebp - 0xc44], 8
jb 0x440e9a
push dword [ebp - 0xc58]
call fcn.0047a557
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 4