Function at 0x401264
Capabilities:
Create http request
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov eax, 0x2050
lea ebp, [esp - 0x1fd0]
call fcn.00416b60
mov eax, dword [0x41b040]
push ebx
push esi
push edi
xor eax, ebp
push str._ev1
lea esi, [ebp - 0x3c]
mov dword [ebp + 0x1fcc], eax
mov ebx, ecx
call fcn.004029c8
mov eax, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402218
push dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 1
push 0
call edi
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.00402515
push str._ev2
lea esi, [ebp - 0x3c]
call fcn.004029c8
mov eax, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402218
push dword [eax]
push 0
push 1
push 0
call edi
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x5c]
lea esi, [ebx + 0x20]
push esi
mov dword [ebp - 0x80], eax
call fcn.004021b9
mov edi, eax
test edi, edi
je 0x40133a
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x401332
mov eax, dword [ebx]
push edi
push 0
mov ecx, ebx
call dword [eax + 0x1c]
mov dword [ebp - 0x38], edi
jmp 0x401663
lea edi, [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov ecx, ebx
call fcn.00402195
push 0x10000000
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str.AdvancedInstaller
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0x401153
push eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
lea ecx, [ebx + 0x18]
push ecx
lea ecx, [ebp - 0x48]
push esi
lea eax, [ebx + 0x1c]
push ecx
call fcn.00403891
mov edi, dword [ebp - 0x48]
add esp, 0xc
cmp dword [edi - 0xc], 0
jne 0x4013b5
mov ecx, dword [ebx + 0x14]
test ecx, ecx
mov eax, 0xe0000005
mov dword [ebx + 0x10], eax
je 0x4013a2
mov edx, dword [ecx]
push eax
push 0
call dword [edx + 0x1c]
mov ebx, dword [ebx + 0x10]
lea eax, [edi - 0x10]
call fcn.00402515
mov dword [ebp - 0x38], ebx
jmp 0x40164f
lea eax, [edi - 0x10]
mov dword [ebp - 0x54], eax
call fcn.0040252d
add eax, 0x10
mov edi, str..part
mov ecx, edi
mov dword [ebp - 0x44], eax
call fcn.004023f4
push eax
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.004028d2
mov cl, 1
mov eax, ebx
call fcn.00401f8e
and dword [ebp - 0x38], 0
cmp byte [ebx + 0x3c], 0
je 0x4013fb
lea eax, [ebp - 0x44]
call fcn.0040384d
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x5c]
mov edi, ebx
call fcn.00401727
mov edi, eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx]
mov dword [ebp - 0x68], eax
mov eax, ebx
mov dword [ebp - 0x64], ebx
call fcn.00401fb8
test al, al
je 0x401432
and dword [ebp - 0x38], 0
jmp 0x401629
xor esi, esi
cmp edi, esi
je 0x401456
cmp edi, 0xe0000013
je 0x40144e
mov ecx, dword [ebx + 0x14]
cmp ecx, esi
je 0x40144e
mov eax, dword [ecx]
push edi
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x38], edi
jmp 0x401629
push dword [ebp - 0x48]
mov edi, dword [ebp - 0x3c]
push edi
mov eax, ebx
call fcn.00401f6c
mov eax, ebx
call fcn.00401fb8
test al, al
je 0x401477
mov dword [ebp - 0x38], esi
jmp 0x401629
cmp edi, esi
jbe 0x401489
cmp edi, dword [ebp - 0x38]
jne 0x401489
mov eax, ebx
call fcn.00401fa9
jmp 0x40146f
lea eax, [ebp - 0x44]
call fcn.00403a18
mov edi, eax
cmp edi, esi
jne 0x401440
xor eax, eax
cmp eax, dword [ebp - 0x38]
push esi
sbb eax, eax
neg eax
push 0x80
inc eax
inc eax
push eax
push esi
push esi
push 0xc0000000
lea esi, [ebp - 0x44]
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x50], eax
jne 0x40150a
mov eax, ebx
call fcn.00401fb8
test al, al
je 0x4014e6
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], 0xe0000008
jmp 0x401629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x14]
test ecx, ecx
mov esi, eax
je 0x4014fd
mov eax, dword [ecx]
push esi
push 0
call dword [eax + 0x1c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40146f
xor edi, edi
cmp dword [ebp - 0x38], edi
jbe 0x401521
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x38]
jmp 0x401522
push edi
mov eax, ebx
call fcn.00401f7d
jmp 0x40156e
cmp dword [ebp - 0x40], edi
je 0x4015a5
push edi
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4015fe
push dword [ebp - 0x60]
mov eax, ebx
call fcn.00401f7d
push edi
mov esi, ebx
call fcn.00401fc9
mov eax, ebx
call fcn.00401fb8
test al, al
jne 0x40161d
lea eax, [ebp - 0x40]
push eax
push 0x2000
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
mov eax, ebx
call fcn.0040168e
mov esi, eax
cmp esi, edi
je 0x40152b
cmp esi, 0xe0000008
je 0x4015a0
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
je 0x4015a0
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0x1c]
mov dword [ebp - 0x38], esi
jmp 0x401620
cmp byte [ebx + 0x3e], 0
je 0x4015c6
cmp dword [ebp - 0x3c], edi
jbe 0x4015c6
push edi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp - 0x3c]
jae 0x4015c6
mov esi, 0xe000000f
jmp 0x401592
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, ebx
call fcn.00401fa9
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call esi
jmp 0x40144e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
mov dword [ebx + 0x10], eax
je 0x401615
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x1c]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
jmp 0x401620
mov dword [ebp - 0x38], edi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x68]
mov esi, ebx
call fcn.00401eac
push dword [ebp - 0x70]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 0x54]
call fcn.00402515
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x5c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x78]
call esi
mov ecx, dword [ebp + 0x1fcc]
mov eax, dword [ebp - 0x38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x1fd0
leave
ret