Function at 0x405df0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x43f290
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x45a98c
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
call edx
add eax, 0x10
mov dword [esp + 0x4c], eax
push ebp
push ebp
push ebp
push 1
push ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x58], ebp
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [esp + 0x48], edi
cmp edi, ebp
jne 0x406054
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
push str.hqd0__d
lea edi, [esp + 0x24]
mov byte [esp + 0x64], 1
call fcn.004018c0
mov edi, dword [esp + 0x24]
add esp, 8
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00403460
push 0x443bf0
mov byte [esp + 0x60], 2
mov esi, dword [eax]
push 0x45bac8
lea edx, [ebp + 1]
call fcn.00404040
cmp esi, ebp
jne 0x405ec3
xor eax, eax
jmp 0x405ed1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ec8
sub eax, edx
push esi
push 0x45bac8
mov edx, eax
call fcn.00404040
mov byte [esp + 0x5c], 1
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebp
lea eax, [ecx - 0x10]
je 0x405f3f
cmp dword [eax + 0xc], ebp
lea edx, [eax + 0xc]
jge 0x405f19
cmp dword [ecx - 8], ebp
jge 0x405f09
push 0x80070057
call fcn.00401960
mov dword [ecx - 0xc], ebp
mov ecx, dword [esp + 0x18]
mov byte [ecx], 0
mov ecx, dword [esp + 0x18]
jmp 0x405f3f
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405f2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 0
mov esi, dword [edi - 0x10]
cmp dword [edi - 0xc], ebp
lea eax, [edi - 0x10]
je 0x405fae
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x405f8c
cmp dword [edi - 8], ebp
jge 0x405f82
push 0x80070057
call fcn.00401960
xor ecx, ecx
mov dword [edi - 0xc], ebp
mov word [edi], cx
jmp 0x405fae
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [eax + 0x10]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x405fe1
push eax
call fcn.0042762d
add esp, 4
mov dword [esi], edi
mov ebp, dword [esp + 0x20]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x44]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebp, ebp
je 0x405ffc
push ebp
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x406007
push eax
call esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x406012
push eax
call esi
mov dword [esp + 0x5c], 0xffffffff
mov edx, dword [esp + 0x4c]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x406984
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406960
cmp dword [edx - 8], 0
jl 0x405f78
mov dword [edx - 0xc], 0
mov byte [edx], 0
jmp 0x406984
cmp esi, ebp
je 0x40607f
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406060
sub eax, edx
sar eax, 1
je 0x40607f
push ebp
push ebp
push 3
push ebp
push ebp
push 0x1bb
push esi
jmp 0x40608f
mov ecx, dword [esp + 0x64]
push ebp
push ebp
push 3
push ebp
push ebp
push 0x1bb
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x2c], eax
cmp eax, ebp
jne 0x4061ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x45a98c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x45a98c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
push str.hqd1__d
lea edi, [esp + 0x24]
mov byte [esp + 0x64], 3
call fcn.004018c0
mov edi, dword [esp + 0x24]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00403460
push 0x443bf0
mov byte [esp + 0x60], 4
mov esi, dword [eax]
push 0x45bac8
mov edx, 1
call fcn.00404040
cmp esi, ebp
jne 0x40610b
xor eax, eax
jmp 0x406119
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406110
sub eax, edx
push esi
push 0x45bac8
mov edx, eax
call fcn.00404040
mov byte [esp + 0x5c], 3
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebp
lea eax, [ecx - 0x10]
je 0x406187
cmp dword [eax + 0xc], ebp
lea edx, [eax + 0xc]
jge 0x406161
cmp dword [ecx - 8], ebp
jge 0x406151
push 0x80070057
call fcn.00401960
mov dword [ecx - 0xc], ebp
mov edx, dword [esp + 0x18]
mov byte [edx], 0
mov ecx, dword [esp + 0x18]
jmp 0x406187
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 0
jmp 0x405f60
mov ecx, dword [esp + 0x68]
push ebp
push 0x4a83000
push ebp
push ebp
push ebp
push ecx
push 0x443eec
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebp
jne 0x40629f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x45a98c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x45a98c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
mov bl, 5
push str.hqd2__d
lea edi, [esp + 0x20]
mov byte [esp + 0x64], bl
call fcn.004018c0
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00403460
push 0x443bf0
mov byte [esp + 0x60], 6
mov esi, dword [eax]
push 0x45bac8
mov edx, 1
call fcn.00404040
cmp esi, ebp
jne 0x40623d
xor eax, eax
jmp 0x40624b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406242
sub eax, edx
push esi
push 0x45bac8
mov edx, eax
call fcn.00404040
lea esi, [esp + 0x1c]
mov byte [esp + 0x5c], bl
call fcn.00403ac0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
mov byte [esp + 0x5c], 0
call fcn.004015c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x405fb1
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [esp + 0x3c]
push ecx
push 0x41
push edi
mov dword [esp + 0x48], 1
call esi
push 4
lea edx, [esp + 0x40]
push edx
push 2
push edi
mov dword [esp + 0x4c], 0x3e8
call esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x1f
push edi
mov dword [esp + 0x50], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x24], 0x3380
push 4
lea edx, [esp + 0x28]
push edx
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x5c], 7
mov eax, dword [ebx + 0x18]
mov edi, dword [eax]
mov esi, dword [ebx]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
lea ebx, [ebx]
mov ebp, dword [ebx + 0x18]
mov eax, dword [ebx]
test esi, esi
je 0x40633d
cmp esi, eax
je 0x406342
call fcn.00428397
cmp edi, ebp
je 0x406412
test esi, esi
jne 0x406400
call fcn.00428397
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x406363
call fcn.00428397
mov eax, dword [edi + 0xc]
push str.host
push eax
call fcn.00428146
add esp, 8
test eax, eax
je 0x4063ea
test esi, esi
jne 0x406407
call fcn.00428397
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x406391
call fcn.00428397
mov eax, dword [edi + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004041d0
push 1
push 0x443fd0
lea eax, [esp + 0x20]
push eax
call fcn.004041d0
test esi, esi
jne 0x40640e
call fcn.00428397
cmp edi, dword [esi + 0x18]
jne 0x4063c7
call fcn.00428397
mov edi, dword [edi + 0x10]
mov ecx, dword [edi - 0xc]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
call fcn.004041d0
push 2
push 0x443fd4
lea eax, [esp + 0x20]
push eax
call fcn.004041d0
lea esi, [esp + 0x30]
call fcn.00404930
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
jmp 0x406330
mov eax, dword [esi]
jmp 0x406359
mov eax, dword [esi]
jmp 0x406387
mov esi, dword [esi]
jmp 0x4063bd
push 6
push str.Host:
lea ecx, [esp + 0x20]
push ecx
call fcn.004041d0
mov esi, dword [esp + 0x64]
test esi, esi
jne 0x40642f
xor eax, eax
jmp 0x406443
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406434
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x20]
push edx
call fcn.004041d0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 4], 1
mov esi, dword [ebx - 0xc]
jle 0x40646d
mov eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401810
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
push 0
push 0
push esi
push ebx
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x406650
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x45a98c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x45a98c
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push esi
mov bl, 8
push str.hqd3__d
lea edi, [esp + 0x38]
mov byte [esp + 0x64], bl
call fcn.004018c0
mov edi, dword [esp + 0x38]
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00403460
push 0x443bf0
mov byte [esp + 0x60], 9
mov esi, dword [eax]
push 0x45bac8
mov edx, 1
call fcn.00404040
xor ebp, ebp
cmp esi, ebp
jne 0x4064f2
xor eax, eax
jmp 0x406500
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4064f7
sub eax, edx
push esi
push 0x45bac8
mov edx, eax
call fcn.00404040
mov byte [esp + 0x5c], bl
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebp
lea eax, [ecx - 0x10]
je 0x406567
cmp dword [eax + 0xc], ebp
lea edx, [eax + 0xc]
jge 0x406541
cmp dword [ecx - 8], ebp
jl 0x405f78
mov dword [ecx - 0xc], ebp
mov edx, dword [esp + 0x1c]
mov byte [edx], 0
mov ecx, dword [esp + 0x1c]
jmp 0x406567
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x5c], 7
mov esi, dword [eax]
cmp dword [eax + 4], ebp
je 0x4065cf
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x4065ad
cmp dword [edi - 8], ebp
jl 0x405f78
xor ecx, ecx
mov dword [edi - 0xc], ebp
mov word [edi], cx
jmp 0x4065cf
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [eax + 0x10]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 0
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0x10]
cmp dword [edx - 0xc], ebp
lea eax, [edx - 0x10]
je 0x406648
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x406620
cmp dword [edx - 8], ebp
jl 0x405f78
xor ecx, ecx
mov dword [edx - 0xc], ebp
mov word [edx], cx
lea eax, [edx - 0x10]
jmp 0x405fb1
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406636
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, eax
lea eax, [edx - 0x10]
jmp 0x405fb1
push 0xa000
mov dword [esp + 0x2c], 0
call fcn.00424394
mov edi, eax
add esp, 4
test edi, edi
jne 0x406833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x45a98c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x45a98c
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push esi
mov bl, 0xa
push str.hqd4__d
lea edi, [esp + 0x38]
mov byte [esp + 0x64], bl
call fcn.004018c0
mov edi, dword [esp + 0x38]
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00403460
push 0x443bf0
mov byte [esp + 0x60], 0xb
mov esi, dword [eax]
push 0x45bac8
mov edx, 1
call fcn.00404040
xor ebp, ebp
cmp esi, ebp
jne 0x4066db
xor eax, eax
jmp 0x4066e9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4066e0
sub eax, edx
push esi
push 0x45bac8
mov edx, eax
call fcn.00404040
mov byte [esp + 0x5c], bl
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebp
lea eax, [ecx - 0x10]
je 0x406750
cmp dword [eax + 0xc], ebp
lea edx, [eax + 0xc]
jge 0x40672a
cmp dword [ecx - 8], ebp
jl 0x405f78
mov dword [ecx - 0xc], ebp
mov edx, dword [esp + 0x1c]
mov byte [edx], 0
mov ecx, dword [esp + 0x1c]
jmp 0x406750
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40676c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x5c], 7
mov esi, dword [eax]
cmp dword [eax + 4], ebp
je 0x4067b8
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x406796
cmp dword [edi - 8], ebp
jl 0x405f78
xor ecx, ecx
mov dword [edi - 0xc], ebp
mov word [edi], cx
jmp 0x4067b8
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [eax + 0x10]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 0
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0x10]
cmp dword [edx - 0xc], ebp
lea eax, [edx - 0x10]
je 0x40682b
cmp dword [eax + 0xc], ebp
lea ecx, [eax + 0xc]
jge 0x406809
cmp dword [edx - 8], ebp
jl 0x405f78
xor ecx, ecx
mov dword [edx - 0xc], ebp
mov word [edx], cx
lea eax, [edx - 0x10]
jmp 0x405fb1
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40681f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edx, [eax + 0x10]
lea eax, [edx - 0x10]
jmp 0x405fb1
lea ecx, [esp + 0x28]
push ecx
push 0xa000
push edi
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4068da
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4068da
xor ebp, ebp
test esi, esi
jne 0x406863
test ebp, ebp
je 0x4068bc
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
test eax, eax
jne 0x40687e
push esi
call fcn.0042770a
mov ecx, dword [esp + 0x70]
add esp, 4
mov dword [ecx], eax
jmp 0x406893
mov ecx, dword [edx + 8]
add ecx, esi
push ecx
push eax
call fcn.004277d4
mov edx, dword [esp + 0x74]
add esp, 8
mov dword [edx], eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
test eax, eax
je 0x4068bc
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 8]
push esi
push edi
add edx, eax
push esi
push edx
call fcn.004279ef
mov eax, dword [esp + 0x7c]
add esp, 0x10
add dword [eax + 8], esi
adc dword [eax + 0xc], ebp
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push 0xa000
push edi
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40684d
push edi
call fcn.00427613
lea eax, [ebx - 0x10]
mov byte [esp + 0x60], 0
mov esi, dword [eax]
add esp, 4
cmp dword [eax + 4], 0
mov edi, 1
je 0x40693b
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406919
cmp dword [ebx - 8], 0
jl 0x405f78
xor ecx, ecx
mov dword [ebx - 0xc], 0
mov word [ebx], cx
jmp 0x40693b
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40692f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebx, [eax + 0x10]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405fef
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, eax
add edx, 0x10
lea eax, [edx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret