Function at 0x10040260
Capabilities:
Check if file exists
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074a7c
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x23c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x230], eax
lea eax, [ebx + 0x20]
mov dword [ebp - 0x24c], eax
mov eax, dword [eax]
mov dword [ebp - 0x258], 0
cmp dword [eax - 0xc], 0
je 0x10040483
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x234], ecx
cmp dword [eax - 0xc], 0
jne 0x100402e2
push 3
push 0x1007fb30
call fcn.10005d10
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10040e7a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 4], 0
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10040e84
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2b0], xmm0
mov ecx, 1
mov dword [ebp - 0x2a8], 0
movlpd qword [ebp - 0x29c], xmm0
movlpd qword [ebp - 0x294], xmm0
mov dword [ebp - 0x28c], 0
movlpd qword [ebp - 0x280], xmm0
mov dword [ebp - 0x2b4], 0x3c
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10040392
push 0x104
lea ecx, [ebp - 0x22c]
call fcn.10005cb0
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x2a4], edi
mov ecx, 1
mov dword [ebp - 0x2a0], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x100403cc
push 0x400
lea ecx, [ebp - 0x228]
call fcn.10005cb0
mov esi, dword [ebp - 0x228]
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x288], esi
push eax
push 0
push 0
push dword [ebx + 0x20]
mov dword [ebp - 0x284], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [edi - 8]
mov dword [ebp - 0x224], eax
push edi
call fcn.1004ea60
add esp, 8
test eax, eax
js 0x10040e70
cmp eax, dword [edi - 8]
jg 0x10040e70
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.1004ea60
add esp, 8
test eax, eax
js 0x10040e70
cmp eax, dword [esi - 8]
jg 0x10040e70
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x224], ecx
jne 0x100404bb
mov byte [ebp - 4], cl
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040467
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10040483
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x254]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
push dword [ebx + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, eax
mov dword [ebp - 0x240], edx
test edx, edx
jne 0x100404e0
mov byte [ebp - 4], al
jmp 0x1004044d
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x26c], xmm0
cmp dword [eax - 0xc], 0
jne 0x10040579
mov eax, dword [0x10089b74]
cmp eax, 0xffffffff
jne 0x10040569
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.10045770
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x1007fb38
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x240]
neg eax
sbb eax, eax
neg eax
mov dword [0x10089b74], eax
xor ecx, ecx
cmp eax, 1
setne cl
mov dword [ebp - 0x270], ecx
jmp 0x10040589
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x270], 3
push 0xc
lea eax, [ebp - 0x270]
push eax
push 0x26
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x100405ed
or ebx, 0xffffffff
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100405bc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10040e5f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10040483
push 8
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 1
push eax
push 0x32
push 0
mov dword [ebp - 0x274], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
add ebx, 0x40
cmp dword [ebx], 0xffffffff
je 0x1004062e
mov ecx, dword [ebp - 0x240]
push 4
push ebx
push 2
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x29c]
push edi
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x250], eax
test eax, eax
jne 0x100406a3
or ebx, 0xffffffff
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040672
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10040e5f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10040483
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 5
jle 0x10040709
push 5
lea eax, [ebp - 0x224]
push eax
call fcn.10008980
mov dword [ebp - 0x258], 1
mov ecx, str.https
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100406f6
test dx, dx
je 0x100406f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100406f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100406d0
xor eax, eax
jmp 0x100406fb
sbb eax, eax
or eax, 1
mov dword [ebp - 0x220], 1
test eax, eax
je 0x10040713
mov dword [ebp - 0x220], 0
or ebx, 0xffffffff
test byte [ebp - 0x258], 1
je 0x1004073c
mov edx, dword [ebp - 0x224]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004073c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x220], 0
mov ecx, 0xc81000
push 1
mov eax, 0x680000
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x234]
push 0
push 0
push 0
push esi
push dword [eax]
push dword [ebp - 0x250]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x244], eax
test eax, eax
jne 0x100407b7
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040792
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10040e53
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10040e53
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10040e8e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x238], esi
mov eax, dword [eax + 0x28]
mov edi, dword [eax]
mov dword [ebp - 0x234], edi
cmp edi, eax
je 0x100408fc
nop dword [eax]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10040e7a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x220]
push 0x1007fb24
mov dword [ebp - 0x220], eax
call fcn.10005aa0
test al, al
jne 0x10040833
push 1
push 0x1007fb24
lea ecx, [ebp - 0x220]
call fcn.10005d10
lea eax, [edi + 0x14]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x248]
call fcn.1003faa0
mov edx, dword [ebp - 0x220]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040868
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
je 0x10040880
push 1
push 0x1007fb28
lea ecx, [ebp - 0x238]
call fcn.10008eb0
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x238]
push dword [eax - 0xc]
push eax
call fcn.10008eb0
push 1
push 0x1007fb2c
lea ecx, [ebp - 0x238]
call fcn.10008eb0
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x238]
push dword [eax - 0xc]
push eax
call fcn.10008eb0
lea ecx, [ebp - 0x234]
call fcn.10014b60
mov edx, dword [ebp - 0x248]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100408e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x23c]
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
cmp edi, dword [eax + 0x28]
jne 0x100407f0
mov edi, dword [ebp - 0x23c]
mov ecx, 0
mov byte [ebp - 4], 2
mov edx, dword [edi + 0x34]
sub edx, dword [edi + 0x30]
push edx
cmovne ecx, dword [edi + 0x30]
push ecx
push dword [esi - 0xc]
push esi
push dword [ebp - 0x244]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x10040de9
cmp dword [edi + 0x3c], 0
je 0x10040a29
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10040e98
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x234], edi
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x25c], 0x100
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x100
or eax, ecx
jge 0x1004098e
push 0x100
lea ecx, [ebp - 0x234]
call fcn.10005cb0
mov edi, dword [ebp - 0x234]
push 0
lea eax, [ebp - 0x25c]
push eax
push edi
push 0x13
push dword [ebp - 0x244]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [edi - 8]
mov dword [ebp - 0x224], eax
push edi
call fcn.1004ea60
add esp, 8
test eax, eax
js 0x10040e70
cmp eax, dword [edi - 8]
jg 0x10040e70
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x224], ecx
je 0x10040dce
push edi
call fcn.1004fd0a
add esp, 4
cmp eax, 0x12d
je 0x10040b79
cmp eax, 0x12e
je 0x10040b79
cmp eax, 0x12f
je 0x10040b79
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10040a23
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x23c]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040a44
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040a65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10040a87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.10043cc1
mov ecx, dword [ebp - 0x240]
add esp, 4
mov dword [eax], ecx
mov ecx, edi
push dword [ebp - 0x230]
push eax
call fcn.10040fb0
push 4
call fcn.10043cc1
mov ecx, dword [ebp - 0x250]
add esp, 4
mov dword [eax], ecx
lea ecx, [edi + 8]
push dword [ebp - 0x230]
push eax
call fcn.10040fb0
push 4
call fcn.10043cc1
mov ecx, dword [ebp - 0x244]
add esp, 4
mov dword [eax], ecx
lea ecx, [edi + 0x10]
push dword [ebp - 0x230]
push eax
call fcn.10040fb0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10040b06
lock inc dword [eax + 4]
mov eax, dword [edi + 0x10]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [edi + 0x14]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10040b2e
lock inc dword [eax + 4]
mov eax, dword [edi + 8]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x10040b56
lock inc dword [eax + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x254]
call fcn.1003f830
mov eax, dword [ebp - 0x254]
add esp, 0x18
jmp 0x1004049d
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10040ea2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 4
mov edx, 1
mov dword [ebp - 0x260], 0x400
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
or ecx, edx
jge 0x10040bcf
push 0x400
lea ecx, [ebp - 0x220]
call fcn.10005cb0
mov eax, dword [ebp - 0x220]
push 0
lea ecx, [ebp - 0x260]
push ecx
push eax
push 0x21
push dword [ebp - 0x244]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x220]
push dword [eax - 8]
push eax
call fcn.1004ea60
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10040e70
mov eax, dword [ebp - 0x220]
cmp ecx, dword [eax - 8]
jg 0x10040e70
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x224], edx
je 0x10040db3
cmp dword [eax - 0xc], edx
je 0x10040db3
mov ecx, dword [ebp - 0x24c]
lea edx, [eax - 0x10]
mov dword [ebp - 0x224], edx
mov ecx, dword [ecx]
sub ecx, 0x10
mov dword [ebp - 0x248], ecx
cmp edx, ecx
je 0x10040cc2
add ecx, 0xc
mov dword [ebp - 0x264], ecx
cmp dword [ecx], 0
jl 0x10040cb3
mov eax, dword [ebp - 0x248]
mov ecx, dword [edx]
cmp ecx, dword [eax]
mov eax, dword [ebp - 0x220]
jne 0x10040cb3
mov ecx, edx
call fcn.10005e40
mov edx, dword [ebp - 0x264]
mov ecx, ebx
mov dword [ebp - 0x230], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10040ca6
mov eax, dword [ebp - 0x248]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x24c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x10040cc2
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x24c]
push eax
call fcn.10005d10
push dword [ebp - 0x244]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x250]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x23c]
inc dword [eax + 0x44]
cmp dword [eax + 0x44], 0xa
jl 0x10040d04
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x224]
jmp 0x10040dba
push dword [ebp - 0x254]
mov ecx, eax
call fcn.10040260
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x224]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040d2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10040d4a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040d65
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040d86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10040da8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x254]
jmp 0x1004049d
mov byte [ebp - 4], 3
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040dce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10040de9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040e04
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040e25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10040e47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x244]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x250]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10040483
push 0x80070057
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
int3