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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push str._ev1
lea esi, [ebp - 0x20]
mov ebx, eax
call fcn.004032f7
mov eax, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004028fd
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 - 0x1c]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00402f79
push str._ev2
lea esi, [ebp - 0x20]
call fcn.004032f7
mov eax, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004028fd
push dword [eax]
push 0
push 1
push 0
call edi
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebx + 0x58]
mov edi, dword [ebx + 0x5c]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], eax
lea eax, [ebx + 0x20]
push ecx
push eax
mov dword [ebp - 0x38], edi
call fcn.00402899
mov esi, eax
test esi, esi
je 0x401395
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x401376
mov eax, dword [ebx]
push esi
push 0
mov ecx, ebx
call dword [eax + 0x1c]
test edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401383
push edi
call ebx
cmp dword [ebp - 0x30], 0
je 0x40138e
push dword [ebp - 0x30]
call ebx
mov eax, esi
jmp 0x401bcf
lea edi, [ebp - 0x20]
lea eax, [ebp - 0x18]
mov ecx, ebx
call fcn.00402875
push 0x10000000
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push str.AdvancedInstaller
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push 0x4011ac
push eax
mov dword [ebp - 0x40], eax
call esi
lea ecx, [ebx + 0x18]
push ecx
lea ecx, [ebx + 0x20]
push ecx
lea ecx, [ebp - 0x14]
lea eax, [ebx + 0x1c]
push ecx
call fcn.004047ce
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x401441
mov ecx, dword [ebx + 0x14]
xor edi, edi
cmp ecx, edi
mov eax, 0xe0000005
mov dword [ebx + 0x10], eax
je 0x401403
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebx + 0x10]
add eax, 0xfffffff0
call fcn.00402f79
push edi
push dword [ebp - 0x40]
call esi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x38], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401430
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x30], edi
je 0x40143a
push dword [ebp - 0x30]
call esi
mov eax, ebx
jmp 0x401bcf
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 8], eax
call fcn.00402f91
add eax, 0x10
mov edi, str..part
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.00402f1b
push eax
push edi
lea eax, [ebp - 4]
push eax
call fcn.00402f2b
mov cl, 1
mov eax, ebx
call fcn.00402669
and dword [ebp - 0x10], 0
cmp byte [ebx + 0x3c], 0
je 0x40148a
lea eax, [ebp - 4]
call fcn.00404784
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push edi
mov ecx, ebx
call fcn.00401bd4
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.0040269d
test al, al
je 0x4014f1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
xor ebx, ebx
push ebx
push edi
call esi
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x38], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4014de
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x30], ebx
je 0x40170d
push dword [ebp - 0x30]
call esi
jmp 0x40170d
cmp dword [ebp - 0xc], 0
je 0x401556
cmp dword [ebp - 0xc], 0xe0000013
je 0x401513
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x401513
push dword [ebp - 0xc]
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x1c]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
xor ebx, ebx
push ebx
push edi
call esi
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x38], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401543
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x30], ebx
je 0x40192f
push dword [ebp - 0x30]
call esi
jmp 0x40192f
mov eax, dword [ebx + 8]
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx]
mov dword [ebp - 0x50], eax
push esi
mov eax, ebx
mov dword [ebp - 0x4c], ebx
call fcn.00402647
mov eax, ebx
call fcn.0040269d
test al, al
jne 0x40158f
xor edi, edi
cmp esi, edi
jbe 0x4015f1
cmp esi, dword [ebp - 0x10]
jne 0x4015f1
mov eax, ebx
call fcn.0040268c
mov esi, ebx
lea edi, [ebp - 0x50]
call fcn.00402587
cmp dword [ebp - 0x48], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x4015aa
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
xor edi, edi
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4015de
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x30], edi
je 0x401bcd
push dword [ebp - 0x30]
call esi
jmp 0x401bcd
push edi
push edi
lea eax, [ebp - 4]
call fcn.004049fc
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x401669
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
je 0x401612
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x1c]
lea edi, [ebp - 0x50]
mov esi, ebx
call fcn.00402587
cmp dword [ebp - 0x48], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40162d
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
xor edi, edi
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401661
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x30], edi
jmp 0x401546
xor eax, eax
xor edi, edi
cmp eax, dword [ebp - 0x10]
push edi
sbb eax, eax
neg eax
push 0x80
inc eax
inc eax
push eax
push edi
push edi
push 0xc0000000
lea esi, [ebp - 4]
call fcn.00402b4b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x58], eax
jne 0x401799
mov eax, ebx
call fcn.0040269d
test al, al
je 0x401717
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x50]
mov esi, ebx
call fcn.00402587
cmp dword [ebp - 0x48], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x4016cd
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
xor edi, edi
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
je 0x4016ff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], edi
je 0x40170d
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xe0000008
jmp 0x401bcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
mov dword [ebp - 0x20], eax
je 0x40172e
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x1c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x50]
mov esi, ebx
call fcn.00402587
cmp dword [ebp - 0x48], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x401751
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
xor edi, edi
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
je 0x401783
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], edi
je 0x401791
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x401bcf
cmp dword [ebp - 0x10], edi
jbe 0x4017b8
mov esi, dword [ebp - 0x58]
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x10]
mov eax, ebx
call fcn.00402658
jmp 0x4017c3
push edi
mov eax, ebx
call fcn.00402658
mov esi, dword [ebp - 0x58]
push 0xc800
call fcn.0041e6ca
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebx]
mov eax, ebx
call fcn.00401d46
cmp eax, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], edi
jne 0x401812
mov eax, dword [ebp - 0x24]
cmp eax, edi
jbe 0x40186d
mov ecx, 0xc800
cmp eax, ecx
jb 0x4017fa
mov eax, ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x10]
mov eax, ebx
push dword [ebx]
call fcn.00401cad
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x401864
cmp eax, 0x2ee2
je 0x401832
cmp eax, 0x2efe
je 0x401832
cmp eax, 0x2eff
je 0x401832
cmp eax, 0x2f83
jne 0x40197c
cmp dword [ebp - 0x1c], 3
je 0x401842
cmp dword [ebp - 0x1c], 4
jne 0x40197c
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
call fcn.00401c3b
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x40197a
xor edi, edi
jmp 0x4017d1
cmp dword [ebp - 0x20], edi
jne 0x401937
cmp dword [ebp - 0x18], edi
jbe 0x401a27
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp - 0x18]
jae 0x401a27
cmp dword [ebp - 0x1c], 3
je 0x401897
cmp dword [ebp - 0x1c], 4
jne 0x4019a2
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x40]
lea eax, [ebp - 0x50]
call fcn.00401c3b
test eax, eax
mov dword [ebp - 0xc], eax
je 0x40185d
cmp eax, 0xe0000008
je 0x4018c6
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x4018c6
mov edx, dword [ebx]
push eax
push 0
mov ecx, ebx
call dword [edx + 0x1c]
push dword [ebp - 0x10]
call fcn.0041e6cf
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
je 0x4018dc
push esi
call ebx
mov esi, dword [ebp - 0x4c]
lea edi, [ebp - 0x50]
call fcn.00402587
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp dword [ebp - 0x48], edi
je 0x4018f9
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
je 0x401925
push dword [ebp - 0x38]
call ebx
cmp dword [ebp - 0x30], edi
je 0x40192f
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x401bcf
push edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401ad6
push dword [ebp - 0x28]
mov eax, ebx
call fcn.00402658
push edi
mov esi, ebx
call fcn.004026b9
mov eax, ebx
call fcn.0040269d
test al, al
jne 0x401b61
mov esi, dword [ebp - 0x58]
jmp 0x4017d1
xor edi, edi
cmp eax, 0xe0000008
je 0x401993
mov ebx, dword [ebx + 0x14]
cmp ebx, edi
je 0x401993
mov edx, dword [ebx]
push eax
push edi
mov ecx, ebx
call dword [edx + 0x1c]
push dword [ebp - 0x10]
call fcn.0041e6cf
cmp esi, edi
jmp 0x4018d0
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
je 0x4019b4
mov eax, dword [ecx]
push 0xe000000f
push edi
call dword [eax + 0x1c]
push dword [ebp - 0x10]
call fcn.0041e6cf
cmp esi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
je 0x4019ca
push esi
call ebx
mov esi, dword [ebp - 0x4c]
lea edi, [ebp - 0x50]
call fcn.00402587
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp dword [ebp - 0x48], edi
je 0x4019e7
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
je 0x401a13
push dword [ebp - 0x38]
call ebx
cmp dword [ebp - 0x30], edi
je 0x401a1d
push dword [ebp - 0x30]
call ebx
mov eax, 0xe000000f
jmp 0x401bcf
cmp dword [ebp - 0x58], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401a3a
push dword [ebp - 0x58]
call esi
mov dword [ebp - 0x58], edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, ebx
call fcn.0040268c
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 0x10]
call fcn.0041e6cf
cmp dword [ebp - 0x58], edi
pop ecx
je 0x401a72
push dword [ebp - 0x58]
call esi
mov esi, dword [ebp - 0x4c]
lea edi, [ebp - 0x50]
call fcn.00402587
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp dword [ebp - 0x48], edi
je 0x401a8f
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
je 0x401abf
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], edi
je 0x401bcd
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
mov dword [ebx + 0x10], eax
je 0x401aed
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x1c]
mov eax, dword [ebx + 0x10]
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.0041e6cf
cmp esi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
je 0x401b09
push esi
call ebx
mov esi, dword [ebp - 0x4c]
lea edi, [ebp - 0x50]
call fcn.00402587
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp dword [ebp - 0x48], edi
je 0x401b26
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
je 0x401b52
push dword [ebp - 0x38]
call ebx
cmp dword [ebp - 0x30], edi
je 0x401b5c
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x1c]
jmp 0x401bcf
push dword [ebp - 0x10]
call fcn.0041e6cf
cmp dword [ebp - 0x58], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
je 0x401b7a
push dword [ebp - 0x58]
call ebx
mov esi, dword [ebp - 0x4c]
lea edi, [ebp - 0x50]
call fcn.00402587
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp dword [ebp - 0x48], edi
je 0x401b97
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 8]
call fcn.00402f79
push edi
push dword [ebp - 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], edi
je 0x401bc3
push dword [ebp - 0x38]
call ebx
cmp dword [ebp - 0x30], edi
je 0x401bcd
push dword [ebp - 0x30]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret