Function at 0x415b20
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b81c
mov eax, dword fs:[0]
push eax
mov eax, 0x1d94
call fcn.004eaac0
mov eax, dword [0x567680]
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1d04], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x1d40], edi
mov dword [ebp - 0x1da0], edi
mov dword [ebp - 0x1d44], esi
mov dword [ebp - 0x1d14], ebx
mov dword [ebp - 0x1d1c], eax
mov dword [ebp - 0x1d4c], 0
call fcn.004183d0
add esp, 4
test al, al
je 0x415c46
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d08], eax
mov eax, str.this_module_doesnt_support_file_request
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x415bea
movzx esi, ax
push 0
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x415bfa
push esi
push eax
lea ecx, [ebp - 0x1d08]
call fcn.004082e0
jmp 0x415bfa
push str.this_module_doesnt_support_file_request
lea ecx, [ebp - 0x1d08]
call fcn.004027d0
lea eax, [ebp - 0x1d08]
push eax
push edi
mov dword [ebp - 4], 2
call fcn.00415210
add esp, 8
mov esi, dword [ebp - 0x1d08]
add esi, 0xfffffff0
mov dword [ebp - 0x1d4c], 1
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415c3f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x417da5
test esi, esi
jne 0x415ca0
push str.InternetOpen_Failed
lea ecx, [ebp - 0x1d04]
call fcn.00401ba0
push eax
push edi
mov dword [ebp - 4], 3
call fcn.00415210
mov edx, dword [ebp - 0x1d04]
add edx, 0xfffffff0
add esp, 8
mov dword [ebp - 0x1d4c], 1
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415c3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x417da5
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d10], eax
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
mov dword [ebp - 4], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d24], eax
push 0x51acd8
mov ecx, ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x1d00], 0
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1d18]
push eax
call fcn.00493440
lea eax, [ebp - 0x1d00]
push eax
lea eax, [ebp - 0x1d24]
push eax
lea eax, [ebp - 0x1d10]
push eax
lea eax, [ebp - 0x1d18]
push eax
mov byte [ebp - 4], 6
call fcn.00415040
movzx eax, al
add esp, 0x2c
test eax, eax
jne 0x415dee
push str.InternetCrackUrl_Failed
lea ecx, [ebp - 0x1d04]
call fcn.00401ba0
push eax
push edi
mov byte [ebp - 4], 7
call fcn.00415210
mov edx, dword [ebp - 0x1d04]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 8
mov dword [ebp - 0x1d4c], 1
mov byte [ebp - 4], 6
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x415d8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d18]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415daf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d24]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415dd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jmp 0x415c8f
push str.redirectCheck
mov ecx, ebx
mov byte [ebp - 0x1d1d], 0
call fcn.0046d1f0
test al, al
je 0x415e35
push str.redirectCheck
mov ecx, ebx
call fcn.0046c070
mov ecx, eax
call fcn.0046d170
test al, al
je 0x415e35
push str.redirectCheck
mov ecx, ebx
call fcn.0046c070
mov ecx, eax
call fcn.0046c5e0
mov byte [ebp - 0x1d1d], al
lea eax, [ebp - 0x1cfc]
push eax
lea eax, [ebp - 0x1ced]
push eax
mov eax, dword [ebp - 0x1d18]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 0x1ced], 0
mov dword [ebp - 0x1cfc], 0x50
call fcn.00405030
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00414f50
add esp, 0xc
mov ecx, ebx
push str.port
call fcn.0046c070
mov ecx, eax
call fcn.0046d1c0
test al, al
je 0x415ea4
push str.port
mov ecx, ebx
call fcn.0046c070
mov ecx, eax
call fcn.0046c720
mov esi, eax
jmp 0x415eb3
mov esi, dword [ebp - 0x1d00]
test esi, esi
cmove esi, dword [ebp - 0x1cfc]
push esi
lea eax, [ebp - 0x1d10]
push eax
push dword [ebp - 0x1d04]
mov dword [ebp - 0x1d00], esi
mov byte [ebp - 0x1cf5], 0
call fcn.00414e70
add esp, 0xc
mov dword [ebp - 0x1d08], eax
test eax, eax
jne 0x4160d1
mov eax, dword [0x568fc4]
test eax, eax
jne 0x415fb8
push str.Wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x415f1c
push str.InternetConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [ebp - 0x1cfc], ecx
mov dword [0x568fc4], ecx
jmp 0x415f27
mov eax, dword [0x568fc4]
mov dword [ebp - 0x1cfc], eax
mov eax, dword [0x568ad4]
imul eax, eax
cdq
mov ecx, 0x11
idiv ecx
cmp edx, 5
jne 0x415fae
xor eax, eax
push 0x11fe
push eax
mov word [ebp - 0x1c08], ax
lea eax, [ebp - 0x1c06]
push eax
call fcn.004eaaf0
add esp, 0xc
xor ebx, ebx
xor esi, esi
mov edi, edi
xor edx, edx
test ebx, ebx
je 0x415f8a
test edx, edx
je 0x415f8a
lea eax, [esi + edx]
lea ecx, [ebp - 0x1c08]
lea ecx, [ecx + eax*2]
lea eax, [esi + edx]
mov ax, word [ebp + eax*2 - 0x1c68]
inc ax
add ax, word [ecx - 2]
mov word [ecx], ax
inc edx
cmp edx, 0x30
jl 0x415f62
add esi, 0x30
inc ebx
cmp esi, 0x900
jl 0x415f60
movsx eax, word [ebp - 0xa0a]
mov esi, dword [ebp - 0x1d00]
mov dword [0x568ad4], eax
mov eax, dword [ebp - 0x1cfc]
test eax, eax
je 0x415ff6
mov ebx, dword [ebp - 0x1d10]
push 0
push 0
push 3
push 0
push 0
push esi
push ebx
push dword [ebp - 0x1d44]
call eax
mov dword [ebp - 0x1d08], eax
test eax, eax
je 0x415ffc
mov ecx, dword [ebp - 0x1d1c]
test ecx, ecx
jne 0x4160b6
mov byte [ebp - 0x1cf5], 1
jmp 0x4160cb
mov ebx, dword [ebp - 0x1d10]
push str.InternetConnect_Failed
lea ecx, [ebp - 0x1d04]
call fcn.00401ba0
push eax
push edi
mov byte [ebp - 4], 8
call fcn.00415210
mov edx, dword [ebp - 0x1d04]
add edx, 0xfffffff0
or esi, 0xffffffff
add esp, 8
mov dword [ebp - 0x1d4c], 1
mov byte [ebp - 4], 6
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41604a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d18]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41606d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d24]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416090
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x415c3f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x417da5
push eax
push esi
lea eax, [ebp - 0x1d10]
push eax
push dword [ebp + 0x1c]
push ecx
call fcn.004185b0
add esp, 0x14
mov ebx, dword [ebp - 0x1d14]
cmp byte [ebp - 0x1d1d], 0
mov eax, 0x80400200
mov ecx, 0x80600200
cmovne eax, ecx
or eax, 0xc000
cmp byte [ebp - 0x1ced], 0
mov dword [ebp - 0x1d00], eax
je 0x416104
or eax, 0x803080
mov dword [ebp - 0x1d00], eax
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d2c], eax
push str.method
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
or esi, 0xffffffff
test al, al
je 0x416198
push str.method
mov ecx, ebx
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1d04]
push eax
call fcn.00493440
add esp, 0x1c
push eax
lea ecx, [ebp - 0x1d2c]
mov byte [ebp - 4], 0xa
call fcn.004026d0
mov edx, dword [ebp - 0x1d04]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416198
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1d38], ebx
mov edi, dword [ebp - 0x1d14]
push str.version
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x416235
push str.version
mov ecx, edi
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1d04]
push eax
call fcn.00493440
add esp, 0x1c
push eax
lea ecx, [ebp - 0x1d38]
mov byte [ebp - 4], 0xc
call fcn.004026d0
mov edx, dword [ebp - 0x1d04]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41622f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1d38]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1d3c], edi
mov ecx, dword [ebp - 0x1d14]
push str.referer
mov byte [ebp - 4], 0xd
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x4162d4
mov ecx, dword [ebp - 0x1d14]
push str.referer
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1d04]
push eax
call fcn.00493440
add esp, 0x1c
push eax
lea ecx, [ebp - 0x1d3c]
mov byte [ebp - 4], 0xe
call fcn.004026d0
mov edx, dword [ebp - 0x1d04]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4162ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x1d3c]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1d30], esi
mov ecx, dword [ebp - 0x1d14]
push str.acceptTypes
mov byte [ebp - 4], 0xf
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x416374
mov ecx, dword [ebp - 0x1d14]
push str.acceptTypes
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1d04]
push eax
call fcn.00493440
add esp, 0x1c
push eax
lea ecx, [ebp - 0x1d30]
mov byte [ebp - 4], 0x10
call fcn.004026d0
mov edx, dword [ebp - 0x1d04]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41636e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1d30]
xor ecx, ecx
cmp dword [esi - 0xc], ecx
mov dword [ebp - 0x1d98], ecx
mov eax, esi
cmove eax, ecx
mov dword [ebp - 0x1d9c], eax
cmp dword [edi - 0xc], ecx
mov eax, edi
cmove eax, ecx
mov dword [ebp - 0x1d44], eax
xor eax, eax
cmp dword [ebx - 0xc], eax
push 1
push dword [ebp - 0x1d00]
mov edx, ebx
cmove edx, eax
mov eax, dword [ebp - 0x1d2c]
mov ecx, eax
cmp dword [eax - 0xc], 0
lea eax, [ebp - 0x1d9c]
push eax
push dword [ebp - 0x1d44]
mov dword [ebp - 0x1d04], 0
cmove ecx, dword [ebp - 0x1d04]
push edx
push dword [ebp - 0x1d24]
push ecx
push dword [ebp - 0x1d08]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x1cfc], eax
test eax, eax
jne 0x416536
push str.HttpOpenRequest_Failed
lea ecx, [ebp - 0x1d04]
call fcn.00401ba0
push eax
push dword [ebp - 0x1d40]
mov byte [ebp - 4], 0x11
call fcn.00415210
mov edx, dword [ebp - 0x1d04]
add edx, 0xfffffff0
add esp, 8
mov dword [ebp - 0x1d4c], 1
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416447
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416467
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416484
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4164a1
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4164c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d18]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4164e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d24]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41650a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1d10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x41652b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1d40]
jmp 0x417da5
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1d28], esi
mov ebx, dword [ebp - 0x1d14]
push str.contentType
mov ecx, ebx
mov byte [ebp - 4], 0x12
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x416649
push 0x51aeb8
lea ecx, [ebp - 0x1d00]
call fcn.00401c30
lea eax, [ebp - 0x1d00]
push eax
push str.contentType
mov ecx, ebx
mov byte [ebp - 4], 0x13
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1cf4]
push eax
call fcn.00493440
add esp, 0x1c
mov esi, eax
push str.Content_Type:
lea ecx, [ebp - 0x1d1c]
mov byte [ebp - 4], 0x14
call fcn.00401ba0
push esi
push eax
lea eax, [ebp - 0x1d44]
push eax
mov byte [ebp - 4], 0x15
call fcn.00467f20
add esp, 0xc
push eax
lea eax, [ebp - 0x1d04]
push eax
mov byte [ebp - 4], 0x16
call fcn.00467f20
add esp, 0xc
push eax
lea ecx, [ebp - 0x1d28]
mov byte [ebp - 4], 0x17
call fcn.004026d0
lea ecx, [ebp - 0x1d04]
call fcn.004020a0
lea ecx, [ebp - 0x1d44]
call fcn.004020a0
lea ecx, [ebp - 0x1d1c]
call fcn.004020a0
lea ecx, [ebp - 0x1cf4]
call fcn.004020a0
lea ecx, [ebp - 0x1d00]
mov byte [ebp - 4], 0x12
call fcn.004020a0
mov esi, dword [ebp - 0x1d28]
push str.additionalRequestHeaders
mov ecx, ebx
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x4166ee
push str.additionalRequestHeaders
mov ecx, ebx
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1cf4]
push eax
call fcn.00493440
add esp, 0x1c
mov eax, dword [eax]
lea ecx, [ebp - 0x1d28]
push dword [eax - 0xc]
mov byte [ebp - 4], 0x18
push eax
call fcn.00402f20
lea ecx, [ebp - 0x1cf4]
mov byte [ebp - 4], 0x12
call fcn.004020a0
mov esi, dword [ebp - 0x1d28]
lea eax, [esi - 0x10]
push eax
call fcn.00405030
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1d00], eax
lea ecx, [ebp - 0x1d00]
mov byte [ebp - 4], 0x19
call fcn.00418690
lea ecx, [ebp - 0x1d00]
mov byte [ebp - 4], 0x12
call fcn.004020a0
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1d1c], edi
push str.postData
mov ecx, ebx
mov byte [ebp - 4], 0x1a
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x416771
push str.postData
mov ecx, ebx
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1cf4]
push eax
call fcn.00493440
add esp, 0x1c
push eax
lea ecx, [ebp - 0x1d1c]
mov byte [ebp - 4], 0x1b
call fcn.004026d0
lea ecx, [ebp - 0x1cf4]
mov byte [ebp - 4], 0x1a
call fcn.004020a0
mov edi, dword [ebp - 0x1d1c]
push edi
lea ecx, [ebp - 0x1d34]
call fcn.00401b10
cmp byte [ebp - 0x1d1d], 0
mov eax, dword [edi - 0xc]
mov ebx, dword [ebp - 0x1cfc]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x1cf4], eax
je 0x4167c5
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x1d00]
push eax
push 6
push ebx
mov dword [ebp - 0x1d00], 0x2710
call edi
push 4
lea eax, [ebp - 0x1d00]
push eax
push 5
push ebx
call edi
xor eax, eax
cmp dword [esi - 0xc], eax
lea edi, [esi - 0xc]
cmove esi, eax
mov eax, dword [ebp - 0x1d34]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x4167f8
push 0
lea ecx, [ebp - 0x1d34]
call fcn.00408460
mov eax, dword [ebp - 0x1d34]
push dword [ebp - 0x1cf4]
push eax
push dword [edi]
push esi
push ebx
call fcn.00411f10
push eax
call fcn.00420e10
test eax, eax
jne 0x4168bf
lea eax, [ebp - 0x1d00]
push eax
call fcn.00412b40
add esp, 4
mov byte [ebp - 4], 0x1d
call fcn.00418c10
test al, al
jne 0x416848
call fcn.004e9fd1
mov ecx, dword [0x568ad4]
cmp ecx, eax
jne 0x416848
dec ecx
mov dword [0x568ad4], ecx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x416862
push dword [ebp - 0x1d08]
call esi
push str.HttpSendRequest_Failed_with:
lea ecx, [ebp - 0x1d04]
call fcn.00401ba0
lea ecx, [ebp - 0x1d00]
push ecx
push eax
lea eax, [ebp - 0x1cf4]
push eax
mov byte [ebp - 4], 0x1e
call fcn.00467f20
mov ebx, dword [ebp - 0x1d40]
push eax
push ebx
mov byte [ebp - 4], 0x1f
call fcn.00415210
add esp, 0x14
lea ecx, [ebp - 0x1cf4]
call fcn.004020a0
lea ecx, [ebp - 0x1d04]
call fcn.004020a0
lea ecx, [ebp - 0x1d00]
jmp 0x417d30
mov esi, dword [ebp - 0x1d14]
push esi
call fcn.00418570
add esp, 4
test al, al
jne 0x416ae4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x4168f0
push dword [ebp - 0x1d08]
call esi
push 0
lea ecx, [ebp - 0x1d6c]
call fcn.0046b9e0
mov byte [ebp - 4], 0x20
call fcn.00418bb0
mov ecx, dword [0x568f8c]
mov edx, 0xbe92b4f
test al, al
cmove ecx, edx
mov dword [0x568f8c], ecx
push 1
lea ecx, [ebp - 0x1d5c]
call fcn.0046bae0
lea eax, [ebp - 0x1d5c]
push eax
push str.result
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x21
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d5c]
mov byte [ebp - 4], 0x20
call fcn.0046bd00
push str.no_response_needed
lea ecx, [ebp - 0x1d5c]
call fcn.0046b9a0
lea eax, [ebp - 0x1d5c]
push eax
push str.content
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x22
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d5c]
mov byte [ebp - 4], 0x20
call fcn.0046bd00
call fcn.00418b50
test al, al
jne 0x416a40
mov ecx, dword [0x568ad4]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1cf4], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1d04], eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x1d44], eax
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1cfc], 0
mov dword [ebp - 0x1d00], eax
lea ecx, [ebp - 0xa07]
jmp 0x416a10
mov eax, dword [0x568ad4]
mov bl, al
sub bl, byte [ebp - 0x1cfc]
mov esi, 1
mov edi, 9
add ecx, 5
inc esi
dec edi
jne 0x416a27
mov eax, dword [ebp - 0x1cfc]
inc eax
mov dword [ebp - 0x1cfc], eax
cmp eax, 0xb
jl 0x416a10
mov ecx, dword [ebp - 0x1d40]
lea eax, [ebp - 0x1d6c]
push eax
call fcn.0046b770
lea ecx, [ebp - 0x1d6c]
mov dword [ebp - 0x1d4c], 1
mov byte [ebp - 4], 0x1c
call fcn.0046bd00
lea ecx, [ebp - 0x1d34]
call fcn.004020a0
lea ecx, [ebp - 0x1d1c]
call fcn.004020a0
lea ecx, [ebp - 0x1d28]
call fcn.004020a0
lea ecx, [ebp - 0x1d30]
call fcn.004020a0
lea ecx, [ebp - 0x1d3c]
call fcn.004020a0
lea ecx, [ebp - 0x1d38]
call fcn.004020a0
lea ecx, [ebp - 0x1d2c]
call fcn.004020a0
lea ecx, [ebp - 0x1d18]
call fcn.004020a0
lea ecx, [ebp - 0x1d24]
call fcn.004020a0
lea ecx, [ebp - 0x1d10]
call fcn.004020a0
mov eax, dword [ebp - 0x1d40]
jmp 0x417da5
push 0x400
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.004eaaf0
add esp, 0xc
mov dword [ebp - 0x1d90], 0x400
push str.Wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x416b63
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x416b34
push dword [ebp - 0x1d08]
call esi
push str.HttpQueryInfo_Failed
lea ecx, [ebp - 0x1cf4]
call fcn.00401ba0
mov byte [ebp - 4], 0x23
mov ebx, dword [ebp - 0x1d40]
push eax
push ebx
call fcn.00415210
add esp, 8
lea ecx, [ebp - 0x1cf4]
jmp 0x417d30
push str.HttpQueryInfoA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x416ba3
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x416b8d
push dword [ebp - 0x1d08]
call esi
push str.HttpQueryInfo_Failed
lea ecx, [ebp - 0x1cf4]
call fcn.00401ba0
mov byte [ebp - 4], 0x24
jmp 0x416b48
push 0
lea ecx, [ebp - 0x1d90]
push ecx
lea ecx, [ebp - 0x414]
push ecx
push 0x13
push ebx
call eax
test eax, eax
jne 0x416bef
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x416bd6
push dword [ebp - 0x1d08]
call esi
push str.HttpQueryInfo_Failed
lea ecx, [ebp - 0x1cf4]
call fcn.00401ba0
mov byte [ebp - 4], 0x25
jmp 0x416b48
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x1d0c]
call fcn.00410820
push str.acceptedStatusCodes
mov ecx, esi
mov byte [ebp - 4], 0x26
call fcn.0046c070
mov edi, eax
mov ecx, edi
call fcn.0046d150
mov ecx, edi
test al, al
je 0x416d30
xor esi, esi
call fcn.0046d7a0
test eax, eax
jle 0x416ecd
push esi
mov ecx, edi
call fcn.0046bfd0
mov ecx, eax
call fcn.0046d270
push esi
mov ecx, edi
test al, al
je 0x416c84
call fcn.0046bfd0
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1cf4]
push eax
call fcn.00493440
push eax
lea eax, [ebp - 0x1d0c]
push eax
call fcn.00402920
add esp, 0x24
lea ecx, [ebp - 0x1cf4]
jmp 0x416d03
call fcn.0046bfd0
mov ecx, eax
call fcn.0046d1c0
test al, al
je 0x416d1b
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d00], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 0x27
call fcn.0046bfd0
mov ecx, eax
call fcn.0046c720
push eax
lea eax, [ebp - 0x1d00]
push eax
lea eax, [ebp - 0x1cfc]
push eax
call fcn.00467fa0
add esp, 0xc
lea ecx, [ebp - 0x1d00]
mov byte [ebp - 4], 0x26
call fcn.004020a0
lea eax, [ebp - 0x1cfc]
push eax
lea eax, [ebp - 0x1d0c]
push eax
call fcn.00402920
add esp, 8
lea ecx, [ebp - 0x1cfc]
mov byte [ebp - 0x1ced], al
call fcn.004020a0
cmp byte [ebp - 0x1ced], 0
jne 0x416f47
mov ecx, edi
inc esi
call fcn.0046d7a0
cmp esi, eax
jl 0x416c33
jmp 0x416ecd
call fcn.0046d240
test al, al
je 0x416eb5
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x1d04], esi
call fcn.0046d7a0
test eax, eax
jle 0x416ecd
jmp 0x416d60
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1cfc], eax
push esi
lea eax, [ebp - 0x1cfc]
push 0x517084
push eax
mov byte [ebp - 4], 0x28
call fcn.00415550
mov esi, dword [ebp - 0x1cfc]
add esp, 0xc
mov ecx, edi
push esi
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
push esi
mov ecx, edi
test al, al
je 0x416de6
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1cf4]
push eax
call fcn.00493440
push eax
lea eax, [ebp - 0x1d0c]
push eax
call fcn.00402920
add esp, 0x24
lea ecx, [ebp - 0x1cf4]
jmp 0x416e5d
call fcn.0046c070
mov ecx, eax
call fcn.0046d1c0
test al, al
je 0x416e71
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d00], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 0x29
call fcn.0046c070
mov ecx, eax
call fcn.0046c720
push eax
lea eax, [ebp - 0x1d00]
push eax
lea eax, [ebp - 0x1d44]
push eax
call fcn.00467fa0
add esp, 0xc
lea ecx, [ebp - 0x1d00]
call fcn.004020a0
lea eax, [ebp - 0x1d44]
push eax
lea eax, [ebp - 0x1d0c]
push eax
call fcn.00402920
add esp, 8
lea ecx, [ebp - 0x1d44]
mov byte [ebp - 0x1ced], al
call fcn.004020a0
cmp byte [ebp - 0x1ced], 0
jne 0x416e9e
lea ecx, [ebp - 0x1cfc]
mov byte [ebp - 4], 0x26
call fcn.004020a0
mov esi, dword [ebp - 0x1d04]
inc esi
mov ecx, edi
mov dword [ebp - 0x1d04], esi
call fcn.0046d7a0
cmp esi, eax
jl 0x416d60
jmp 0x416ecd
lea ecx, [ebp - 0x1cfc]
mov byte [ebp - 4], 0x26
call fcn.004020a0
mov al, byte [ebp - 0x1ced]
jmp 0x416ec9
lea eax, [ebp - 0x1d0c]
push 0x51af38
push eax
call fcn.00402980
add esp, 8
test al, al
jne 0x416f47
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x416ee7
push dword [ebp - 0x1d08]
call esi
push 3
push dword [ebp - 0x1d0c]
lea eax, [ebp - 0x1ce8]
lea ecx, [ebp - 0x1cec]
mov dword [ebp - 0x1cec], eax
call fcn.00406b80
push dword [ebp - 0x1cec]
mov byte [ebp - 4], 0x2a
call fcn.004e9fb4
mov ebx, dword [ebp - 0x1d40]
push eax
push ebx
call fcn.00415390
mov eax, dword [ebp - 0x1cec]
lea ecx, [ebp - 0x1ce8]
add esp, 0xc
cmp eax, ecx
je 0x417d2a
push eax
call fcn.004ea042
add esp, 4
jmp 0x417d2a
push 0
lea eax, [ebp - 0x1d7c]
push eax
push 0
push 0x16
push ebx
mov dword [ebp - 0x1d7c], 0
call fcn.00418c40
mov eax, dword [0x5671f0]
add esp, 0x14
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d48], eax
mov eax, dword [ebp - 0x1d7c]
mov byte [ebp - 4], 0x2b
test eax, eax
je 0x416ffc
push eax
call fcn.004e8060
mov esi, eax
add esp, 4
test esi, esi
je 0x416ffc
push str.Wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x416fc8
push str.HttpQueryInfoA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416fc8
push 0
lea ecx, [ebp - 0x1d7c]
push ecx
push esi
push 0x16
push ebx
call eax
push esi
lea ecx, [ebp - 0x1cf4]
call fcn.00410820
push eax
lea ecx, [ebp - 0x1d48]
mov byte [ebp - 4], 0x2c
call fcn.004026d0
lea ecx, [ebp - 0x1cf4]
mov byte [ebp - 4], 0x2b
call fcn.004020a0
push esi
call fcn.004e8ec3
add esp, 4
cmp byte [ebp - 0x1d1d], 0
je 0x417401
push 0
lea ecx, [ebp - 0x1d6c]
call fcn.0046b9e0
lea eax, [ebp - 0x1d0c]
push 0x51af40
push eax
mov byte [ebp - 4], 0x2d
call fcn.00402a40
add esp, 8
test al, al
je 0x4170c4
lea eax, [ebp - 0x1d0c]
push 0x51af48
push eax
call fcn.00402a40
add esp, 8
test al, al
je 0x4170c4
lea eax, [ebp - 0x1d0c]
push 0x51af50
push eax
call fcn.00402a40
add esp, 8
test al, al
je 0x4170c4
lea eax, [ebp - 0x1d0c]
push 0x51af58
push eax
call fcn.00402a40
add esp, 8
test al, al
je 0x4170c4
mov ecx, dword [ebp - 0x1d40]
lea eax, [ebp - 0x1d6c]
push eax
call fcn.0046b770
lea ecx, [ebp - 0x1d6c]
mov dword [ebp - 0x1d4c], 1
mov byte [ebp - 4], 0x2b
call fcn.0046bd00
lea ecx, [ebp - 0x1d48]
call fcn.004020a0
lea ecx, [ebp - 0x1d0c]
call fcn.004020a0
jmp 0x416a6b
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d08], eax
mov eax, dword [ebp - 0x1d48]
add eax, 0xfffffff0
push eax
mov byte [ebp - 4], 0x2e
call fcn.00405030
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1d14], eax
lea ecx, [ebp - 0x1d14]
mov byte [ebp - 4], 0x2f
call fcn.004107c0
mov esi, dword [ebp - 0x1d14]
cmp dword [esi - 0xc], 0
jl 0x4173a5
push str.location:
push esi
call fcn.004ea1ea
mov edi, eax
add esp, 8
test edi, edi
je 0x4173a5
sub edi, esi
sar edi, 1
cmp edi, 0xffffffff
je 0x4173a5
push edi
push 0x51aeb8
lea ecx, [ebp - 0x1d14]
call fcn.004051e0
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x1cf4]
push eax
lea ecx, [ebp - 0x1d14]
call fcn.004083b0
push eax
lea ecx, [ebp - 0x1d08]
mov byte [ebp - 4], 0x30
call fcn.004026d0
lea ecx, [ebp - 0x1cf4]
mov byte [ebp - 4], 0x2f
call fcn.004020a0
mov eax, dword [ebp - 0x1d08]
cmp dword [eax - 0xc], 0
jl 0x4173a5
push str.http
push eax
call fcn.004ea1ea
mov edx, eax
add esp, 8
test edx, edx
je 0x4173a5
mov ecx, dword [ebp - 0x1d08]
sub edx, ecx
sar edx, 1
cmp edx, 0xffffffff
je 0x4173a5
mov eax, dword [ecx - 0xc]
sub eax, edx
push eax
lea eax, [ebp - 0x1cf4]
push eax
lea ecx, [ebp - 0x1d08]
call fcn.004090f0
push eax
lea ecx, [ebp - 0x1d08]
mov byte [ebp - 4], 0x31
call fcn.004026d0
lea ecx, [ebp - 0x1cf4]
mov byte [ebp - 4], 0x2f
call fcn.004020a0
push 1
lea ecx, [ebp - 0x1d5c]
call fcn.0046bae0
lea eax, [ebp - 0x1d5c]
push eax
push str.urlRedirected
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x32
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d5c]
mov byte [ebp - 4], 0x2f
call fcn.0046bd00
lea eax, [ebp - 0x1d18]
push eax
lea eax, [ebp - 0x1c20]
push eax
call fcn.00493510
add esp, 8
push eax
lea ecx, [ebp - 0x1d5c]
mov byte [ebp - 4], 0x33
call fcn.0046b8d0
lea eax, [ebp - 0x1d5c]
push eax
push str.requestUrl
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x34
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d5c]
mov byte [ebp - 4], 0x33
call fcn.0046bd00
lea ecx, [ebp - 0x1c20]
mov byte [ebp - 4], 0x2f
call fcn.00491090
lea eax, [ebp - 0x1d08]
push eax
lea eax, [ebp - 0x1c38]
push eax
call fcn.00493510
add esp, 8
push eax
lea ecx, [ebp - 0x1d5c]
mov byte [ebp - 4], 0x35
call fcn.0046b8d0
lea eax, [ebp - 0x1d5c]
push eax
push str.redirectUrl
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x36
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d5c]
mov byte [ebp - 4], 0x35
call fcn.0046bd00
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x1c38]
call fcn.00491090
mov esi, dword [0x568ad4]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 0xc
jne 0x417337
lea ecx, [edx - 0xb]
cmp esi, ecx
jle 0x417331
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x417325
mov dword [0x568ad4], ecx
mov eax, dword [ebp - 0x1d0c]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x41735f
push 0
lea ecx, [ebp - 0x1d0c]
call fcn.004084d0
mov eax, dword [ebp - 0x1d0c]
push eax
call fcn.004ea0e3
add esp, 4
lea ecx, [ebp - 0x1d5c]
push eax
call fcn.0046b940
lea eax, [ebp - 0x1d5c]
push eax
push str.statusCode
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x37
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d5c]
mov byte [ebp - 4], 0x2f
call fcn.0046bd00
mov ecx, dword [ebp - 0x1d40]
lea eax, [ebp - 0x1d6c]
push eax
call fcn.0046b770
lea ecx, [ebp - 0x1d14]
mov dword [ebp - 0x1d4c], 1
call fcn.004020a0
lea ecx, [ebp - 0x1d08]
call fcn.004020a0
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x2b
call fcn.0046bd00
lea ecx, [ebp - 0x1d48]
call fcn.004020a0
lea ecx, [ebp - 0x1d0c]
call fcn.004020a0
jmp 0x416a6b
xor eax, eax
xor esi, esi
mov dword [ebp - 0x1d58], eax
mov dword [ebp - 0x1d54], esi
mov dword [ebp - 0x1d50], eax
mov byte [ebp - 4], 0x38
mov dword [ebp - 0x1d78], esi
mov dword [ebp - 0x1cf4], 0x14
jmp 0x417430
sub esi, eax
lea ecx, [ebp - 0x1d58]
lea eax, [esi + 0x400]
push eax
call fcn.00411e90
mov eax, dword [ebp - 0x1d58]
lea ecx, [ebp - 0x1d78]
push ecx
add eax, esi
push 0x400
push eax
push ebx
mov dword [ebp - 0x1d78], 0
call fcn.00411f10
push eax
call fcn.00420f10
mov ecx, dword [0x568ad4]
mov edi, eax
mov eax, ecx
imul eax, ecx
cdq
idiv dword [ebp - 0x1cf4]
cmp edx, 0xa
jne 0x4174b1
mov eax, ecx
sub eax, 0
je 0x4174a7
dec eax
je 0x41749b
inc ecx
mov dword [0x568ad4], ecx
jmp 0x4174b1
mov dword [0x568ad4], 0
jmp 0x4174b1
mov dword [0x568ad4], 2
test edi, edi
je 0x417ccb
mov eax, dword [ebp - 0x1d78]
add eax, esi
push eax
lea ecx, [ebp - 0x1d58]
call fcn.00411e90
cmp dword [ebp - 0x1d78], 0
je 0x4174e7
mov esi, dword [ebp - 0x1d54]
mov eax, dword [ebp - 0x1d58]
jmp 0x417430
push 0x400
lea eax, [ebp - 0x817]
push 0
push eax
mov byte [ebp - 0x818], 0
call fcn.004eaaf0
add esp, 0xc
mov dword [ebp - 0x1d94], 0x400
push str.Wininet.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41752d
push str.HttpQueryInfoA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0
lea eax, [ebp - 0x1d94]
push eax
lea eax, [ebp - 0x818]
push eax
push 0x1d
push ebx
call esi
test eax, eax
je 0x417648
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x1cfc]
call fcn.00410820
lea eax, [ebp - 0x1cfc]
push str.gzip
push eax
call fcn.00402980
add esp, 8
test al, al
je 0x417639
mov dword [ebp - 0x1d68], 0
mov dword [ebp - 0x1d64], 0
mov dword [ebp - 0x1d60], 0
mov eax, dword [ebp - 0x1d58]
mov ecx, dword [ebp - 0x1d54]
lea edx, [ebp - 0x1d68]
push edx
sub ecx, eax
push ecx
push eax
mov byte [ebp - 4], 0x3b
call fcn.00418a00
add esp, 0xc
test eax, eax
jne 0x41761c
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x4175d7
push dword [ebp - 0x1d08]
call esi
push str.gzip_decompressing_error
lea ecx, [ebp - 0x1cf4]
call fcn.00401ba0
mov ebx, dword [ebp - 0x1d40]
push eax
push ebx
mov byte [ebp - 4], 0x3c
call fcn.00415210
add esp, 8
lea ecx, [ebp - 0x1cf4]
call fcn.004020a0
lea ecx, [ebp - 0x1d68]
call fcn.00410880
lea ecx, [ebp - 0x1cfc]
jmp 0x417d0f
lea eax, [ebp - 0x1d68]
push eax
lea ecx, [ebp - 0x1d58]
call fcn.00414d90
lea ecx, [ebp - 0x1d68]
call fcn.00410880
lea ecx, [ebp - 0x1cfc]
mov byte [ebp - 4], 0x38
call fcn.004020a0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x417662
push dword [ebp - 0x1d08]
call esi
mov esi, dword [ebp - 0x1d14]
xor bl, bl
push str.responseType
mov ecx, esi
mov byte [ebp - 0x1ced], 0
mov dword [ebp - 0x1d04], ebx
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x41770b
push str.responseType
mov ecx, esi
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1cfc]
push eax
call fcn.00493440
lea eax, [ebp - 0x1cfc]
push str.base64
push eax
call fcn.00402980
add esp, 0x24
test al, al
je 0x4176d9
mov byte [ebp - 0x1ced], 1
jmp 0x417700
lea eax, [ebp - 0x1cfc]
push str.binary
push eax
call fcn.00402980
add esp, 8
movzx ebx, bl
test al, al
mov eax, 1
cmovne ebx, eax
mov dword [ebp - 0x1d04], ebx
lea ecx, [ebp - 0x1cfc]
call fcn.004020a0
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d70], eax
cmp byte [ebp - 0x1ced], 0
mov edi, dword [ebp - 0x1d58]
mov byte [ebp - 4], 0x3d
je 0x4177db
mov eax, dword [ebp - 0x1d54]
sub eax, edi
push eax
lea eax, [ebp - 0x1cf4]
push edi
push eax
call fcn.004100b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1d70]
mov byte [ebp - 4], 0x3e
call fcn.004026d0
lea ecx, [ebp - 0x1cf4]
mov byte [ebp - 4], 0x3d
call fcn.004020a0
lea eax, [ebp - 0x1d44]
push eax
call fcn.00414a00
push eax
lea eax, [ebp - 0x1d70]
push eax
call fcn.00402920
add esp, 0xc
lea ecx, [ebp - 0x1d44]
mov bl, al
call fcn.004020a0
test bl, bl
je 0x4178cb
push str.Base64_encdng_error
lea ecx, [ebp - 0x1cf4]
call fcn.00401ba0
mov ebx, dword [ebp - 0x1d40]
push eax
push ebx
mov byte [ebp - 4], 0x3f
call fcn.00415210
add esp, 8
lea ecx, [ebp - 0x1cf4]
call fcn.004020a0
lea ecx, [ebp - 0x1d70]
jmp 0x417d0f
test bl, bl
jne 0x4178d1
mov eax, dword [ebp - 0x1d54]
sub eax, edi
mov dword [ebp - 0x1cf4], eax
cmp byte [eax + edi - 1], bl
je 0x417813
inc eax
push eax
lea ecx, [ebp - 0x1d58]
call fcn.00411e90
mov edi, dword [ebp - 0x1d58]
mov eax, dword [ebp - 0x1cf4]
mov byte [eax + edi], bl
mov eax, dword [ebp - 0x1d54]
sub eax, edi
cmp eax, 3
jbe 0x41789e
call fcn.00418be0
test al, al
jne 0x417870
mov esi, dword [0x568ad4]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x2f4]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e8060
push eax
call fcn.004e8ec3
mov esi, dword [ebp - 0x1d14]
add esp, 8
cmp byte [edi], 0xef
jne 0x41789e
cmp byte [edi + 1], 0xbb
jne 0x41789e
cmp byte [edi + 2], 0xbf
jne 0x41789e
lea eax, [edi + 3]
push eax
push edi
lea eax, [ebp - 0x1d74]
push eax
lea ecx, [ebp - 0x1d58]
call fcn.00411d50
mov edi, dword [ebp - 0x1d58]
push edi
lea ecx, [ebp - 0x1cf4]
call fcn.00401ba0
push eax
lea ecx, [ebp - 0x1d70]
mov byte [ebp - 4], 0x40
call fcn.004026d0
lea ecx, [ebp - 0x1cf4]
mov byte [ebp - 4], 0x3d
call fcn.004020a0
jmp 0x4178d1
mov ebx, dword [ebp - 0x1d04]
push str.outputFile
mov ecx, esi
mov byte [ebp - 0x1cfc], 0
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x4179e3
push str.outputFile
mov ecx, esi
call fcn.0046c070
mov ecx, eax
call fcn.0046c650
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401010
lea eax, [ebp - 0x1d00]
push eax
call fcn.00493440
add esp, 0x1c
mov eax, dword [ebp - 0x1d00]
mov byte [ebp - 4], 0x41
cmp dword [eax - 0xc], 0
je 0x4179d4
test bl, bl
je 0x41798e
push 0x51b008
push eax
lea eax, [ebp - 0x1d08]
push eax
mov dword [ebp - 0x1d08], 0
call fcn.004ec0e5
add esp, 0xc
test eax, eax
jne 0x4179d4
mov eax, dword [ebp - 0x1d08]
test eax, eax
je 0x4179d4
push eax
mov eax, dword [ebp - 0x1d54]
sub eax, edi
push eax
push 1
push edi
call fcn.004ec42e
push dword [ebp - 0x1d08]
call fcn.004ec260
add esp, 0x14
mov byte [ebp - 0x1cfc], 1
jmp 0x4179d4
mov eax, dword [ebp - 0x1d70]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00405030
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x1d00]
push eax
call fcn.00411b70
movzx ecx, byte [ebp - 0x1cfc]
mov esi, dword [ebp - 0x1d14]
add esp, 8
test al, al
mov eax, 1
cmovne ecx, eax
mov byte [ebp - 0x1cfc], cl
lea ecx, [ebp - 0x1d00]
mov byte [ebp - 4], 0x3d
call fcn.004020a0
push 0
lea ecx, [ebp - 0x1d8c]
call fcn.0046b9e0
push 1
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x42
call fcn.0046bae0
lea eax, [ebp - 0x1d6c]
push eax
push str.result
lea ecx, [ebp - 0x1d8c]
mov byte [ebp - 4], 0x43
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x42
call fcn.0046bd00
lea eax, [ebp - 0x1d70]
push eax
push eax
call fcn.00413230
lea eax, [ebp - 0x1d70]
push eax
lea eax, [ebp - 0x1c38]
push eax
call fcn.00493510
add esp, 0x10
push eax
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x44
call fcn.0046b8d0
lea eax, [ebp - 0x1d6c]
push eax
push str.content
lea ecx, [ebp - 0x1d8c]
mov byte [ebp - 4], 0x45
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x44
call fcn.0046bd00
lea ecx, [ebp - 0x1c38]
mov byte [ebp - 4], 0x42
call fcn.00491090
lea eax, [ebp - 0x1d48]
push eax
lea eax, [ebp - 0x1c20]
push eax
call fcn.00493510
add esp, 8
push eax
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x46
call fcn.0046b8d0
lea eax, [ebp - 0x1d6c]
push eax
push str.headers
push str.additionalInfo
lea ecx, [ebp - 0x1d8c]
mov byte [ebp - 4], 0x47
call fcn.0046bf90
mov ecx, eax
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x46
call fcn.0046bd00
lea ecx, [ebp - 0x1c20]
mov byte [ebp - 4], 0x42
call fcn.00491090
lea eax, [ebp - 0x1d0c]
push eax
lea eax, [ebp - 0x1c50]
push eax
call fcn.00493510
add esp, 8
push eax
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x48
call fcn.0046b8d0
lea eax, [ebp - 0x1d6c]
push eax
push str.httpCode
push str.additionalInfo
lea ecx, [ebp - 0x1d8c]
mov byte [ebp - 4], 0x49
call fcn.0046bf90
mov ecx, eax
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x48
call fcn.0046bd00
lea ecx, [ebp - 0x1c50]
mov byte [ebp - 4], 0x42
call fcn.00491090
push str.empty
lea ecx, [ebp - 0x1c68]
call fcn.00401010
push eax
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x4a
call fcn.0046b8d0
lea eax, [ebp - 0x1d6c]
push eax
push str.noData
lea ecx, [ebp - 0x1d8c]
mov byte [ebp - 4], 0x4b
call fcn.0046bf90
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x4a
call fcn.0046bd00
lea ecx, [ebp - 0x1c68]
mov byte [ebp - 4], 0x42
call fcn.00491090
push str.outputFile
mov ecx, esi
call fcn.0046c070
mov ecx, eax
call fcn.0046d270
test al, al
je 0x417c85
push dword [ebp - 0x1cfc]
lea ecx, [ebp - 0x1d6c]
call fcn.0046bae0
push str.outputFi
lea ecx, [ebp - 0x1c50]
mov byte [ebp - 4], 0x4c
call fcn.00401010
push str.leResult
push eax
lea eax, [ebp - 0x1c68]
push eax
mov byte [ebp - 4], 0x4d
call fcn.00414ac0
add esp, 0xc
lea ecx, [ebp - 0x1d6c]
push ecx
push eax
lea ecx, [ebp - 0x1d8c]
mov byte [ebp - 4], 0x4e
call fcn.0046be30
mov ecx, eax
call fcn.0046bda0
lea ecx, [ebp - 0x1c68]
call fcn.00491090
lea ecx, [ebp - 0x1c50]
call fcn.00491090
lea ecx, [ebp - 0x1d6c]
mov byte [ebp - 4], 0x42
call fcn.0046bd00
mov ecx, dword [ebp - 0x1d40]
lea eax, [ebp - 0x1d8c]
push eax
call fcn.0046b770
lea ecx, [ebp - 0x1d8c]
mov dword [ebp - 0x1d4c], 1
mov byte [ebp - 4], 0x3d
call fcn.0046bd00
lea ecx, [ebp - 0x1d70]
call fcn.004020a0
lea ecx, [ebp - 0x1d58]
call fcn.00410880
jmp 0x4170a9
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp byte [ebp - 0x1cf5], 0
je 0x417ce5
push dword [ebp - 0x1d08]
call esi
push str.InternetReadFile_Failed
lea ecx, [ebp - 0x1cf4]
call fcn.00401ba0
mov ebx, dword [ebp - 0x1d40]
push eax
push ebx
mov byte [ebp - 4], 0x39
call fcn.00415210
add esp, 8
lea ecx, [ebp - 0x1cf4]
call fcn.004020a0
lea ecx, [ebp - 0x1d58]
call fcn.00410880
lea ecx, [ebp - 0x1d48]
call fcn.004020a0
lea ecx, [ebp - 0x1d0c]
call fcn.004020a0
lea ecx, [ebp - 0x1d34]
call fcn.004020a0
lea ecx, [ebp - 0x1d1c]
call fcn.004020a0
lea ecx, [ebp - 0x1d28]
call fcn.004020a0
lea ecx, [ebp - 0x1d30]
call fcn.004020a0
lea ecx, [ebp - 0x1d3c]
call fcn.004020a0
lea ecx, [ebp - 0x1d38]
call fcn.004020a0
lea ecx, [ebp - 0x1d2c]
call fcn.004020a0
lea ecx, [ebp - 0x1d18]
call fcn.004020a0
lea ecx, [ebp - 0x1d24]
call fcn.004020a0
lea ecx, [ebp - 0x1d10]
call fcn.004020a0
mov eax, ebx
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.004e9514
mov esp, ebp
pop ebp
ret