Function at 0x408920
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf561
mov eax, dword fs:[0]
push eax
mov eax, 0x1f80
call fcn.004a1d70
mov eax, dword [0x5035d0]
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, dword [ebp + 0xc]
mov eax, ebx
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x408969
mov eax, dword [ebx]
mov byte [eax], 0
test esi, esi
je 0x40902b
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408980
sub ecx, edx
cmp ecx, 5
jb 0x40902b
push 0x100
xorps xmm0, xmm0
mov dword [ebp - 0x1f58], 0
lea eax, [ebp - 0x110]
movlpd qword [ebp - 0x1f4c], xmm0
push 0
push eax
movlpd qword [ebp - 0x1f44], xmm0
mov dword [ebp - 0x1f3c], 0
mov dword [ebp - 0x1f64], 0x3c
call fcn.004a4df0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1f5c], 0x80
push 0x800
mov dword [ebp - 0x1f60], eax
lea eax, [ebp - 0xef0]
push 0
push eax
call fcn.004a4df0
lea eax, [ebp - 0xef0]
mov dword [ebp - 0x1f50], 0x400
push 0x800
mov dword [ebp - 0x1f54], eax
lea eax, [ebp - 0x16f0]
push 0
push eax
call fcn.004a4df0
lea eax, [ebp - 0x16f0]
mov dword [ebp - 0x1f34], 0x400
push 0x800
mov dword [ebp - 0x1f38], eax
lea eax, [ebp - 0x1ef0]
push 0
push eax
call fcn.004a4df0
mov ecx, esi
mov dword [ebp - 0x1f2c], 0x400
lea eax, [ebp - 0x1ef0]
mov dword [ebp - 0x1f7c], 0
add esp, 0x30
mov dword [ebp - 0x1f30], eax
mov dword [ebp - 0x1f78], 0xf
mov byte [ebp - 0x1f8c], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408a90
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1f8c]
call fcn.00404540
push 0
lea eax, [ebp - 0x1f8c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1f08]
push eax
call fcn.00407780
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1f78]
cmp edx, 0x10
jb 0x408b03
mov ecx, dword [ebp - 0x1f8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408af9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904a
push edx
push ecx
call fcn.004a1326
add esp, 8
cmp dword [ebp - 0x1ef4], 8
lea ecx, [ebp - 0x1f64]
push ecx
push accept
push dword [ebp - 0x1ef8]
lea eax, [ebp - 0x1f08]
mov dword [ebp - 0x1f7c], 0
cmovae eax, dword [ebp - 0x1f08]
push eax
mov dword [ebp - 0x1f78], 0xf
mov byte [ebp - 0x1f8c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x408b98
mov edx, dword [ebp - 0x1ef4]
cmp edx, 8
jb 0x40902b
mov ecx, dword [ebp - 0x1f08]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904f
push edx
push ecx
call fcn.004a1326
add esp, 8
jmp 0x40902b
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.0__Trident_5.0_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x1f74], edi
test edi, edi
je 0x408b4f
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push dword [ebp - 0x1f4c]
push dword [ebp - 0x1f54]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1f68], eax
test eax, eax
jne 0x408c59
mov edx, dword [ebp - 0x1ef4]
cmp edx, 8
jb 0x408c31
mov ecx, dword [ebp - 0x1f08]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904f
push edx
push ecx
call fcn.004a1326
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [ebp - 0x1ef8], 0
mov dword [ebp - 0x1ef4], 7
mov word [ebp - 0x1f08], ax
jmp 0x409028
mov edx, dword [ebp - 0x1f38]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x1f10], 0
mov dword [ebp - 0x1f0c], 7
mov word [ebp - 0x1f20], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408c81
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1f20]
call fcn.00408140
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1f20]
push dword [ebp - 0x1f30]
call fcn.00409060
cmp dword [ebp - 0x1f0c], 8
lea eax, [ebp - 0x1f20]
push 0
cmovae eax, dword [ebp - 0x1f20]
push 0
push 0
push 0
push eax
push 0x4f61c8
push dword [ebp - 0x1f68]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x1f6c], esi
test esi, esi
jne 0x408db5
mov edx, dword [ebp - 0x1f0c]
cmp edx, 8
jb 0x408d30
mov ecx, dword [ebp - 0x1f20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408d26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904f
push edx
push ecx
call fcn.004a1326
add esp, 8
mov edx, dword [ebp - 0x1ef4]
xor eax, eax
mov dword [ebp - 0x1f10], 0
mov dword [ebp - 0x1f0c], 7
mov word [ebp - 0x1f20], ax
cmp edx, 8
jb 0x408d8d
mov ecx, dword [ebp - 0x1f08]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408d83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904f
push edx
push ecx
call fcn.004a1326
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [ebp - 0x1ef8], 0
mov dword [ebp - 0x1ef4], 7
mov word [ebp - 0x1f08], ax
jmp 0x409020
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x408e76
mov edx, dword [ebp - 0x1f0c]
cmp edx, 8
jb 0x408e10
mov ecx, dword [ebp - 0x1f20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408e06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904f
push edx
push ecx
call fcn.004a1326
add esp, 8
mov edx, dword [ebp - 0x1ef4]
xor eax, eax
mov dword [ebp - 0x1f10], 0
mov dword [ebp - 0x1f0c], 7
mov word [ebp - 0x1f20], ax
cmp edx, 8
jb 0x408ffe
mov ecx, dword [ebp - 0x1f08]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408e67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904f
push edx
push ecx
call fcn.004a1326
add esp, 8
jmp 0x408ffe
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x408dd0
mov dword [ebp - 0x1f24], 0
push 0x5dd
lea eax, [ebp - 0x6f0]
push 0
push eax
call fcn.004a4df0
add esp, 0xc
lea eax, [ebp - 0x1f24]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x408f5f
cmp dword [ebp - 0x1f24], 0
je 0x408f5f
lea eax, [ebp - 0x1f28]
mov dword [ebp - 0x1f28], 0
push eax
push 0x5dc
lea eax, [ebp - 0x6f0]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x408f5f
mov edx, dword [ebx + 0x14]
mov eax, edx
mov ecx, dword [ebx + 0x10]
sub eax, ecx
mov edi, dword [ebp - 0x1f28]
cmp edi, eax
ja 0x408f35
lea eax, [edi + ecx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x408f15
mov eax, dword [ebx]
lea esi, [eax + ecx]
push edi
lea eax, [ebp - 0x6f0]
push eax
push esi
call fcn.004a5560
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x1f6c]
jmp 0x408f52
push edi
lea eax, [ebp - 0x6f0]
mov byte [ebp - 0x1f70], 0
push eax
push dword [ebp - 0x1f70]
mov ecx, ebx
push edi
call fcn.00405ff0
cmp dword [ebp - 0x1f24], 0
ja 0x408e91
mov edx, dword [ebp - 0x1f0c]
cmp edx, 8
jb 0x408f9f
mov ecx, dword [ebp - 0x1f20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408f95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904f
push edx
push ecx
call fcn.004a1326
add esp, 8
mov edx, dword [ebp - 0x1ef4]
xor eax, eax
mov dword [ebp - 0x1f10], 0
mov dword [ebp - 0x1f0c], 7
mov word [ebp - 0x1f20], ax
cmp edx, 8
jb 0x408ff8
mov ecx, dword [ebp - 0x1f08]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408fee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40904f
push edx
push ecx
call fcn.004a1326
add esp, 8
mov edi, dword [ebp - 0x1f74]
xor eax, eax
mov dword [ebp - 0x1ef4], 7
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x1ef8], eax
mov word [ebp - 0x1f08], ax
call esi
push dword [ebp - 0x1f68]
call esi
push edi
call esi
mov eax, dword [ebx + 0x10]
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.004a1365
mov esp, ebp
pop ebp
ret
call fcn.004a8d39
call fcn.004a8d39
int3