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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58eca9
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x5fb1a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x405eb2
nop dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 5
call fcn.0042b730
mov byte [ebp - 4], 4
test eax, eax
je 0x405eb2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 8
call fcn.0042b730
mov byte [ebp - 4], 7
test eax, eax
je 0x405eb2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
push ecx
push 0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
push dword [eax - 0xc]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0x28], 0x2f
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x405e31
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xa
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 9
test ecx, ecx
je 0x405eb2
cmp dword [ebp - 0x30], 0
jne 0x40563e
test ebx, ebx
jne 0x405ebc
mov eax, dword [ecx]
push 2
push ebx
call dword [eax]
test eax, eax
je 0x405ec6
lea ecx, [eax + 0x10]
mov dword [ebp - 0x24], ecx
test ebx, ebx
js 0x405ebc
mov eax, dword [ebp - 0x34]
lea ebx, [ecx - 0x10]
cmp eax, dword [ebx + 8]
jg 0x405ebc
mov dword [ebx + 4], eax
xor edx, edx
add eax, eax
mov word [eax + ecx], dx
test eax, eax
je 0x4056af
test ecx, ecx
je 0x40569c
mov edx, dword [ebp - 0x30]
push eax
test edx, edx
je 0x405691
push edx
push ecx
call fcn.005635d0
add esp, 0xc
jmp 0x4056ac
push 0
push ecx
call fcn.00563b50
add esp, 0xc
call fcn.00566e79
mov dword [eax], 0x16
call fcn.00566c6f
mov ecx, dword [ebp - 0x24]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x34], edx
cmp ebx, edx
je 0x40570d
mov eax, dword [edx + 0xc]
lea esi, [edx + 0xc]
shr eax, 0x1f
test al, al
jne 0x4056fe
mov eax, dword [ebx]
cmp eax, dword [edx]
jne 0x4056fe
push ebx
call fcn.00404000
add esp, 4
mov dword [ebp - 0x30], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4056f6
mov esi, dword [ebp - 0x34]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x40570d
push dword [ebx + 4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00409f20
mov esi, dword [ebp - 0x1c]
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x405722
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x50]
mov byte [ebp - 4], 0xc
call fcn.0042b730
mov byte [ebp - 4], 9
test eax, eax
je 0x405eb2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.00403f20
test al, al
jne 0x40577e
test ebx, ebx
jne 0x405760
xor ecx, ecx
jmp 0x405774
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405765
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.00409f20
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x30], edx
lea ebx, [eax - 0x10]
cmp ebx, edx
je 0x4057e7
lea ecx, [edx + 0xc]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ecx]
shr ecx, 0x1f
test cl, cl
jne 0x4057db
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x4057db
push ebx
call fcn.00404000
mov edx, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4057d3
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4057e7
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push eax
call fcn.00409f20
mov byte [ebp - 4], 9
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x405800
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x405e31
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 0x58
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x405e1e
push 0
push dword [ebp - 0x64]
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x405e1e
xor ecx, ecx
mov edx, 0x800000
cmp dword [ebp - 0x70], 2
cmove ecx, edx
push ecx
push 0
push 0
push 0
push dword [ebp - 0x14]
push 0x5a1334
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x405e02
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x405dab
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x405dab
mov eax, dword [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
nop dword [eax + eax]
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x24]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405915
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042a650
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x18]
push 0
push ecx
push eax
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [ebp - 0x18], 0
jne 0x40592e
inc ebx
mov eax, 0x21
mov dword [ebp - 0x28], eax
cmp ebx, 2
jb 0x4058c0
jmp 0x405dab
mov byte [ebp - 4], 0xf
call fcn.0042b730
mov byte [ebp - 4], 9
test eax, eax
je 0x405eb2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
push ebx
mov byte [ebp - 4], 0x10
call fcn.00403f20
test al, al
jne 0x40598a
test ebx, ebx
jne 0x40596c
xor ecx, ecx
jmp 0x405980
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405971
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x20]
call fcn.00409f20
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4059b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.0042a659
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x405dfd
cmp dword [ebp - 0x28], 0x21
jne 0x405df1
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
lea ebx, [edi - 0x10]
jl 0x405b31
push 0x5a12c8
push edi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x405b31
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x405b31
cmp dword [ebx + 4], 0
jl 0x405b31
push 0x5a1190
push edi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x405b31
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x405b31
cmp dword [ebx + 4], 0
jl 0x405b7c
push str..exe_
push edi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x405aa3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x405aa3
cmp dword [ebx + 4], 0
jge 0x405a66
or eax, 0xffffffff
jmp 0x405a81
push str..exe_
push edi
call fcn.00562f40
add esp, 8
test eax, eax
jne 0x405a7d
or eax, 0xffffffff
jmp 0x405a81
sub eax, edi
sar eax, 1
add eax, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004069c0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
call fcn.004024c0
mov edx, dword [ebp - 0x3c]
jmp 0x405b16
cmp dword [ebx + 4], 0
jl 0x405b7c
push str..msi_
push edi
call fcn.00562f40
add esp, 8
test eax, eax
je 0x405b7c
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x405b7c
cmp dword [ebx + 4], 0
jge 0x405adb
or eax, 0xffffffff
jmp 0x405af6
push str..msi_
push edi
call fcn.00562f40
add esp, 8
test eax, eax
jne 0x405af2
or eax, 0xffffffff
jmp 0x405af6
sub eax, edi
sar eax, 1
add eax, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004069c0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
call fcn.004024c0
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405b2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
mov byte [ebp - 4], 0x14
call fcn.0042b730
mov byte [ebp - 4], 9
test eax, eax
je 0x405eb2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x15
call fcn.00403f20
test al, al
jne 0x405c09
test esi, esi
jne 0x405be9
xor ecx, ecx
jmp 0x405bff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.004024c0
push dword [ebp - 0x24]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call edi
push dword [ebp - 0x2c]
call edi
push dword [ebp - 0x30]
call edi
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405bba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405bd1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x405d5d
mov ecx, dword [ebx]
push ebx
jmp 0x405d58
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405bf0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.00409f20
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 0x16
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x405ebc
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x405c38
push ebx
lea ecx, [ebp - 0x20]
call fcn.00408b50
mov esi, dword [ebp - 0x20]
lea eax, [ebx + 1]
push eax
push esi
call fcn.00567458
lea eax, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x34], eax
cmp ebx, dword [eax + 8]
jg 0x405ebc
mov dword [eax + 4], ebx
xor eax, eax
mov word [esi + ebx*2], ax
mov ecx, str..exe
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405c8a
test dx, dx
je 0x405c86
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405c8a
add eax, 4
add ecx, 4
test dx, dx
jne 0x405c64
xor eax, eax
jmp 0x405c8f
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 0x16
test eax, eax
je 0x405d80
mov eax, str..msi
mov cx, word [esi]
cmp cx, word [eax]
jne 0x405cc6
test cx, cx
je 0x405cc2
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x405cc6
add esi, 4
add eax, 4
test cx, cx
jne 0x405ca0
xor eax, eax
jmp 0x405ccb
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 0x16
test eax, eax
je 0x405d80
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.004024c0
push dword [ebp - 0x24]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
call esi
mov edx, dword [ebp - 0x34]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405d12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405d2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405d46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x405d5d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x405eb2
jmp 0x405550
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.004024c0
mov edx, dword [ebp - 0x34]
or eax, 0xffffffff
mov byte [ebp - 4], 9
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405da8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp dword [eax - 4], 1
jle 0x405dc1
push dword [eax - 0xc]
call fcn.00404770
mov ecx, dword [ebp + 0xc]
push 0x100000
push 0
push 0
push dword [ecx]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
xor ebx, ebx
push dword [ebp - 0x24]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x405e39
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.004024c0
mov edi, dword [ebp - 0x10]
jmp 0x405dab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2c]
mov ebx, eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x405e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov ebx, eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x405e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405e54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405e6c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x405e86
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x405e9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403cc0
push 0x80070057
call fcn.00403cc0
call fcn.0040a040
int3