Function at 0x415070
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 0x427091
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3e0
mov eax, dword [0x42f4cc]
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.00408510
push edi
lea ecx, [esp + 0x14]
call fcn.0040d3a0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [esp + 0x3f4], 0
je 0x4150ed
push 3
push 0x42a61c
lea ecx, [esp + 0x18]
call fcn.004095b0
push ebx
mov ecx, esi
call fcn.00414450
test eax, eax
jne 0x41512c
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 0x415122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, SysReAllocString
jmp 0x415f51
mov eax, dword [esi + 0x48]
xor ebx, ebx
cmp eax, ebx
je 0x41513c
mov ecx, esi
call fcn.00413920
cmp dword [esi + 0x44], ebx
je 0x41517f
mov ecx, esi
call fcn.00413920
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 0x415c5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
jmp 0x415f51
mov eax, dword [0x430588]
mov ecx, 0x430588
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.0041a78f
add esp, 8
cmp eax, ebx
jne 0x4151bd
or eax, 0xffffffff
jmp 0x4151bf
sub eax, dword [edi]
inc eax
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.00414220
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3f8], 2
call fcn.0040aed0
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 0x415205
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 0x41523f
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x41523f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41523f
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.00413970
test eax, eax
jne 0x4152a4
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 0x41526f
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 0x415bde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
jmp 0x415f51
cmp dword [esi + 0x44], ebx
je 0x41530d
mov ecx, esi
call fcn.00413920
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 0x4152d6
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 0x415c5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
jmp 0x415f51
cmp dword [ebp + 0x10], ebx
mov ecx, 0x4400010
mov dword [esp + 0x2c], ecx
jne 0x415324
mov ecx, 0x4600010
mov dword [esp + 0x2c], ecx
mov eax, dword [edi]
push ebx
push ecx
push 0x42f48c
push ebx
push str.HTTP_1.0
push eax
mov eax, dword [esi + 8]
push 0x42a5e4
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x4158e2
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 0x4153ae
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 0x41546b
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 0x41546b
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 0x415450
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 0x41546b
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 0x41547c
mov ecx, esi
call fcn.00413920
jmp 0x415c2f
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 0x415542
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00413920
mov esi, dword [esi + 0x54]
sub esi, 0x2ee2
je 0x415509
sub esi, 5
je 0x4154d0
sub esi, 0x16
jne 0x415baf
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 0x4154f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, reloc.OLEAUT32.dll_VariantClear
jmp 0x415f51
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 0x41552f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, VariantCopy
jmp 0x415f51
cmp dword [esi + 0x44], ebx
je 0x415553
mov ecx, esi
call fcn.00413920
jmp 0x415c2f
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 0x4158e2
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp eax, 0x12e
mov dword [esp + 0x28], ebx
ja 0x4157b5
cmp eax, 0x12d
jae 0x4156ef
sub eax, 0xc8
je 0x415698
sub eax, 3
je 0x4155ba
sub eax, 3
jne 0x4157d0
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 0x415620
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.00413920
jmp 0x415baf
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x244]
push ecx
mov ecx, esi
call fcn.00414cd0
mov dx, word [esp + 0x50]
cmp dx, word [esp + 0x6c]
jne 0x415680
mov ax, word [esp + 0x4e]
cmp ax, word [esp + 0x6a]
jne 0x415680
mov cx, word [esp + 0x4c]
cmp cx, word [esp + 0x68]
jne 0x415680
mov dx, word [esp + 0x4a]
cmp dx, word [esp + 0x66]
jne 0x415680
mov ax, word [esp + 0x46]
cmp ax, word [esp + 0x62]
jne 0x415680
mov cx, word [esp + 0x44]
cmp cx, word [esp + 0x60]
je 0x4157e5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x20], 0
jmp 0x4157dc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4156e3
mov ecx, esi
call fcn.00413920
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 0x4156d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x415f51
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4157e5
push 0x401
call fcn.004199c4
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 0x415764
call fcn.00419a1e
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00413920
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 0x415bcb
lea ecx, [esi + 0x4c]
call fcn.0040c9b0
mov ecx, esi
call fcn.00413920
push ebx
call fcn.00419a1e
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 0x4157a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, 1
jmp 0x415f51
sub eax, 0x193
je 0x415f0d
dec eax
je 0x415ec7
sub eax, 0x60
je 0x415e85
mov eax, dword [esp + 0x54]
test eax, eax
je 0x415e77
mov ebx, 1
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4157f8
mov ecx, esi
call fcn.00413920
jmp 0x415c2f
test ebx, ebx
je 0x4158f7
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 0x42f48c
push 0
push str.HTTP_1.0
push eax
push 0x42a5e4
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x4158e2
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x415859
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 0x415888
mov ecx, esi
call fcn.00413920
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 0x415c4b
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 0x4158e2
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4158b1
mov ecx, esi
call fcn.00413920
jmp 0x415c2f
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 0x4158e2
cmp dword [esp + 0x30], 0xc8
je 0x4158f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00413920
jmp 0x415baf
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 0x41594d
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1fc]
push ecx
mov ecx, esi
call fcn.00414cd0
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 0x41597f
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 0x4159c8
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x4159c8
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4159c8
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 0x4159d9
mov ecx, esi
call fcn.00413920
jmp 0x415c2f
mov ecx, dword [esp + 0x10]
push ebx
push 1
call fcn.004137c0
add esp, 8
test eax, eax
je 0x415a10
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 0x415a50
mov ecx, esi
call fcn.00413920
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 0x415a3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, SysStringLen
jmp 0x415f51
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 0x415a8e
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 0x415a9b
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1001
call fcn.004199c4
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 0x415be6
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 0x415c68
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 0x415b30
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415b30
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 0x415b5c
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 0x415ac0
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x1c]
jae 0x415cfa
mov ecx, esi
call fcn.00413920
push edi
call fcn.00419a1e
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 0x415bd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
or eax, 0xffffffff
jmp 0x415f51
mov eax, dword [esp + 0x28]
push eax
call fcn.00419a1e
add esp, 4
mov ecx, esi
call fcn.00413920
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 0x415c55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, 2
jmp 0x415f51
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00419a1e
add esp, 4
call edi
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00413920
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 0x415ce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, reloc.OLEAUT32.dll_VariantCopy
jmp 0x415f51
mov eax, dword [esi + 0x50]
test eax, eax
je 0x415d22
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415d22
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 0x415d72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00413920
jmp 0x415da3
push str.close
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x415d92
mov ecx, esi
call fcn.00413920
jmp 0x415da3
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.00419a1e
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 0x415e07
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 0x415e50
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
jmp 0x415f51
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
xor eax, eax
jmp 0x415f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
jmp 0x415baf
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 0x415eb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, SafeArrayGetLBound
jmp 0x415f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00413920
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 0x415efd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
mov eax, VariantCopy
jmp 0x415f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00413920
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 0x415f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.00418530
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.004199fa
mov esp, ebp
pop ebp
ret 0x10