Function at 0x404a89
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 0x4304fd
mov eax, dword fs:[0]
push eax
mov eax, 0x1b84
call fcn.0042b090
mov eax, dword [0x44335c]
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 - 0x1b04], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1acc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1ae0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1aa8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1ab4], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1ab8], eax
mov eax, dword [ebp + 0x20]
and dword [ebp - 0x1b58], 0
mov dword [ebp - 0x1abc], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1a7c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x1ac8], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x1adc], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x1ab0], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x1ae4], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x1a84], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x1b0c], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x1a88], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x1ae8], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x1a80], edi
mov dword [ebp - 0x1ad0], 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 - 0x1ac4]
and dword [ebp - 0x1ac4], 0
add ebx, 0x49
push eax
push ebx
push 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov eax, dword [ebp - 0x1ac4]
cmp eax, edi
cmovb eax, edi
mov dword [ebp - 0x1b08], eax
cmp dword [ebp - 0x1ac4], eax
je 0x404bde
push 4
lea eax, [ebp - 0x1b08]
push eax
push ebx
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x1aa0]
push eax
lea eax, [ebp - 0x1b08]
push eax
push ebx
push 0
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
inc esi
cmp esi, 2
jl 0x404b6a
lea ecx, [ebp - 0x1b44]
call fcn.00403f90
mov eax, dword [ebp - 0x1ab0]
lea ebx, [ebp - 0x1b44]
test eax, eax
lea ecx, [ebp - 0x1b90]
cmovne ebx, eax
mov dword [ebp - 0x1aa4], ebx
call fcn.00403f90
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00404866
xor ebx, ebx
lea ecx, [ebp - 0x1b80]
inc ebx
mov byte [ebp - 4], bl
call fcn.0040f330
lea ecx, [ebp - 0x1b90]
call fcn.004047ea
mov eax, dword [ebp + 0x34]
and eax, dword [ebp + 0x38]
mov edi, dword [ebp - 0x1a80]
mov edx, dword [ebp - 0x1adc]
cmp eax, 0xffffffff
je 0x404ce1
mov byte [ebp - 0x1aa9], bl
cmp edx, dword [ebp + 0x38]
jl 0x404d5a
jg 0x404c74
mov ecx, dword [ebp - 0x1ac8]
cmp ecx, dword [ebp + 0x34]
jbe 0x404d60
push 0xb0
push 0x80004005
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
lea eax, [ebp - 0x1a98]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1b34]
call fcn.0040f330
lea ecx, [ebp - 0x1b44]
call fcn.004047ea
mov ecx, dword [ebp + 0x5c]
add ecx, 0xfffffff0
call fcn.00412d0e
mov eax, edi
jmp 0x4067ee
mov ecx, dword [ebp - 0x1ac8]
mov eax, ecx
or eax, edx
mov byte [ebp - 0x1aa9], 0
je 0x404d60
push 0xb2
push 0x80004005
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1a98]
mov ecx, edi
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1b34]
call fcn.0040f330
lea ecx, [ebp - 0x1b44]
call fcn.004047ea
mov ecx, dword [ebp + 0x5c]
lea ecx, [ecx - 0x10]
jmp 0x404cd5
mov ecx, dword [ebp - 0x1ac8]
cmp byte [ebp + 0x50], 0
je 0x404d9a
cmp byte [ebp - 0x1ab4], 0
jne 0x404db0
push 0xb6
push 0x80004005
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 5
jmp 0x404d1d
mov eax, dword [ebp - 0x1aa8]
test eax, eax
je 0x404db0
cmp byte [eax], 0x3f
jne 0x404db0
inc eax
mov dword [ebp - 0x1aa8], eax
push 0
push 0
push edx
push ecx
mov ecx, dword [ebp - 0x1b04]
lea eax, [ebp - 0x1b54]
push 0
push eax
call fcn.00407793
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1b54], 0
jge 0x404e43
cmp dword [ebp - 0x1b50], 0
mov eax, 0xc5
mov edi, dword [ebp - 0x1b4c]
cmovne eax, dword [ebp - 0x1b50]
push eax
push dword [ebp - 0x1b54]
push ecx
lea ecx, [edi - 0x10]
mov esi, esp
call fcn.00412c8f
add eax, 0x10
lea ecx, [ebp - 0x1a98]
mov dword [esi], eax
call fcn.00412d2a
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 7
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [edi - 0x10]
call fcn.00412d0e
jmp 0x4067c7
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1b4c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x1abc]
mov dword [ebp - 0x1b48], eax
test ebx, ebx
je 0x404e7c
lea eax, [ebp - 0x1abc]
mov ecx, ebx
push eax
call fcn.0040437d
push 2
jmp 0x404e8b
push 0
lea ecx, [ebp - 0x1ab0]
call fcn.0041284d
push 4
pop ecx
push 0
push 0
push dword [eax]
xor eax, eax
mov dword [ebp - 0x1ac0], ecx
cmp byte [ebp - 0x1ae4], 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 - 0x1ac4], ebx
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x1ac0]
test al, 4
je 0x404eeb
mov ecx, dword [ebp - 0x1ab0]
and eax, 0xfffffffb
mov dword [ebp - 0x1ac0], eax
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, dword [ebp - 0x1ac0]
mov byte [ebp - 4], 0xa
test al, 2
je 0x404f01
mov ecx, dword [ebp - 0x1abc]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
test ebx, ebx
setne al
test al, al
jne 0x404f7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xd7
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1a98]
mov ecx, edi
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
test ebx, ebx
je 0x404d39
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x404d39
cmp dword [ebp + 0x60], 0
je 0x404fe3
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 0x404fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xda
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0xc
jmp 0x404f4d
cmp dword [ebp + 0x64], 0
je 0x405049
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 0x405049
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xdd
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0xd
jmp 0x404f4d
cmp dword [ebp + 0x68], 0
je 0x4050af
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 0x4050af
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xe0
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov esi, esp
call fcn.00412bcd
push eax
mov ecx, esi
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0xe
jmp 0x404f4d
mov ax, word [ebp + 0x28]
mov edx, dword [ebp - 0x1ab8]
movzx ecx, ax
test ax, ax
jne 0x4050d1
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 - 0x1acc]
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 0x405187
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0xfa
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov edi, esp
call fcn.00412bcd
push eax
mov ecx, edi
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov edi, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
test esi, esi
je 0x404f69
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x404f69
call fcn.00412bcd
push eax
lea ecx, [ebp - 0x1a8c]
call fcn.0040f03e
cmp byte [ebp - 0x1ab4], 0
push dword [ebp - 0x1ae0]
mov byte [ebp - 4], 0x11
je 0x4051bb
lea ecx, [ebp - 0x1a8c]
call fcn.00412822
jmp 0x405253
lea ecx, [ebp - 0x1ab0]
call fcn.0041284d
push eax
lea ecx, [ebp - 0x1a8c]
mov byte [ebp - 4], 0x12
call fcn.004124b3
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x1ab0]
add ecx, 0xfffffff0
call fcn.00412d0e
mov eax, dword [ebp - 0x1aa8]
test eax, eax
je 0x405253
cmp byte [eax], 0
je 0x405253
push ecx
mov ecx, esp
push eax
call fcn.0040e071
lea ecx, [ebp - 0x1abc]
call fcn.004027f1
push eax
mov edx, 0x4389e4
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1ab0]
call fcn.0040e2da
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.00411eb9
mov ecx, dword [ebp - 0x1ab0]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x1abc]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
xor eax, eax
xor edx, edx
cmp byte [ebp - 0x1ad0], al
mov ecx, 0xc000
push edx
cmovne eax, ecx
cmp byte [ebp - 0x1b0c], dl
mov ecx, 0x200000
cmovne ecx, eax
mov eax, str.POST
or ecx, edi
or ecx, 0x84480300
cmp byte [ebp - 0x1ab4], dl
push ecx
push 0x44464c
push edx
push edx
push dword [ebp - 0x1a8c]
mov ecx, 0x438c40
cmove eax, ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x1ac0], edi
test edi, edi
mov byte [ebp - 4], 0x15
setne al
test al, al
jne 0x405361
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x11d
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov dword [ebp - 0x1ad0], esp
call fcn.00412bcd
mov ecx, dword [ebp - 0x1ad0]
push eax
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 0x16
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
test edi, edi
je 0x405334
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
test esi, esi
je 0x40534d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x4067c7
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4067c7
call fcn.00412bcd
push eax
lea ecx, [ebp - 0x1acc]
call fcn.0040f03e
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x1ae8]
test eax, eax
je 0x40538c
push eax
lea ecx, [ebp - 0x1acc]
call fcn.00412822
cmp byte [ebp - 0x1ab4], 0
je 0x4053b4
cmp byte [ebp + 0x50], 0
jne 0x4053b4
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
push esi
call fcn.00418252
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1acc]
call fcn.00411eb9
mov eax, dword [ebp - 0x1a84]
test eax, eax
je 0x4053fa
push eax
lea eax, [ebp - 0x1a84]
push str.Referer:__ws_r_n
push eax
call fcn.00401b15
add esp, 0xc
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x1acc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00411eb9
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x1a84]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
cmp byte [ebp - 0x1aa9], 0
je 0x40545f
call fcn.00412bcd
push eax
lea ecx, [ebp - 0x1aa0]
call fcn.0040f03e
push dword [ebp + 0x38]
lea eax, [ebp - 0x1aa0]
mov byte [ebp - 4], 0x19
push dword [ebp + 0x34]
push dword [ebp - 0x1adc]
push dword [ebp - 0x1ac8]
push str.Range:_bytes_I64d__I64d_r_n
push eax
call fcn.004123b0
mov esi, dword [ebp - 0x1aa0]
lea ecx, [ebp - 0x1acc]
add esp, 0x18
push dword [esi - 0xc]
push esi
call fcn.00411eb9
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0x17
call fcn.00412d0e
mov ecx, dword [ebp - 0x1a88]
test ecx, ecx
je 0x4054f0
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
and dword [ebp - 0x1a84], 0
sar eax, 2
test eax, eax
je 0x4054f0
mov edi, dword [ebp - 0x1a84]
mov ebx, ecx
call fcn.00412bcd
push eax
lea ecx, [ebp - 0x1aa0]
call fcn.0040f03e
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.004123b0
mov esi, dword [ebp - 0x1aa0]
lea ecx, [ebp - 0x1acc]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00411eb9
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0x17
call fcn.00412d0e
mov eax, dword [ebx + 4]
inc edi
sub eax, dword [ebx]
sar eax, 2
cmp edi, eax
jb 0x405488
mov ebx, dword [ebp - 0x1ac4]
mov edi, dword [ebp - 0x1ac0]
and dword [ebp - 0x1a88], 0
mov byte [ebp - 4], 0x1b
mov esi, dword [ebp - 0x1acc]
mov byte [ebp - 0x1ab8], 0
mov eax, dword [ebp - 0x1a7c]
test eax, eax
je 0x40554d
push eax
mov edx, edi
lea ecx, [ebp - 0x1b54]
call fcn.004048eb
pop ecx
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x1b54], 0
jl 0x4058eb
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x1b4c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
xor eax, eax
inc eax
mov byte [ebp - 0x1ab8], al
cmp byte [ebp + 0x50], 0
je 0x4055bc
xor eax, eax
lea edi, [ebp - 0x1b7c]
push 9
pop ecx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x1b80], 0x28
cmp dword [esi - 0xc], ecx
mov eax, esi
cmove eax, ecx
mov dword [ebp - 0x1b78], eax
mov eax, dword [esi - 0xc]
test eax, eax
cmove eax, ecx
mov dword [ebp - 0x1b74], eax
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x40559b
push dword [ebp - 0x1aa8]
call fcn.00419050
pop ecx
mov edi, dword [ebp - 0x1ac0]
mov dword [ebp - 0x1b64], eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x1b80]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
jmp 0x40561d
cmp byte [ebp - 0x1ab4], 0
je 0x4055d9
push dword [ebp - 0x1aa8]
call fcn.00419050
pop ecx
mov dword [ebp - 0x1aa0], eax
jmp 0x4055e0
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 - 0x1ab4], al
cmovne eax, dword [ebp - 0x1aa8]
push eax
push edx
push ecx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x406739
cmp byte [ebp + 0x50], 0
je 0x4057af
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x405642
push dword [ebp - 0x1aa8]
call fcn.00419050
pop ecx
and dword [ebp - 0x1abc], 0
xor edx, edx
mov dword [ebp - 0x1ab0], eax
mov ecx, edx
mov dword [ebp - 0x1aa0], eax
mov dword [ebp - 0x1ae0], edx
mov dword [ebp - 0x1b08], ecx
test eax, eax
je 0x405798
push edx
push eax
push edx
push ecx
push dword [ebp - 0x1abc]
mov ecx, dword [ebp - 0x1b04]
lea eax, [ebp - 0x1afc]
push eax
call fcn.00404354
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0x1afc], 0
jl 0x405a0c
mov eax, dword [ebp - 0x1aa0]
lea ecx, [ebp - 0x1ae4]
mov edx, 0x1000
cmp eax, edx
push ecx
cmova eax, edx
and dword [ebp - 0x1ae4], 0
push eax
mov dword [ebp - 0x1a84], eax
mov eax, dword [ebp - 0x1b08]
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 0x4059bf
mov ecx, dword [ebp - 0x1ae4]
cmp ecx, dword [ebp - 0x1a84]
sete al
test al, al
je 0x405963
add dword [ebp - 0x1ae0], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [ebp - 0x1ae8], eax
xor eax, eax
sub ecx, dword [ebp - 0x1b48]
sbb eax, eax
mov dword [ebp - 0x1a84], eax
js 0x40575c
jg 0x405728
mov eax, 0x3e8
cmp ecx, eax
jbe 0x40575c
mov eax, dword [ebp - 0x1ae0]
mov edx, 0x3e8
push dword [ebp - 0x1a84]
mul edx
push ecx
push edx
push eax
call fcn.0041e2e0
and dword [ebp - 0x1ae0], 0
mov dword [ebp - 0x1abc], eax
mov eax, dword [ebp - 0x1ae8]
mov dword [ebp - 0x1b48], eax
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x1af4]
add ecx, 0xfffffff0
call fcn.00412d0e
mov ecx, dword [ebp - 0x1b08]
mov eax, 0x1000
sub dword [ebp - 0x1aa0], eax
add ecx, eax
mov eax, dword [ebp - 0x1ab0]
mov dword [ebp - 0x1b08], ecx
push 0
pop edx
cmp ecx, eax
jb 0x40566d
push edx
push edx
push edx
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
setne al
test al, al
je 0x405a20
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 0x4066e9
mov eax, dword [ebp - 0x1aa4]
mov ecx, 0x197
cmp dword [eax], ecx
jne 0x405b6b
cmp byte [ebp - 0x1ab8], 0
jne 0x405b44
lea ecx, [ebp - 0x1ad4]
call fcn.0040680c
mov ecx, dword [ebp - 0x1b04]
lea eax, [ebp - 0x1aaa]
mov byte [ebp - 4], 0x25
push dword [ebp - 0x1a88]
mov byte [ebp - 0x1aaa], 0
push eax
lea eax, [ebp - 0x1ad4]
push eax
call fcn.0040773e
test al, al
je 0x405b07
lea eax, [ebp - 0x1ad4]
mov edx, edi
push eax
lea ecx, [ebp - 0x1a98]
call fcn.004048eb
pop ecx
mov byte [ebp - 4], 0x27
cmp dword [ebp - 0x1a98], 0
jl 0x405a76
mov byte [ebp - 4], 0x25
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
push 8
call fcn.004190db
pop ecx
mov dword [ebp - 0x1a84], eax
mov byte [ebp - 4], 0x29
test eax, eax
je 0x40589c
lea ecx, [ebp - 0x1ad4]
push ecx
mov ecx, eax
call fcn.00406847
jmp 0x40589e
xor eax, eax
push eax
lea ecx, [ebp - 0x1a88]
call fcn.0040e831
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 - 0x1ad0]
mov dword [ebp - 0x1ab8], eax
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x1ad4]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
jmp 0x405508
cmp dword [ebp - 0x1b50], 0
mov eax, 0x146
cmovne eax, dword [ebp - 0x1b50]
push eax
push dword [ebp - 0x1b54]
mov eax, dword [ebp - 0x1b4c]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [ebp - 0x1a7c], esp
mov dword [ebp - 0x1a84], eax
call fcn.00412c8f
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x1a98]
mov ecx, dword [ebp - 0x1a80]
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x1a84]
jmp 0x406780
push 0x17b
push 0x80004005
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412bcd
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x1af4]
jmp 0x40677d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x17a
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412bcd
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x20
jmp 0x405994
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1afc]
push eax
call fcn.00402671
jmp 0x4059b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x189
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412bcd
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x1a98]
jmp 0x40676b
cmp dword [ebp - 0x1a94], 0
mov eax, 0x1a3
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.00412c8f
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x1afc]
call fcn.00412d2a
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1afc]
push eax
mov byte [ebp - 4], 0x28
call fcn.00402671
mov ecx, dword [ebp - 0x1af4]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x1a84]
call fcn.00412d0e
mov ecx, dword [ebp - 0x1ad0]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x1ad4]
jmp 0x40677d
push 0x1a0
push 0x80004004
push ecx
mov ecx, esp
push str.Proxy_authentication
call fcn.0041284d
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov ecx, dword [ebp - 0x1a80]
push eax
mov byte [ebp - 4], 0x26
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
jmp 0x405ae9
push ecx
push 0x80004005
push ecx
mov ecx, esp
push str.Proxy_authentication_failed
call fcn.0041284d
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x24
jmp 0x40676b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00418540
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]
lea ecx, [ecx + 0xc]
test eax, eax
je 0x405bc7
lea eax, [ebp - 0x218]
push eax
call fcn.00412822
jmp 0x405bcc
call fcn.00412761
mov eax, dword [ebp - 0x1aa4]
xor ecx, ecx
add eax, 0x28
mov dword [ebp - 0x1ab4], eax
push 0x206
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.00418540
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 0x405c84
push dword [ebp - 0x1ab4]
lea eax, [ebp - 0x218]
push 0x439c4c
push eax
call fcn.00419149
add esp, 0xc
dec eax
neg eax
sbb al, al
inc al
jne 0x405cd3
push 0x1d2
push 0x80004005
push ecx
mov dword [ebp - 0x1a84], esp
call fcn.00412bcd
mov ecx, dword [ebp - 0x1a84]
push eax
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x2a
jmp 0x405a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x405ca0
mov eax, dword [ebp - 0x1ab4]
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x405cd3
call fcn.00412501
push 0
push 0
mov edx, eax
lea ecx, [ebp - 0x1a84]
call fcn.00412019
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.00412d0e
xor eax, eax
push 0x185e
push eax
mov word [ebp - 0x1a78], ax
lea eax, [ebp - 0x1a76]
push eax
call fcn.00418540
and dword [ebp - 0x1abc], 0
lea eax, [ebp - 0x1abc]
add esp, 0xc
mov dword [ebp - 0x1ae4], 0x1860
push eax
lea eax, [ebp - 0x1ae4]
push eax
lea eax, [ebp - 0x1a78]
push eax
push 0x2b
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x405d8d
mov eax, dword [ebp - 0x1aa4]
add eax, 0x10
mov esi, eax
lea eax, [ebp - 0x1a78]
push eax
lea ecx, [ebp - 0x1ab0]
call fcn.0041284d
lea eax, [ebp - 0x1ab0]
mov byte [ebp - 4], 0x2b
push eax
mov ecx, esi
call fcn.0040e5d5
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x1ab0]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea eax, [ebp - 0x1abc]
push eax
lea eax, [ebp - 0x1ae4]
push eax
lea eax, [ebp - 0x1a78]
push eax
push 0x2b
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x405d2f
mov esi, dword [ebp - 0x1acc]
cmp byte [ebp - 0x1aa9], 0
mov eax, dword [ebp - 0x1aa4]
jne 0x405db7
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 0x4060a9
cmp dword [eax], 0xce
je 0x405e91
call fcn.00412bcd
push eax
lea ecx, [ebp - 0x1aa0]
call fcn.0040f03e
mov eax, dword [ebp - 0x1ab4]
mov byte [ebp - 4], 0x2c
push dword [eax]
mov eax, dword [ebp - 0x1aa4]
push dword [ebp + 0x34]
push dword [ebp - 0x1ac8]
push dword [eax]
lea eax, [ebp - 0x1aa0]
push str._d___d__d__d_
push eax
call fcn.004123b0
mov eax, dword [ebp - 0x1aa4]
add esp, 0x18
cmp dword [eax], 0xc8
mov eax, dword [ebp - 0x1aa0]
jne 0x405e55
push 0x224
add eax, 0xfffffff0
push 0x80040701
push ecx
mov ecx, eax
mov dword [ebp - 0x1a7c], esp
mov dword [ebp - 0x1a84], eax
call fcn.00412c8f
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x2d
jmp 0x40593e
push 0x227
add eax, 0xfffffff0
push 0x80004005
push ecx
mov ecx, eax
mov dword [ebp - 0x1a7c], esp
mov dword [ebp - 0x1a84], eax
call fcn.00412c8f
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x2e
jmp 0x40593e
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 0x405ef2
mov eax, dword [ebp + 0x34]
sub eax, dword [ebp - 0x1ac8]
mov ecx, dword [ebp + 0x38]
sbb ecx, dword [ebp - 0x1adc]
add eax, 1
adc ecx, 0
cmp edx, eax
jne 0x405ecc
cmp dword [ebp - 0x1a7c], ecx
je 0x405ef2
push 0x22c
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x2f
jmp 0x405a6b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00418540
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 0x405f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x234
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x30
jmp 0x405a6b
xor eax, eax
mov dword [ebp - 0x1aec], eax
mov dword [ebp - 0x1ae8], eax
mov dword [ebp - 0x1ad4], eax
mov dword [ebp - 0x1ad0], eax
mov eax, dword [ebp - 0x1aa4]
add eax, 0x30
push eax
mov dword [ebp - 0x1aa0], eax
lea eax, [ebp - 0x1ad4]
push eax
lea eax, [ebp - 0x1aec]
push eax
lea eax, [ebp - 0x218]
push str.bytes__I64d__I64d__I64d
push eax
call fcn.00419149
add esp, 0x14
cmp eax, 3
sete al
test al, al
jne 0x405ff8
push 0x238
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x31
jmp 0x405a6b
mov edx, dword [ebp - 0x1ad0]
mov ecx, dword [ebp - 0x1ad4]
cmp dword [ebp - 0x1ae8], edx
jb 0x40603c
ja 0x406016
cmp dword [ebp - 0x1aec], ecx
jbe 0x40603c
push 0x23a
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x33
jmp 0x405a6b
mov eax, dword [ebp - 0x1aa0]
cmp edx, dword [eax + 4]
jb 0x406073
ja 0x40604d
cmp ecx, dword [eax]
jb 0x406073
push 0x23b
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x34
jmp 0x405a6b
mov eax, dword [ebp - 0x1ac8]
cmp dword [ebp - 0x1aec], eax
jne 0x4066c3
mov eax, dword [ebp - 0x1adc]
cmp dword [ebp - 0x1ae8], eax
jne 0x4066c3
cmp ecx, dword [ebp + 0x34]
jne 0x40669d
cmp edx, dword [ebp + 0x38]
jne 0x40669d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00418540
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 0x4060f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40610b
mov ecx, dword [ebp - 0x1aa4]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ecx + 4]
call fcn.00412822
mov eax, dword [ebp - 0x1aa0]
mov ecx, dword [ebp - 0x1b04]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x1af0]
push dword [ebp - 0x1adc]
push dword [ebp - 0x1ac8]
push 0
push eax
call fcn.00407793
mov byte [ebp - 4], 0x37
cmp dword [ebp - 0x1af0], 0
jge 0x406160
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1af0]
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x1ae8]
jmp 0x40677d
cmp byte [ebp - 0x1b0c], 0
jne 0x4062af
mov eax, dword [ebp - 0x1aa4]
cmp dword [eax], 0x12d
je 0x406197
cmp dword [eax], 0x12e
je 0x406197
cmp dword [eax], 0x12f
je 0x406197
cmp dword [eax], 0x133
jne 0x4062af
xor eax, eax
push 0x185e
push eax
mov word [ebp - 0x1a78], ax
lea eax, [ebp - 0x1a76]
push eax
call fcn.00418540
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 0x406286
push 0x284
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 0x38
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp - 0x1ae8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1a88]
call fcn.0040e80c
lea ecx, [esi - 0x10]
call fcn.00412d0e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x406254
push edi
call esi
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, dword [ebp - 0x1a9c]
test eax, eax
je 0x40626f
push eax
call esi
test ebx, ebx
je 0x406276
push ebx
call esi
lea ecx, [ebp - 0x1b44]
call fcn.00404853
jmp 0x4067dd
mov ecx, dword [ebp - 0x1aa4]
lea eax, [ebp - 0x1a78]
push eax
lea ecx, [ecx + 8]
call fcn.00412822
mov ecx, dword [ebp - 0x1a80]
xor eax, eax
inc eax
push eax
call fcn.004129e8
jmp 0x406226
xor eax, eax
mov dword [ebp - 0x1b00], eax
mov dword [ebp - 0x1afc], eax
mov dword [ebp - 0x1af8], eax
mov dword [ebp - 0x1af4], eax
push ecx
mov edx, 0x1000
mov byte [ebp - 4], 0x39
push edx
lea ecx, [ebp - 0x1b00]
call fcn.004122da
test al, al
jne 0x406342
push 0x28c
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x3a
lea eax, [ebp - 0x1a98]
mov ecx, dword [ebp - 0x1a80]
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
cmp dword [ebp - 0x1b00], 0
je 0x406226
push dword [ebp - 0x1b00]
call fcn.00418695
pop ecx
jmp 0x406226
mov eax, dword [ebp - 0x1aa4]
xor ecx, ecx
mov dword [ebp - 0x1b0c], ecx
mov dword [ebp - 0x1ab8], ecx
mov dword [ebp - 0x1aa8], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
jmp 0x4064be
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 - 0x1b48]
sbb eax, eax
mov dword [ebp - 0x1a7c], eax
js 0x4063d8
jg 0x4063a4
mov eax, 0x3e8
cmp ecx, eax
jbe 0x4063d8
mov eax, dword [ebp - 0x1ab8]
mov edx, 0x3e8
push dword [ebp - 0x1a7c]
mul edx
push ecx
push edx
push eax
call fcn.0041e2e0
and dword [ebp - 0x1ab8], 0
mov dword [ebp - 0x1b0c], eax
mov eax, dword [ebp - 0x1a84]
mov dword [ebp - 0x1b48], eax
cmp dword [ebp - 0x1aa8], 0
je 0x40662c
push dword [ebp - 0x1aa8]
push ecx
lea ecx, [ebp - 0x1b00]
call fcn.0040f8fd
mov edx, dword [ebp - 0x1aa4]
mov ecx, dword [ebp - 0x1ac8]
push eax
mov eax, dword [ebp - 0x1adc]
add ecx, dword [edx + 0x20]
adc eax, dword [edx + 0x24]
push eax
push ecx
mov ecx, dword [ebp - 0x1b04]
lea eax, [ebp - 0x1ad8]
push eax
call fcn.004078cf
mov edx, dword [ebp - 0x1aa4]
mov byte [ebp - 4], 0x3c
mov eax, dword [ebp - 0x1aa8]
add dword [edx + 0x20], eax
adc dword [edx + 0x24], 0
cmp dword [ebp - 0x1ad8], 0
jl 0x40658e
push dword [edx + 0x34]
mov ecx, dword [ebp - 0x1ac8]
add ecx, dword [edx + 0x20]
push dword [edx + 0x30]
mov eax, dword [ebp - 0x1adc]
adc eax, dword [edx + 0x24]
push eax
push ecx
push dword [ebp - 0x1b0c]
mov ecx, dword [ebp - 0x1b04]
lea eax, [ebp - 0x1a98]
push eax
call fcn.00407793
push eax
lea ecx, [ebp - 0x1ad8]
mov byte [ebp - 4], 0x3d
call fcn.00406889
mov byte [ebp - 4], 0x3c
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
cmp dword [ebp - 0x1ad8], 0
jl 0x40650e
mov byte [ebp - 4], 0x39
mov ecx, dword [ebp - 0x1ad0]
add ecx, 0xfffffff0
call fcn.00412d0e
and dword [ebp - 0x1aa8], 0
lea eax, [ebp - 0x1aa8]
push eax
push dword [ebp - 0x1afc]
push ecx
lea ecx, [ebp - 0x1b00]
call fcn.0040f8fd
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x406367
push 0x298
call fcn.00412501
push eax
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x3b
jmp 0x40630a
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1ad8]
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x1ad0]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1b00]
call fcn.0040f913
mov ecx, dword [ebp - 0x1ae8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1a88]
call fcn.0040e80c
lea ecx, [esi - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1ac0]
call fcn.0040e7f7
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1a9c]
call fcn.0040e7f7
lea ecx, [ebp - 0x1ac4]
call fcn.0040e7f7
jmp 0x406276
mov ebx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1ad8]
push eax
mov ecx, ebx
call fcn.00402671
mov ecx, dword [ebp - 0x1ad0]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1b00]
call fcn.0040f913
mov ecx, dword [ebp - 0x1ae8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1a88]
call fcn.0040e80c
lea ecx, [esi - 0x10]
call fcn.00412d0e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4065e9
push edi
call esi
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, dword [ebp - 0x1a9c]
test eax, eax
je 0x406604
push eax
call esi
lea ecx, [ebp - 0x1ac4]
call fcn.0040e7f7
lea ecx, [ebp - 0x1b44]
call fcn.00404853
mov ecx, dword [ebp + 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, ebx
jmp 0x4067ee
mov eax, dword [ebp - 0x1ab4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, ecx
or eax, edx
je 0x40668b
mov eax, dword [ebp - 0x1aa4]
cmp dword [eax + 0x20], ecx
jne 0x40664d
cmp dword [eax + 0x24], edx
je 0x40668b
push 0x2c5
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov ecx, dword [ebp - 0x1a80]
lea eax, [ebp - 0x1a98]
push eax
mov byte [ebp - 4], 0x3e
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
jmp 0x406526
mov ecx, dword [ebp - 0x1a80]
push 0
call fcn.004129e8
jmp 0x40652e
push 0x23d
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x36
jmp 0x405a6b
push 0x23c
push 0x80004005
push ecx
mov ecx, esp
call fcn.00412c63
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x35
jmp 0x405a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
push 0x18f
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovs eax, ecx
push eax
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412bcd
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x23
jmp 0x405a6b
call fcn.00412501
push 0x162
push eax
push ecx
mov dword [ebp - 0x1a7c], esp
call fcn.00412bcd
mov ecx, dword [ebp - 0x1a7c]
push eax
call fcn.0040f03e
lea ecx, [ebp - 0x1a98]
call fcn.00412d2a
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x1a80]
push eax
call fcn.00402671
mov ecx, dword [ebp - 0x1a90]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea ecx, [ebp - 0x1a88]
call fcn.0040e80c
lea ecx, [esi - 0x10]
call fcn.00412d0e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4067a5
push edi
call esi
mov ecx, dword [ebp - 0x1a8c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, dword [ebp - 0x1a9c]
test eax, eax
je 0x4067c0
push eax
call esi
test ebx, ebx
je 0x4067c7
push ebx
call esi
lea ecx, [ebp - 0x1b34]
call fcn.0040f330
lea ecx, [ebp - 0x1b44]
call fcn.004047ea
mov ecx, dword [ebp + 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
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.00418039
mov esp, ebp
pop ebp
ret 0x68