Function at 0x404af4
Capabilities:
Check for time delay via gettickcount
Check http status code
Connect to http server
Create http request
Get http response content encoding
Make an http request with a cookie
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4308de
mov eax, dword fs:[0]
push eax
mov eax, 0x1b8c
call fcn.0042b440
mov eax, dword [0x44435c]
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 dword [ebp - 0x1af8], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1a9c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1ac4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1ab4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1afc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1ae4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1ac0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1a7c], eax
mov eax, dword [ebp + 0x2c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1acc], eax
mov eax, dword [ebp + 0x30]
and dword [ebp - 0x1b60], 0
mov dword [ebp - 0x1ae0], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x1ab0], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x1ae8], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x1a84], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x1b10], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x1a88], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x1aec], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x1b5c], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x1ab8], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x1ad4], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x1a80], edi
mov dword [ebp - 0x1aa8], eax
and dword [ebp - 4], 0
xor esi, esi
push 0x40
pop edi
xor ebx, ebx
mov dword [ebp - 0x1aa0], 4
lea eax, [ebp - 0x1aa0]
test esi, esi
push eax
setne bl
lea eax, [ebp - 0x1ac8]
and dword [ebp - 0x1ac8], 0
add ebx, 0x49
push eax
push ebx
push 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov eax, dword [ebp - 0x1ac8]
cmp eax, edi
cmovb eax, edi
mov dword [ebp - 0x1ad0], eax
cmp dword [ebp - 0x1ac8], eax
je 0x404c64
push 4
lea eax, [ebp - 0x1ad0]
push eax
push ebx
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x1aa0]
push eax
lea eax, [ebp - 0x1ad0]
push eax
push ebx
push 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
inc esi
cmp esi, 2
jl 0x404bf0
lea ecx, [ebp - 0x1b48]
call fcn.00403feb
mov eax, dword [ebp - 0x1ab0]
lea ebx, [ebp - 0x1b48]
test eax, eax
lea ecx, [ebp - 0x1b98]
cmovne ebx, eax
mov dword [ebp - 0x1aa4], ebx
call fcn.00403feb
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004048c4
xor ebx, ebx
lea ecx, [ebp - 0x1b88]
inc ebx
mov byte [ebp - 4], bl
call fcn.0040f6b4
lea ecx, [ebp - 0x1b98]
call fcn.00404848
mov eax, dword [ebp + 0x34]
and eax, dword [ebp + 0x38]
mov edi, dword [ebp - 0x1a80]
mov edx, dword [ebp - 0x1ae0]
cmp eax, 0xffffffff
je 0x404d67
mov byte [ebp - 0x1aa9], bl
cmp edx, dword [ebp + 0x38]
jl 0x404de0
jg 0x404cfa
mov ecx, dword [ebp - 0x1acc]
cmp ecx, dword [ebp + 0x34]
jbe 0x404de6
push 0xba
push 0x80004005
push ecx
mov esi, esp
call fcn.00412f7e
push eax
mov ecx, esi
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
lea eax, [ebp - 0x1a98]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1b38]
call fcn.0040f6b4
lea ecx, [ebp - 0x1b48]
call fcn.00404848
mov ecx, dword [ebp + 0x5c]
add ecx, 0xfffffff0
call fcn.004130bf
mov eax, edi
jmp 0x4068da
mov ecx, dword [ebp - 0x1acc]
mov eax, ecx
or eax, edx
mov byte [ebp - 0x1aa9], 0
je 0x404de6
push 0xbc
push 0x80004005
push ecx
mov esi, esp
call fcn.00412f7e
push eax
mov ecx, esi
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1a98]
mov ecx, edi
push eax
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1b38]
call fcn.0040f6b4
lea ecx, [ebp - 0x1b48]
call fcn.00404848
mov ecx, dword [ebp + 0x5c]
lea ecx, [ecx - 0x10]
jmp 0x404d5b
mov ecx, dword [ebp - 0x1acc]
cmp byte [ebp + 0x50], 0
je 0x404e35
cmp byte [ebp - 0x1afc], 0
jne 0x404e2c
cmp byte [ebp - 0x1ab8], 0
jne 0x404e2c
push 0xc0
push 0x80004005
push ecx
mov esi, esp
call fcn.00412f7e
push eax
mov ecx, esi
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 5
jmp 0x404da3
cmp dword [ebp - 0x1aa8], 0
je 0x404e4b
mov eax, dword [ebp - 0x1ab4]
test eax, eax
je 0x404e4b
cmp byte [eax], 0x3f
jne 0x404e4b
inc eax
mov dword [ebp - 0x1ab4], eax
push 0
push 0
push edx
push ecx
mov ecx, dword [ebp - 0x1af8]
lea eax, [ebp - 0x1b58]
push 0
push eax
call fcn.0040788f
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1b58], 0
jge 0x404ede
cmp dword [ebp - 0x1b54], 0
mov eax, 0xcf
mov edi, dword [ebp - 0x1b50]
cmovne eax, dword [ebp - 0x1b54]
push eax
push dword [ebp - 0x1b58]
push ecx
lea ecx, [edi - 0x10]
mov esi, esp
call fcn.00413040
add eax, 0x10
lea ecx, [ebp - 0x1a98]
mov dword [esi], eax
call fcn.004130db
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 7
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [edi - 0x10]
call fcn.004130bf
jmp 0x4068b3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1b50]
lea ecx, [ecx - 0x10]
call fcn.004130bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x1ac0]
mov dword [ebp - 0x1b4c], eax
test ebx, ebx
je 0x404f17
lea eax, [ebp - 0x1ac0]
mov ecx, ebx
push eax
call fcn.004043d8
push 2
jmp 0x404f26
push 0
lea ecx, [ebp - 0x1ab0]
call fcn.00412bfc
push 4
pop ecx
push 0
push 0
push dword [eax]
xor eax, eax
mov dword [ebp - 0x1abc], ecx
cmp byte [ebp - 0x1ae8], al
push 3
sete al
test ebx, ebx
pop esi
cmovne eax, esi
push eax
push dword [ebp + 0x5c]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x1ac8], ebx
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x1abc]
test al, 4
je 0x404f86
mov ecx, dword [ebp - 0x1ab0]
and eax, 0xfffffffb
mov dword [ebp - 0x1abc], eax
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov eax, dword [ebp - 0x1abc]
mov byte [ebp - 4], 0xa
test al, 2
je 0x404f9c
mov ecx, dword [ebp - 0x1ac0]
lea ecx, [ecx - 0x10]
call fcn.004130bf
test ebx, ebx
setne al
test al, al
jne 0x405018
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xe1
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412f7e
push eax
mov ecx, esi
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1a98]
mov ecx, edi
push eax
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
test ebx, ebx
je 0x404dbf
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x404dbf
cmp dword [ebp + 0x60], 0
je 0x40507e
push 4
lea eax, [ebp + 0x60]
push eax
push 2
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
setne al
test al, al
jne 0x40507e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xe4
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412f7e
push eax
mov ecx, esi
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0xc
jmp 0x404fe8
cmp dword [ebp + 0x64], 0
je 0x4050e4
push 4
lea eax, [ebp + 0x64]
push eax
push 5
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
setne al
test al, al
jne 0x4050e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xe7
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412f7e
push eax
mov ecx, esi
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0xd
jmp 0x404fe8
cmp dword [ebp + 0x68], 0
je 0x40514a
push 4
lea eax, [ebp + 0x68]
push eax
push 6
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
setne al
test al, al
jne 0x40514a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xea
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412f7e
push eax
mov ecx, esi
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0xe
jmp 0x404fe8
mov ax, word [ebp + 0x28]
mov edx, dword [ebp - 0x1ae4]
movzx ecx, ax
test ax, ax
jne 0x40516c
push 0x50
mov ecx, 0x1bb
test dl, dl
pop eax
cmovne eax, ecx
movzx ecx, ax
xor edi, edi
mov eax, 0x800000
test dl, dl
cmovne edi, eax
xor edx, edx
push edx
mov eax, edi
or eax, 0x84080200
push eax
push esi
push edx
push edx
push ecx
push dword [ebp - 0x1a9c]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0x1a9c], esi
test esi, esi
mov byte [ebp - 4], 0xf
setne al
test al, al
jne 0x405222
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x104
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412f7e
push eax
mov ecx, edi
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov edi, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
test esi, esi
je 0x405004
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x405004
call fcn.00412f7e
push eax
lea ecx, [ebp - 0x1a8c]
call fcn.0040f3c2
cmp byte [ebp - 0x1afc], 0
mov byte [ebp - 4], 0x11
jne 0x405249
cmp byte [ebp - 0x1ab8], 0
je 0x405268
cmp dword [ebp - 0x1aa8], 0
jne 0x405268
push dword [ebp - 0x1ac4]
lea ecx, [ebp - 0x1a8c]
call fcn.00412bd1
jmp 0x405306
push dword [ebp - 0x1ac4]
lea ecx, [ebp - 0x1ab0]
call fcn.00412bfc
push eax
lea ecx, [ebp - 0x1a8c]
mov byte [ebp - 4], 0x12
call fcn.00412862
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x1ab0]
add ecx, 0xfffffff0
call fcn.004130bf
mov eax, dword [ebp - 0x1ab4]
test eax, eax
je 0x405306
cmp byte [eax], 0
je 0x405306
push ecx
mov ecx, esp
push eax
call fcn.0040e3b3
lea ecx, [ebp - 0x1ac0]
call fcn.00402811
push eax
mov edx, 0x4399f4
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1ab0]
call fcn.0040e61c
pop ecx
pop ecx
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1a8c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00412268
mov ecx, dword [ebp - 0x1ab0]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp - 0x1ac0]
lea ecx, [ecx - 0x10]
call fcn.004130bf
xor eax, eax
xor edx, edx
cmp byte [ebp - 0x1b5c], al
mov ecx, 0xc000
push edx
cmovne eax, ecx
cmp byte [ebp - 0x1b10], dl
mov ecx, 0x200000
cmovne ecx, eax
mov eax, str.DELETE
or ecx, edi
or ecx, 0x84480300
cmp byte [ebp - 0x1ad4], dl
push ecx
push 0x44564c
mov ecx, 0x439c70
cmove eax, ecx
mov ecx, 0x439c58
cmp byte [ebp - 0x1ab8], dl
push edx
cmove ecx, eax
mov eax, str.POST
cmp byte [ebp - 0x1afc], dl
push edx
push dword [ebp - 0x1a8c]
cmove eax, ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x1abc], edi
test edi, edi
mov byte [ebp - 4], 0x15
setne al
test al, al
jne 0x405430
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x127
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov dword [ebp - 0x1ad4], esp
call fcn.00412f7e
mov ecx, dword [ebp - 0x1ad4]
push eax
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 0x16
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
test edi, edi
je 0x405403
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.004130bf
test esi, esi
je 0x40541c
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x4068b3
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4068b3
call fcn.00412f7e
push eax
lea ecx, [ebp - 0x1ac4]
call fcn.0040f3c2
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x1aec]
test eax, eax
je 0x40545b
push eax
lea ecx, [ebp - 0x1ac4]
call fcn.00412bd1
cmp byte [ebp - 0x1afc], 0
je 0x405483
cmp byte [ebp + 0x50], 0
jne 0x405483
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
push esi
call fcn.00418604
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1ac4]
call fcn.00412268
mov eax, dword [ebp - 0x1a84]
test eax, eax
je 0x4054c9
push eax
lea eax, [ebp - 0x1a84]
push str.Referer:__ws_r_n
push eax
call fcn.00401b35
add esp, 0xc
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x1ac4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00412268
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x1a84]
lea ecx, [ecx - 0x10]
call fcn.004130bf
cmp byte [ebp - 0x1aa9], 0
je 0x40552e
call fcn.00412f7e
push eax
lea ecx, [ebp - 0x1aa0]
call fcn.0040f3c2
push dword [ebp + 0x38]
lea eax, [ebp - 0x1aa0]
mov byte [ebp - 4], 0x19
push dword [ebp + 0x34]
push dword [ebp - 0x1ae0]
push dword [ebp - 0x1acc]
push str.Range:_bytes_I64d__I64d_r_n
push eax
call fcn.0041275f
mov esi, dword [ebp - 0x1aa0]
lea ecx, [ebp - 0x1ac4]
add esp, 0x18
push dword [esi - 0xc]
push esi
call fcn.00412268
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0x17
call fcn.004130bf
mov ecx, dword [ebp - 0x1a88]
test ecx, ecx
je 0x4055bf
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
and dword [ebp - 0x1a84], 0
sar eax, 2
test eax, eax
je 0x4055bf
mov edi, dword [ebp - 0x1a84]
mov ebx, ecx
call fcn.00412f7e
push eax
lea ecx, [ebp - 0x1aa0]
call fcn.0040f3c2
mov byte [ebp - 4], 0x1a
mov eax, dword [ebx]
push dword [eax + edi*4]
lea eax, [ebp - 0x1aa0]
push str.Cookie:__ws_r_n
push eax
call fcn.0041275f
mov esi, dword [ebp - 0x1aa0]
lea ecx, [ebp - 0x1ac4]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00412268
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0x17
call fcn.004130bf
mov eax, dword [ebx + 4]
inc edi
sub eax, dword [ebx]
sar eax, 2
cmp edi, eax
jb 0x405557
mov ebx, dword [ebp - 0x1ac8]
mov edi, dword [ebp - 0x1abc]
cmp byte [ebp + 0x50], 0
je 0x4055da
mov eax, dword [ebp - 0x1aa8]
test eax, eax
cmove eax, dword [ebp - 0x1ab4]
mov dword [ebp - 0x1aa8], eax
and dword [ebp - 0x1a88], 0
mov byte [ebp - 4], 0x1b
mov esi, dword [ebp - 0x1ac4]
mov byte [ebp - 0x1ab8], 0
mov eax, dword [ebp - 0x1a7c]
test eax, eax
je 0x405637
push eax
mov edx, edi
lea ecx, [ebp - 0x1b58]
call fcn.00404949
pop ecx
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x1b58], 0
jl 0x4059d4
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x1b50]
lea ecx, [ecx - 0x10]
call fcn.004130bf
xor eax, eax
inc eax
mov byte [ebp - 0x1ab8], al
cmp byte [ebp + 0x50], 0
je 0x4056a6
xor eax, eax
lea edi, [ebp - 0x1b84]
push 9
pop ecx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x1b88], 0x28
cmp dword [esi - 0xc], ecx
mov eax, esi
cmove eax, ecx
mov dword [ebp - 0x1b80], eax
mov eax, dword [esi - 0xc]
test eax, eax
cmove eax, ecx
mov dword [ebp - 0x1b7c], eax
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x405685
push dword [ebp - 0x1aa8]
call fcn.00419400
pop ecx
mov edi, dword [ebp - 0x1abc]
mov dword [ebp - 0x1b6c], eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x1b88]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
jmp 0x405707
cmp byte [ebp - 0x1afc], 0
je 0x4056c3
push dword [ebp - 0x1ab4]
call fcn.00419400
pop ecx
mov dword [ebp - 0x1aa0], eax
jmp 0x4056ca
and dword [ebp - 0x1aa0], 0
mov eax, dword [esi - 0xc]
xor ecx, ecx
push dword [ebp - 0x1aa0]
test eax, eax
mov edx, eax
cmove edx, ecx
and dword [ebp - 0x1a84], 0
test eax, eax
mov ecx, esi
cmove ecx, dword [ebp - 0x1a84]
xor eax, eax
cmp byte [ebp - 0x1afc], al
cmovne eax, dword [ebp - 0x1ab4]
push eax
push edx
push ecx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x406825
cmp byte [ebp + 0x50], 0
je 0x405899
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x40572c
push dword [ebp - 0x1aa8]
call fcn.00419400
pop ecx
and dword [ebp - 0x1ac0], 0
xor edx, edx
mov dword [ebp - 0x1ab0], eax
mov ecx, edx
mov dword [ebp - 0x1aa0], eax
mov dword [ebp - 0x1ae4], edx
mov dword [ebp - 0x1ad0], ecx
test eax, eax
je 0x405882
push edx
push eax
push edx
push ecx
push dword [ebp - 0x1ac0]
mov ecx, dword [ebp - 0x1af8]
lea eax, [ebp - 0x1b08]
push eax
call fcn.004043af
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0x1b08], 0
jl 0x405af5
mov eax, dword [ebp - 0x1aa0]
lea ecx, [ebp - 0x1ae8]
mov edx, 0x1000
cmp eax, edx
push ecx
cmova eax, edx
and dword [ebp - 0x1ae8], 0
push eax
mov dword [ebp - 0x1a84], eax
mov eax, dword [ebp - 0x1ad0]
add eax, dword [ebp - 0x1aa8]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
setne al
test al, al
je 0x405aa8
mov ecx, dword [ebp - 0x1ae8]
cmp ecx, dword [ebp - 0x1a84]
sete al
test al, al
je 0x405a4c
add dword [ebp - 0x1ae4], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [ebp - 0x1aec], eax
xor eax, eax
sub ecx, dword [ebp - 0x1b4c]
sbb eax, eax
mov dword [ebp - 0x1a84], eax
js 0x405846
jg 0x405812
mov eax, 0x3e8
cmp ecx, eax
jbe 0x405846
mov eax, dword [ebp - 0x1ae4]
mov edx, 0x3e8
push dword [ebp - 0x1a84]
mul edx
push ecx
push edx
push eax
call fcn.0041e690
and dword [ebp - 0x1ae4], 0
mov dword [ebp - 0x1ac0], eax
mov eax, dword [ebp - 0x1aec]
mov dword [ebp - 0x1b4c], eax
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x1b00]
add ecx, 0xfffffff0
call fcn.004130bf
mov ecx, dword [ebp - 0x1ad0]
mov eax, 0x1000
sub dword [ebp - 0x1aa0], eax
add ecx, eax
mov eax, dword [ebp - 0x1ab0]
mov dword [ebp - 0x1ad0], ecx
push 0
pop edx
cmp ecx, eax
jb 0x405757
push edx
push edx
push edx
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
setne al
test al, al
je 0x405b09
push 0
lea eax, [ebp - 0x1a84]
mov dword [ebp - 0x1a84], 4
push eax
push dword [ebp - 0x1aa4]
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
je 0x4067d5
mov eax, dword [ebp - 0x1aa4]
cmp dword [eax], 0x197
jne 0x405c58
cmp byte [ebp - 0x1ab8], 0
jne 0x405c2d
lea ecx, [ebp - 0x1ad8]
call fcn.004068f8
mov ecx, dword [ebp - 0x1af8]
lea eax, [ebp - 0x1aaa]
mov byte [ebp - 4], 0x25
push dword [ebp - 0x1a88]
mov byte [ebp - 0x1aaa], 0
push eax
lea eax, [ebp - 0x1ad8]
push eax
call fcn.0040783a
test al, al
je 0x405bf0
lea eax, [ebp - 0x1ad8]
mov edx, edi
push eax
lea ecx, [ebp - 0x1a98]
call fcn.00404949
pop ecx
mov byte [ebp - 4], 0x27
cmp dword [ebp - 0x1a98], 0
jl 0x405b5f
mov byte [ebp - 4], 0x25
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
push 8
call fcn.0041948b
pop ecx
mov dword [ebp - 0x1a84], eax
mov byte [ebp - 4], 0x29
test eax, eax
je 0x405985
lea ecx, [ebp - 0x1ad8]
push ecx
mov ecx, eax
call fcn.00406933
jmp 0x405987
xor eax, eax
push eax
lea ecx, [ebp - 0x1a88]
call fcn.0040eb73
mov eax, dword [ebp - 0x1ab8]
cmp byte [ebp - 0x1aaa], 0
push 1
pop ecx
movzx eax, al
cmove eax, ecx
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x1ad4]
mov dword [ebp - 0x1ab8], eax
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp - 0x1ad8]
lea ecx, [ecx - 0x10]
call fcn.004130bf
jmp 0x4055f2
cmp dword [ebp - 0x1b54], 0
mov eax, 0x157
cmovne eax, dword [ebp - 0x1b54]
push eax
push dword [ebp - 0x1b58]
mov eax, dword [ebp - 0x1b50]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [ebp - 0x1a7c], esp
mov dword [ebp - 0x1a84], eax
call fcn.00413040
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x1a98]
mov ecx, dword [ebp - 0x1a80]
push eax
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp - 0x1a84]
jmp 0x40686c
push 0x18c
push 0x80004005
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412f7e
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp - 0x1b00]
jmp 0x406869
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x18b
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412f7e
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x20
jmp 0x405a7d
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1b08]
push eax
call fcn.00402691
jmp 0x405a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x19a
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412f7e
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x1a98]
jmp 0x406857
cmp dword [ebp - 0x1a94], 0
mov eax, 0x1b4
cmovne eax, dword [ebp - 0x1a94]
push eax
push dword [ebp - 0x1a98]
mov eax, dword [ebp - 0x1a90]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [ebp - 0x1a7c], esp
mov dword [ebp - 0x1a84], eax
call fcn.00413040
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x1b08]
call fcn.004130db
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1b08]
push eax
mov byte [ebp - 4], 0x28
call fcn.00402691
mov ecx, dword [ebp - 0x1b00]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp - 0x1a84]
call fcn.004130bf
mov ecx, dword [ebp - 0x1ad4]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov ecx, dword [ebp - 0x1ad8]
jmp 0x406869
push 0x1b1
push 0x80004004
push ecx
mov ecx, esp
push str.Proxy_authentication
call fcn.00412bfc
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov ecx, dword [ebp - 0x1a80]
push eax
mov byte [ebp - 4], 0x26
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
jmp 0x405bd2
push 0x1a8
push 0x80004005
push ecx
mov ecx, esp
push str.Proxy_authentication_failed
call fcn.00412bfc
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x24
jmp 0x406857
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004188f0
add esp, 0xc
mov dword [ebp - 0x1a7c], 0x208
lea eax, [ebp - 0x1a7c]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1d
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x1aa4]
add ecx, 0xc
test eax, eax
je 0x405cb4
lea eax, [ebp - 0x218]
push eax
call fcn.00412bd1
jmp 0x405cb9
call fcn.00412b10
push ecx
lea ecx, [ebp - 0x1a98]
call fcn.0040ebad
mov byte [ebp - 4], 0x2a
mov ecx, dword [ebp - 0x1a98]
mov eax, dword [ebp - 0x1a94]
sub eax, ecx
and eax, 0xfffffffe
mov dword [ebp - 0x1a7c], eax
xor eax, eax
push eax
mov word [ecx], ax
lea eax, [ebp - 0x1a7c]
push eax
push ecx
push 0x21
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov eax, dword [ebp - 0x1aa4]
je 0x405d19
push dword [ebp - 0x1a98]
add eax, 8
mov ecx, eax
mov dword [ebp - 0x1ad0], eax
call fcn.00412bd1
jmp 0x405d29
add eax, 8
mov ecx, eax
mov dword [ebp - 0x1ad0], eax
call fcn.00412b10
mov byte [ebp - 4], 0x1b
push dword [ebp - 0x1a98]
call fcn.004183e6
mov eax, dword [ebp - 0x1aa4]
xor ecx, ecx
add eax, 0x28
mov dword [esp], 0x206
mov dword [ebp - 0x1ab4], eax
push ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004188f0
add esp, 0xc
mov dword [ebp - 0x1a7c], 0x208
lea eax, [ebp - 0x1a7c]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x405df2
push dword [ebp - 0x1ab4]
lea eax, [ebp - 0x218]
push 0x43acbc
push eax
call fcn.004194f9
add esp, 0xc
dec eax
neg eax
sbb al, al
inc al
jne 0x405e41
push 0x1f0
push 0x80004005
push ecx
mov dword [ebp - 0x1a84], esp
call fcn.00412f7e
mov ecx, dword [ebp - 0x1a84]
push eax
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x2b
jmp 0x405b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x405e0e
mov eax, dword [ebp - 0x1ab4]
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x405e41
call fcn.004128b0
push 0
push 0
mov edx, eax
lea ecx, [ebp - 0x1a84]
call fcn.004123c8
mov eax, dword [ebp - 0x1ab4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1a84]
and dword [eax], 0
and dword [eax + 4], 0
lea ecx, [ecx - 0x10]
call fcn.004130bf
xor eax, eax
push 0x185e
push eax
mov word [ebp - 0x1a78], ax
lea eax, [ebp - 0x1a76]
push eax
call fcn.004188f0
and dword [ebp - 0x1ac0], 0
lea eax, [ebp - 0x1ac0]
add esp, 0xc
mov dword [ebp - 0x1ae8], 0x1860
push eax
lea eax, [ebp - 0x1ae8]
push eax
lea eax, [ebp - 0x1a78]
push eax
push 0x2b
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x405efb
mov eax, dword [ebp - 0x1aa4]
add eax, 0x10
mov esi, eax
lea eax, [ebp - 0x1a78]
push eax
lea ecx, [ebp - 0x1ab0]
call fcn.00412bfc
lea eax, [ebp - 0x1ab0]
mov byte [ebp - 4], 0x2c
push eax
mov ecx, esi
call fcn.0040e917
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x1ab0]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea eax, [ebp - 0x1ac0]
push eax
lea eax, [ebp - 0x1ae8]
push eax
lea eax, [ebp - 0x1a78]
push eax
push 0x2b
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x405e9d
mov esi, dword [ebp - 0x1ac4]
cmp byte [ebp - 0x1aa9], 0
mov eax, dword [ebp - 0x1aa4]
jne 0x405f25
lea edx, [eax + 0x30]
lea ecx, [eax + 0x28]
mov dword [ebp - 0x1aa0], edx
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
jmp 0x406217
cmp dword [eax], 0xce
je 0x405fff
call fcn.00412f7e
push eax
lea ecx, [ebp - 0x1aa0]
call fcn.0040f3c2
mov eax, dword [ebp - 0x1ab4]
mov byte [ebp - 4], 0x2d
push dword [eax]
mov eax, dword [ebp - 0x1aa4]
push dword [ebp + 0x34]
push dword [ebp - 0x1acc]
push dword [eax]
lea eax, [ebp - 0x1aa0]
push str._d___d__d__d_
push eax
call fcn.0041275f
mov eax, dword [ebp - 0x1aa4]
add esp, 0x18
cmp dword [eax], 0xc8
mov eax, dword [ebp - 0x1aa0]
jne 0x405fc3
push 0x242
add eax, 0xfffffff0
push 0x80040701
push ecx
mov ecx, eax
mov dword [ebp - 0x1a7c], esp
mov dword [ebp - 0x1a84], eax
call fcn.00413040
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x2e
jmp 0x405a27
push 0x245
add eax, 0xfffffff0
push 0x80004005
push ecx
mov ecx, eax
mov dword [ebp - 0x1a7c], esp
mov dword [ebp - 0x1a84], eax
call fcn.00413040
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x2f
jmp 0x405a27
mov eax, dword [ebp - 0x1ab4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, edx
or eax, ecx
mov dword [ebp - 0x1a7c], ecx
je 0x406060
mov eax, dword [ebp + 0x34]
sub eax, dword [ebp - 0x1acc]
mov ecx, dword [ebp + 0x38]
sbb ecx, dword [ebp - 0x1ae0]
add eax, 1
adc ecx, 0
cmp edx, eax
jne 0x40603a
cmp dword [ebp - 0x1a7c], ecx
je 0x406060
push 0x24a
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x30
jmp 0x405b54
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004188f0
add esp, 0xc
mov dword [ebp - 0x1a7c], 0x208
lea eax, [ebp - 0x1a7c]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0x35
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
jne 0x4060ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x252
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x31
jmp 0x405b54
xor eax, eax
mov dword [ebp - 0x1af0], eax
mov dword [ebp - 0x1aec], eax
mov dword [ebp - 0x1ad8], eax
mov dword [ebp - 0x1ad4], eax
mov eax, dword [ebp - 0x1aa4]
add eax, 0x30
push eax
mov dword [ebp - 0x1aa0], eax
lea eax, [ebp - 0x1ad8]
push eax
lea eax, [ebp - 0x1af0]
push eax
lea eax, [ebp - 0x218]
push str.bytes__I64d__I64d__I64d
push eax
call fcn.004194f9
add esp, 0x14
cmp eax, 3
sete al
test al, al
jne 0x406166
push 0x256
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x32
jmp 0x405b54
mov edx, dword [ebp - 0x1ad4]
mov ecx, dword [ebp - 0x1ad8]
cmp dword [ebp - 0x1aec], edx
jb 0x4061aa
ja 0x406184
cmp dword [ebp - 0x1af0], ecx
jbe 0x4061aa
push 0x258
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x34
jmp 0x405b54
mov eax, dword [ebp - 0x1aa0]
cmp edx, dword [eax + 4]
jb 0x4061e1
ja 0x4061bb
cmp ecx, dword [eax]
jb 0x4061e1
push 0x259
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x35
jmp 0x405b54
mov eax, dword [ebp - 0x1acc]
cmp dword [ebp - 0x1af0], eax
jne 0x4067af
mov eax, dword [ebp - 0x1ae0]
cmp dword [ebp - 0x1aec], eax
jne 0x4067af
cmp ecx, dword [ebp + 0x34]
jne 0x406789
cmp edx, dword [ebp + 0x38]
jne 0x406789
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004188f0
add esp, 0xc
mov dword [ebp - 0x1a7c], 0x208
lea eax, [ebp - 0x1a7c]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0xb
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x406264
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406279
mov ecx, dword [ebp - 0x1aa4]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ecx + 4]
call fcn.00412bd1
mov eax, dword [ebp - 0x1aa0]
mov ecx, dword [ebp - 0x1af8]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x1af4]
push dword [ebp - 0x1ae0]
push dword [ebp - 0x1acc]
push 0
push eax
call fcn.0040788f
mov byte [ebp - 4], 0x38
cmp dword [ebp - 0x1af4], 0
jge 0x406323
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1af4]
push eax
call fcn.00402691
mov ecx, dword [ebp - 0x1aec]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1a88]
call fcn.0040eb4e
lea ecx, [esi - 0x10]
call fcn.004130bf
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4062f1
push edi
call esi
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov eax, dword [ebp - 0x1a9c]
test eax, eax
je 0x40630c
push eax
call esi
test ebx, ebx
je 0x406313
push ebx
call esi
lea ecx, [ebp - 0x1b48]
call fcn.004048b1
jmp 0x4068c9
cmp byte [ebp - 0x1b10], 0
jne 0x406410
mov eax, dword [ebp - 0x1aa4]
cmp dword [eax], 0x12d
je 0x40635a
cmp dword [eax], 0x12e
je 0x40635a
cmp dword [eax], 0x12f
je 0x40635a
cmp dword [eax], 0x133
jne 0x406410
xor eax, eax
push 0x185e
push eax
mov word [ebp - 0x1a78], ax
lea eax, [ebp - 0x1a76]
push eax
call fcn.004188f0
add esp, 0xc
mov dword [ebp - 0x1a7c], 0x1860
lea eax, [ebp - 0x1a7c]
push 0
push eax
lea eax, [ebp - 0x1a78]
push eax
push 0x21
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
test al, al
jne 0x4063ea
push 0x2a2
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 0x39
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
jmp 0x4062c3
mov ecx, dword [ebp - 0x1ad0]
lea eax, [ebp - 0x1a78]
push eax
call fcn.00412bd1
mov ecx, dword [ebp - 0x1a80]
xor eax, eax
inc eax
push eax
call fcn.00412d97
jmp 0x4062c3
xor eax, eax
mov dword [ebp - 0x1b0c], eax
mov dword [ebp - 0x1b08], eax
mov dword [ebp - 0x1b04], eax
mov dword [ebp - 0x1b00], eax
push ecx
mov edx, 0x1000
mov byte [ebp - 4], 0x3a
push edx
lea ecx, [ebp - 0x1b0c]
call fcn.00412689
test al, al
jne 0x4064a3
push 0x2aa
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 0x3b
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
cmp dword [ebp - 0x1b0c], 0
je 0x4062c3
push dword [ebp - 0x1b0c]
call fcn.00418a45
pop ecx
jmp 0x4062c3
mov eax, dword [ebp - 0x1aa4]
xor ecx, ecx
mov dword [ebp - 0x1b10], ecx
mov dword [ebp - 0x1ab8], ecx
mov dword [ebp - 0x1aa8], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
jmp 0x406623
mov eax, dword [ebp - 0x1ab8]
add eax, dword [ebp - 0x1aa8]
mov dword [ebp - 0x1ab8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [ebp - 0x1a84], eax
xor eax, eax
sub ecx, dword [ebp - 0x1b4c]
sbb eax, eax
mov dword [ebp - 0x1a7c], eax
js 0x406539
jg 0x406505
mov eax, 0x3e8
cmp ecx, eax
jbe 0x406539
mov eax, dword [ebp - 0x1ab8]
mov edx, 0x3e8
push dword [ebp - 0x1a7c]
mul edx
push ecx
push edx
push eax
call fcn.0041e690
and dword [ebp - 0x1ab8], 0
mov dword [ebp - 0x1b10], eax
mov eax, dword [ebp - 0x1a84]
mov dword [ebp - 0x1b4c], eax
cmp dword [ebp - 0x1aa8], 0
je 0x406718
push dword [ebp - 0x1aa8]
push ecx
lea ecx, [ebp - 0x1b0c]
call fcn.0040fc81
mov edx, dword [ebp - 0x1aa4]
mov ecx, dword [ebp - 0x1acc]
push eax
mov eax, dword [ebp - 0x1ae0]
add ecx, dword [edx + 0x20]
adc eax, dword [edx + 0x24]
push eax
push ecx
mov ecx, dword [ebp - 0x1af8]
lea eax, [ebp - 0x1adc]
push eax
call fcn.004079cb
mov edx, dword [ebp - 0x1aa4]
mov byte [ebp - 4], 0x3d
mov eax, dword [ebp - 0x1aa8]
add dword [edx + 0x20], eax
adc dword [edx + 0x24], 0
cmp dword [ebp - 0x1adc], 0
jl 0x406698
push dword [edx + 0x34]
mov ecx, dword [ebp - 0x1acc]
add ecx, dword [edx + 0x20]
push dword [edx + 0x30]
mov eax, dword [ebp - 0x1ae0]
adc eax, dword [edx + 0x24]
push eax
push ecx
push dword [ebp - 0x1b10]
mov ecx, dword [ebp - 0x1af8]
lea eax, [ebp - 0x1a98]
push eax
call fcn.0040788f
push eax
lea ecx, [ebp - 0x1adc]
mov byte [ebp - 4], 0x3e
call fcn.00406975
mov byte [ebp - 4], 0x3d
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
cmp dword [ebp - 0x1adc], 0
jl 0x406698
mov byte [ebp - 4], 0x3a
mov ecx, dword [ebp - 0x1ad4]
add ecx, 0xfffffff0
call fcn.004130bf
and dword [ebp - 0x1aa8], 0
lea eax, [ebp - 0x1aa8]
push eax
push dword [ebp - 0x1b08]
push ecx
lea ecx, [ebp - 0x1b0c]
call fcn.0040fc81
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4064c8
push 0x2b6
call fcn.004128b0
push eax
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov ecx, dword [ebp - 0x1a80]
push eax
mov byte [ebp - 4], 0x3c
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1b0c]
call fcn.0040fc97
jmp 0x4062c3
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1adc]
push eax
call fcn.00402691
mov ecx, dword [ebp - 0x1ad4]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1b0c]
call fcn.0040fc97
mov ecx, dword [ebp - 0x1aec]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1a88]
call fcn.0040eb4e
lea ecx, [esi - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1abc]
call fcn.0040eb39
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1a9c]
call fcn.0040eb39
lea ecx, [ebp - 0x1ac8]
call fcn.0040eb39
jmp 0x406313
mov eax, dword [ebp - 0x1ab4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, ecx
or eax, edx
je 0x406777
mov eax, dword [ebp - 0x1aa4]
cmp dword [eax + 0x20], ecx
jne 0x406739
cmp dword [eax + 0x24], edx
je 0x406777
push 0x2e3
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 0x3f
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
jmp 0x4066b0
mov ecx, dword [ebp - 0x1a80]
push 0
call fcn.00412d97
jmp 0x4066b8
push 0x25b
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x37
jmp 0x405b54
push 0x25a
push 0x80004005
push ecx
mov ecx, esp
call fcn.00413014
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x36
jmp 0x405b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x1a0
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412f7e
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x23
jmp 0x405b54
call fcn.004128b0
push 0x173
push eax
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412f7e
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f3c2
lea ecx, [ebp - 0x1a98]
call fcn.004130db
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x1a80]
push eax
call fcn.00402691
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.004130bf
lea ecx, [ebp - 0x1a88]
call fcn.0040eb4e
lea ecx, [esi - 0x10]
call fcn.004130bf
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x406891
push edi
call esi
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov eax, dword [ebp - 0x1a9c]
test eax, eax
je 0x4068ac
push eax
call esi
test ebx, ebx
je 0x4068b3
push ebx
call esi
lea ecx, [ebp - 0x1b38]
call fcn.0040f6b4
lea ecx, [ebp - 0x1b48]
call fcn.00404848
mov ecx, dword [ebp + 0x5c]
lea ecx, [ecx - 0x10]
call fcn.004130bf
mov eax, dword [ebp - 0x1a80]
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.004183eb
mov esp, ebp
pop ebp
ret 0x74