Function at 0x411730
Capabilities:
Check http status code
Check if file exists
Delete file
Download and write a file
Get http content length
Move file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Send http request with host header
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x422d71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3e0
mov eax, dword [0x42b48c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov dword [esp + 0x3e0], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [esi + 0x4c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], eax
call fcn.00404d70
push edi
lea ecx, [esp + 0x14]
call fcn.00409be0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [esp + 0x3f4], 0
je 0x4117ad
push 3
push 0x426194
lea ecx, [esp + 0x18]
call fcn.00405e10
push ebx
mov ecx, esi
call fcn.00410b10
test eax, eax
jne 0x4117ec
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x3f4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4117e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, SysReAllocString
jmp 0x412611
mov eax, dword [esi + 0x48]
xor ebx, ebx
cmp eax, ebx
je 0x4117fc
mov ecx, esi
call fcn.0040ffe0
cmp dword [esi + 0x44], ebx
je 0x41183f
mov ecx, esi
call fcn.0040ffe0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x3f4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41231e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
jmp 0x412611
mov eax, dword [0x42c534]
mov ecx, 0x42c534
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
push 0x2f
push eax
mov byte [esp + 0x3fc], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0041651b
add esp, 8
cmp eax, ebx
jne 0x41187d
or eax, 0xffffffff
jmp 0x41187f
sub eax, dword [edi]
inc eax
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.004108e0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3f8], 2
call fcn.00407720
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4118c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 1
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x4118ff
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x4118ff
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4118ff
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xbd8
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00410030
test eax, eax
jne 0x411964
mov byte [esp + 0x3f4], al
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41192f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x3f4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41229e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
jmp 0x412611
cmp dword [esi + 0x44], ebx
je 0x4119cd
mov ecx, esi
call fcn.0040ffe0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411996
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x3f4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41231e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
jmp 0x412611
cmp dword [ebp + 0x10], ebx
mov ecx, 0x4400010
mov dword [esp + 0x2c], ecx
jne 0x4119e4
mov ecx, 0x4600010
mov dword [esp + 0x2c], ecx
mov eax, dword [edi]
push ebx
push ecx
push 0x42b44c
push ebx
push str.HTTP_1.0
push eax
mov eax, dword [esi + 8]
push 0x42615c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x411fa2
xor eax, eax
mov byte [esp + 0x2d0], 0
mov ecx, 0x43
lea edi, [esp + 0x2d1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x58]
xor ebx, ebx
cmp edi, ebx
je 0x411a6e
push str.Host:
lea eax, [esp + 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea ecx, [esp + 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 0xc]
push 0x20000000
push 0xffffffffffffffff
lea edx, [esp + 0x2d8]
push edx
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
xor eax, eax
mov byte [esp + 0x1b0], 0
mov ecx, 0x10
lea edi, [esp + 0x1b1]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
cmp eax, ebx
je 0x411b2b
xor eax, eax
mov dword [esp + 0x70], ebx
mov ecx, 0x4f
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x411b2b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [esp + 0x90]
cmp eax, ebx
mov dword [esp + 0x20], eax
jbe 0x411b10
push eax
lea eax, [esp + 0x1b4]
push str.Range:_bytes_d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x54], 1
jmp 0x411b2b
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x44], ebx
je 0x411b3c
mov ecx, esi
call fcn.0040ffe0
jmp 0x4122ef
push ebx
push ebx
lea eax, [esp + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x1bc]
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x411c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040ffe0
mov esi, dword [esi + 0x54]
sub esi, 0x2ee2
je 0x411bc9
sub esi, 5
je 0x411b90
sub esi, 0x16
jne 0x41226f
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411bb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, reloc.OLEAUT32.dll_VariantClear
jmp 0x412611
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411bef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, SysStringLen
jmp 0x412611
cmp dword [esi + 0x44], ebx
je 0x411c13
mov ecx, esi
call fcn.0040ffe0
jmp 0x4122ef
mov edx, dword [esi + 0xc]
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x20000013
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x411fa2
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp eax, 0x12e
mov dword [esp + 0x28], ebx
ja 0x411e75
cmp eax, 0x12d
jae 0x411daf
sub eax, 0xc8
je 0x411d58
sub eax, 3
je 0x411c7a
sub eax, 3
jne 0x411e90
mov edx, dword [esi + 0xc]
xor eax, eax
push eax
mov byte [esp + 0x244], 0
mov ecx, 0x10
lea edi, [esp + 0x245]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x248]
push ecx
push 0xb
push edx
mov dword [esp + 0x28], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x411ce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.0040ffe0
jmp 0x41226f
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x244]
push ecx
mov ecx, esi
call fcn.00411390
mov dx, word [esp + 0x50]
cmp dx, word [esp + 0x6c]
jne 0x411d40
mov ax, word [esp + 0x4e]
cmp ax, word [esp + 0x6a]
jne 0x411d40
mov cx, word [esp + 0x4c]
cmp cx, word [esp + 0x68]
jne 0x411d40
mov dx, word [esp + 0x4a]
cmp dx, word [esp + 0x66]
jne 0x411d40
mov ax, word [esp + 0x46]
cmp ax, word [esp + 0x62]
jne 0x411d40
mov cx, word [esp + 0x44]
cmp cx, word [esp + 0x60]
je 0x411ea5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x20], 0
jmp 0x411e9c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x411da3
mov ecx, esi
call fcn.0040ffe0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x412611
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x411ea5
push 0x401
call fcn.00415ce4
mov ebx, eax
xor eax, eax
mov ecx, 0x100
mov edi, ebx
rep stosd dword es:[edi], eax
add esp, 4
stosb byte es:[edi], al
mov ecx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push 0x21
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
push ebx
jne 0x411e24
call fcn.00415d3e
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040ffe0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41228b
lea ecx, [esi + 0x4c]
call fcn.004091f0
mov ecx, esi
call fcn.0040ffe0
push ebx
call fcn.00415d3e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, 1
jmp 0x412611
sub eax, 0x193
je 0x4125cd
dec eax
je 0x412587
sub eax, 0x60
je 0x412545
mov eax, dword [esp + 0x54]
test eax, eax
je 0x412537
mov ebx, 1
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x411eb8
mov ecx, esi
call fcn.0040ffe0
jmp 0x4122ef
test ebx, ebx
je 0x411fb7
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 8]
push 0
push ecx
push 0x42b44c
push 0
push str.HTTP_1.0
push eax
push 0x42615c
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x411fa2
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x411f19
push 0x1000000
push 0xffffffffffffffff
lea ecx, [esp + 0x2d8]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x411f48
mov ecx, esi
call fcn.0040ffe0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41230b
mov eax, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x411fa2
mov eax, dword [esi + 0x44]
test eax, eax
je 0x411f71
mov ecx, esi
call fcn.0040ffe0
jmp 0x4122ef
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x20000013
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x411fa2
cmp dword [esp + 0x30], 0xc8
je 0x411fb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040ffe0
jmp 0x41226f
mov edx, dword [esi + 0xc]
xor eax, eax
mov byte [esp + 0x1f8], 0
mov ecx, 0x10
lea edi, [esp + 0x1f9]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x200]
push ecx
push 0xb
push edx
mov dword [esp + 0x28], 0x40
call edi
test eax, eax
je 0x41200d
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1fc]
push ecx
mov ecx, esi
call fcn.00411390
mov ecx, dword [esi + 0xc]
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
push 0x20000005
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x41203f
mov dword [esp + 0x40], 0x32000
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x1c], eax
mov dword [esi + 0x5c], eax
mov dword [esp + 0x18], 2
cmp dword [ecx - 0xc], ebx
je 0x412088
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x412088
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412088
mov eax, dword [esi + 0x50]
lea edx, [esp + 0x18]
push edx
push ebx
push 0xbd8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 0x44], ebx
je 0x412099
mov ecx, esi
call fcn.0040ffe0
jmp 0x4122ef
mov ecx, dword [esp + 0x10]
push ebx
push 1
call fcn.0040fe80
add esp, 8
test eax, eax
je 0x4120d0
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412110
mov ecx, esi
call fcn.0040ffe0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4120fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, SysStringLen
jmp 0x412611
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x38]
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41214e
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x41215b
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1001
call fcn.00415ce4
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], 3
lea esp, [esp]
mov edi, dword [esp + 0x28]
xor eax, eax
mov ecx, 0x400
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4122a6
mov edi, dword [esp + 0x28]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x34]
push eax
push 0x1000
push edi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x412328
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4121f0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4121f0
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x18]
push eax
push 0
push 0xbd8
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x34]
test eax, eax
jbe 0x41221c
push 0
lea edx, [esp + 0x30]
push edx
push eax
push edi
push ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x34]
test eax, eax
ja 0x412180
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x1c]
jae 0x4123ba
mov ecx, esi
call fcn.0040ffe0
push edi
call fcn.00415d3e
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412295
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
or eax, 0xffffffff
jmp 0x412611
mov eax, dword [esp + 0x28]
push eax
call fcn.00415d3e
add esp, 4
mov ecx, esi
call fcn.0040ffe0
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, 2
jmp 0x412611
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00415d3e
add esp, 4
call edi
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040ffe0
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4123a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, reloc.OLEAUT32.dll_VariantCopy
jmp 0x412611
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4123e2
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4123e2
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x18]
push eax
push 0
push 0xbd8
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
push eax
mov byte [esp + 0x28c], 0
mov ecx, 0x10
lea edi, [esp + 0x28d]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x290]
push eax
push 0x17
push ecx
mov dword [esp + 0x28], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x412432
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040ffe0
jmp 0x412463
push str.close
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x412452
mov ecx, esi
call fcn.0040ffe0
jmp 0x412463
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00415d3e
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x5c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4124c7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3f4], 0
jne 0x412510
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4124fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
jmp 0x412611
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
xor eax, eax
jmp 0x412611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
jmp 0x41226f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412574
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, SafeArrayGetLBound
jmp 0x412611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040ffe0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4125bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, VariantCopy
jmp 0x412611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040ffe0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00414fe0
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, dword [esp + 0x3ec]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10