Function at 0x4b1a70
Capabilities:
Delete file
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a3c
call fcn.004ca2e0
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x28]
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.004b2a40
mov ecx, esi
mov ebx, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov byte [ebp - 1], 0
mov dword [ebp - 0x30], edi
mov dword [esi + 0x50], 1
call fcn.004aee10
lea ecx, [esi + 0x18]
push esi
call fcn.004b0f30
test al, al
je 0x4b2070
lea eax, [ebp - 8]
push eax
mov ecx, esi
mov dword [ebp - 8], ebx
call fcn.004aeb80
test al, al
je 0x4b1aec
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edi, dword [esi + 0x28]
mov al, byte [edi + 7]
cmp al, 1
jne 0x4b1b49
mov ecx, str.ConEmu_Stable_2
jmp 0x4b1b57
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x2c]
lea edx, [ebp - 0x10]
push edx
push str.ConEmuVersion.ini
push ecx
mov ecx, esi
mov dword [ebp - 0x10], edi
call fcn.004af900
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x4b2070
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push 0
lea edx, [ebp - 0x28]
push edx
push edi
push eax
push ecx
mov ecx, esi
mov byte [ebp - 1], 1
call fcn.004b12c0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4b1adb
cmp dword [esi + 0x24], ebx
jne 0x4b2070
mov edi, dword [ebp - 0xc]
jmp 0x4b202c
mov ecx, str.ConEmu_Preview_2
cmp al, 3
je 0x4b1b57
mov ecx, str.ConEmu_Devel_2
lea eax, [ebp - 0xbc]
mov edx, eax
mov ebx, 0x40
sub ecx, edx
lea edx, [ebx + 0x7fffffbe]
test edx, edx
je 0x4b1b86
movzx edx, word [ecx + eax]
test dx, dx
je 0x4b1b86
mov word [eax], dx
add eax, 2
sub ebx, 1
jne 0x4b1b66
jmp 0x4b1b8a
test ebx, ebx
jne 0x4b1b8d
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.004b2b00
mov ebx, str.location_exe
cmp al, 1
je 0x4b1ba7
mov ebx, str.location_arc
lea eax, [ebp - 0x13c]
mov ecx, eax
mov edx, 0x40
sub ebx, ecx
lea ecx, [edx + 0x7fffffbe]
test ecx, ecx
je 0x4b1bd6
movzx ecx, word [ebx + eax]
test cx, cx
je 0x4b1bd6
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4b1bb6
jmp 0x4b1bda
test edx, edx
jne 0x4b1bdd
sub eax, 2
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0xc]
push eax
push 0x40
lea ebx, [esi + 0x56]
push ebx
push 0x4e5034
push str.version
lea ecx, [ebp - 0xbc]
push ecx
call edi
test eax, eax
je 0x4b2059
cmp word [ebx], 0
je 0x4b2059
mov ecx, dword [esi + 0x28]
call fcn.004b2b00
cmp al, 1
mov eax, str.ConEmuSetup._s.exe
je 0x4b1c2d
mov eax, str.ConEmuPack._s.7z
push ebx
push eax
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xc]
add esp, 0xc
push eax
push 0x400
lea ecx, [ebp - 0xa3c]
push ecx
push 0x4e5034
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0xbc]
push eax
call edi
test eax, eax
je 0x4b2045
cmp word [ebp - 0xa3c], 0
je 0x4b2045
mov edi, dword [ebp - 0xc]
lea ecx, [esi + 0x366]
push ecx
lea edx, [esi + 0x29e]
push edx
lea eax, [esi + 0x1d6]
push eax
push edi
mov ecx, esi
call fcn.004afe50
lea ecx, [esi + 0xd6]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x4b1fe9
cmp dword [esi + 0x24], 0
jne 0x4b1ccc
lea edx, [esi + 0x156]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4b1fe9
push 0xa
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xa3c]
push ecx
call fcn.004c9edf
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4b1fcf
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4b1fcf
cmp word [ecx], 0x2c
jne 0x4b1fcf
cmp word [ecx + 2], 0x78
jne 0x4b1fcf
push 0x10
lea edx, [ebp - 0x24]
mov dword [esi + 0x14], eax
lea eax, [ecx + 4]
push edx
push eax
call fcn.004c9edf
add esp, 0xc
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4b1fb5
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b1fb5
cmp word [eax], 0x2c
jne 0x4b1fb5
add eax, 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004aeb80
cmp byte [esi + 0x4d], 0
mov byte [ebp - 0x11], al
jne 0x4b2070
mov ecx, esi
call fcn.004aee80
test al, al
je 0x4b2070
mov eax, dword [esi + 0x530]
test eax, eax
je 0x4b1d8b
push eax
call fcn.0044c4f0
add esp, 4
mov dword [esi + 0x530], 0
mov edi, dword [ebp - 8]
push 0
push edi
call fcn.0044c570
add esp, 8
push 2
mov ecx, esi
mov dword [esi + 0x530], eax
call fcn.004b13e0
test al, al
jne 0x4b1dc1
lea ecx, [esi + 0x156]
push ebx
push ecx
call fcn.00402e90
add esp, 8
jmp 0x4b2070
xor ebx, ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], 3
mov ecx, dword [0x52fe2c]
cmp ecx, ebx
je 0x4b1de4
cmp dword [0x52fe14], ebx
je 0x4b1de4
call fcn.004106d0
movzx edx, byte [ebp - 0x11]
neg edx
sbb edx, edx
and edx, 0x2d
add edx, 0x2f
push edx
push edi
call fcn.004ca94c
add esp, 8
test eax, eax
jne 0x4b1e19
push ebx
lea eax, [ebp - 0xa3c]
push eax
push str.Invalid_source_url_n_s
mov ecx, esi
call fcn.004aece0
jmp 0x4b2070
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [eax + 0x2c]
lea edx, [ebp - 0x23c]
push edx
push ecx
mov ecx, esi
mov dword [ebp - 0x10], ebx
call fcn.004af900
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x4b2070
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push 1
lea edx, [ebp - 0x30]
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004b12c0
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4b1ef9
xor eax, eax
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [ebp - 0x3c]
je 0x4b1ec0
cmp dword [ebp - 0x38], 0
jne 0x4b1ec0
cmp eax, dword [ebp - 0x28]
jne 0x4b1ec0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
je 0x4b1ef9
mov ecx, dword [ebp - 0x34]
push eax
push ecx
lea edx, [ebp - 0x1a3c]
push str.Required_CRC32x_08X__local_CRC32x_08X
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea eax, [ebp - 0x1a3c]
push eax
push ebx
push str.Invalid_local_file_n_s_n_s
jmp 0x4b1eed
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
push eax
push ecx
push edx
lea eax, [ebp - 0x1a3c]
push str._s_nRequired_size_u__local_size_u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
lea ecx, [ebp - 0x1a3c]
push ecx
push ebx
push str.Downloaded_file_does_not_match_n_s_n_s
mov ecx, esi
call fcn.004aed60
xor edi, edi
mov dword [ebp - 0x18], edi
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4b2070
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4b1f1a
push 0
push 0
push 7
call eax
cmp byte [esi + 0x4d], 0
jne 0x4b2070
push ebx
mov ecx, esi
call fcn.004b0020
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4b2070
cmp byte [esi + 0x4d], 0
jne 0x4b1f6d
mov dword [esi + 0x50], 4
mov ecx, dword [0x52fe2c]
call fcn.0040a9d0
test al, al
jne 0x4b1f62
mov ecx, dword [0x52fe2c]
call fcn.0040c7e0
jmp 0x4b1f69
mov ecx, esi
call fcn.004b0c30
test al, al
jne 0x4b1f85
lea eax, [esi + 0x56]
push eax
lea eax, [esi + 0x156]
push eax
call fcn.00402e90
add esp, 8
jmp 0x4b2070
xor eax, eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], 5
mov ecx, dword [0x52fe2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
cmp ecx, eax
je 0x4b1fa9
call fcn.00411c20
mov dword [ebp - 0x1c], 1
jmp 0x4b2070
push 0
lea ecx, [ebp - 0xa3c]
push ecx
push str.Invalid_format_in_version_description__CRC32__n_s
mov ecx, esi
call fcn.004aece0
jmp 0x4b2070
push 0
lea edx, [ebp - 0xa3c]
push edx
push str.Invalid_format_in_version_description__size__n_s
mov ecx, esi
call fcn.004aece0
jmp 0x4b2070
cmp dword [esi + 0x24], 0
mov byte [esi + 0x54], 0
je 0x4b201c
cmp byte [esi + 0x4d], 0
jne 0x4b201c
mov ecx, dword [0x52fe2c]
call fcn.0040a9d0
test al, al
jne 0x4b2015
mov ecx, dword [0x52fe2c]
call fcn.0040c7e0
jmp 0x4b201c
mov ecx, esi
call fcn.004af310
cmp byte [ebp - 1], 0
je 0x4b2070
test edi, edi
je 0x4b2070
cmp word [edi], 0
je 0x4b2070
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.0044c4f0
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x4b2070
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0xbc]
push edx
jmp 0x4b2069
mov eax, dword [ebp - 8]
push eax
push str.version
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, esi
call fcn.004afc40
xor edi, edi
cmp byte [ebp - 1], 0
mov dword [esi + 0x38], edi
je 0x4b2095
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x4b2095
cmp word [eax], di
je 0x4b208c
mov dword [esi + 0x38], eax
jmp 0x4b2095
push eax
call fcn.0044c4f0
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x3c], edi
cmp eax, edi
je 0x4b20c5
cmp word [eax], di
je 0x4b20bc
cmp dword [ebp - 0x18], edi
je 0x4b20b7
cmp dword [ebp - 0x1c], edi
jne 0x4b20bc
mov edx, dword [esi + 0x28]
cmp byte [edx + 0x30], 0
jne 0x4b20bc
mov dword [esi + 0x3c], eax
jmp 0x4b20c5
push eax
call fcn.0044c4f0
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x40], edi
cmp eax, edi
je 0x4b20e7
cmp word [eax], di
je 0x4b20de
cmp dword [ebp - 0x1c], edi
jne 0x4b20de
mov dword [esi + 0x40], eax
jmp 0x4b20ec
push eax
call fcn.0044c4f0
add esp, 4
cmp dword [ebp - 0x1c], edi
jne 0x4b20ef
mov dword [esi + 0x50], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x4b20fc
push edi
push edi
push 7
call eax
mov dword [esi], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret