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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a80
call fcn.004b0790
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x34]
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
call fcn.0049c270
mov ecx, esi
mov ebx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 5], 0
mov dword [ebp - 0x38], edi
mov dword [esi + 0x70], 1
call fcn.00498230
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x49b219
mov ecx, dword [esi + 0x1c]
cmp ecx, edi
je 0x49b1e5
cmp ecx, 0xffffffff
je 0x49b1e5
mov eax, dword [eax + 0xc]
push ecx
call eax
test eax, eax
jne 0x49b1e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x49b1ff
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x49b1ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x49b219
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x49b219
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
cmp dword [esi + 0xc], edi
jne 0x49b26a
push 0x28
call fcn.004412a0
add esp, 4
cmp eax, edi
je 0x49b254
mov dword [eax + 0x24], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
jmp 0x49b256
xor eax, eax
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x49b26a
push edi
push str.new_CWinInet_failed
mov ecx, esi
call fcn.004980a0
mov ecx, dword [esi + 0xc]
cmp ecx, edi
je 0x49b8da
push esi
call fcn.00498520
test al, al
je 0x49b8da
push 0x4c1318
push 4
push 6
push 0xd
lea eax, [esi + 0xf4]
push str._02u_02u_02u_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
mov dword [ebp - 0x10], ebx
call fcn.00497f20
test al, al
je 0x49b2d3
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x34]
mov al, byte [ecx + 7]
cmp al, 1
jne 0x49b34e
mov ebx, str.ConEmu_Stable
jmp 0x49b35c
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x2c]
lea edx, [ebp - 0x18]
push edx
push str.ConEmuVersion.ini
push ecx
mov ecx, esi
mov dword [ebp - 0x18], edi
call fcn.00498dc0
mov dword [ebp - 4], eax
test eax, eax
je 0x49b8da
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push 0
lea edx, [ebp - 0x2c]
push edx
push edi
push eax
push ecx
mov ecx, esi
mov byte [ebp - 5], 1
mov dword [esi + 0x58], 0x7530
call fcn.00499f20
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x49b2bb
cmp dword [esi + 0x30], ebx
jne 0x49b8da
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.00441300
add esp, 4
mov dword [ebp - 4], 0
jmp 0x49b8da
mov ebx, str.ConEmu_Preview
cmp al, 3
je 0x49b35c
mov ebx, str.ConEmu_Devel
lea eax, [ebp - 0xb8]
mov edx, eax
mov edi, 0x40
sub ebx, edx
jmp 0x49b370
lea edx, [edi + 0x7fffffbe]
test edx, edx
je 0x49b390
movzx edx, word [eax + ebx]
test dx, dx
je 0x49b390
mov word [eax], dx
add eax, 2
sub edi, 1
jne 0x49b370
jmp 0x49b394
test edi, edi
jne 0x49b397
sub eax, 2
xor edx, edx
mov word [eax], dx
call fcn.0049c330
mov edi, str.location_exe
cmp al, 1
je 0x49b3af
mov edi, str.location_arc
lea eax, [ebp - 0x1b8]
mov ecx, eax
mov edx, 0x40
sub edi, ecx
mov edi, edi
lea ecx, [edx + 0x7fffffbe]
test ecx, ecx
je 0x49b3e0
movzx ecx, word [eax + edi]
test cx, cx
je 0x49b3e0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x49b3c0
jmp 0x49b3e4
test edx, edx
jne 0x49b3e7
sub eax, 2
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
xor edx, edx
push 0x40
mov word [eax], dx
lea eax, [esi + 0x74]
push eax
lea ebx, [esi + 0xf4]
push ebx
push str.version
lea edx, [ebp - 0xb8]
push edx
call edi
test eax, eax
jne 0x49b434
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb8]
push eax
push str.ProfileString__s_version__failed__code_u
mov ecx, esi
call fcn.00498100
jmp 0x49b8da
mov ecx, dword [ebp - 4]
push ecx
push 0x400
lea edx, [ebp - 0xa80]
push edx
push 0x4c1318
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call edi
test eax, eax
je 0x49b8be
cmp word [ebp - 0xa80], 0
je 0x49b8be
push ebx
lea eax, [esi + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x49b783
cmp dword [esi + 0x30], 0
jne 0x49b4a1
lea edx, [esi + 0x174]
push edx
lea eax, [esi + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x49b783
push 0xa
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa80]
push ecx
call fcn.004b0706
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x49b769
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x49b769
cmp word [ecx], 0x2c
jne 0x49b769
cmp word [ecx + 2], 0x78
jne 0x49b769
push 0x10
lea edx, [ebp - 0x30]
mov dword [esi + 0x28], eax
lea eax, [ecx + 4]
push edx
push eax
call fcn.004b0706
add esp, 0xc
mov dword [ebp - 0x34], eax
test eax, eax
je 0x49b74f
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x49b74f
cmp word [eax], 0x2c
jne 0x49b74f
add eax, 2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00497f20
cmp dword [esi + 0x6c], 0
mov byte [ebp - 0x11], al
jne 0x49b8da
mov ecx, esi
call fcn.004982a0
test al, al
je 0x49b8da
mov ebx, dword [ebp - 0x18]
push ebx
push 2
mov ecx, esi
call fcn.00499200
test al, al
jne 0x49b56c
lea eax, [esi + 0x74]
push eax
lea ecx, [esi + 0x174]
push ecx
call fcn.00401a10
add esp, 8
jmp 0x49b8da
xor edi, edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x70], 3
cmp dword [0x50b384], edi
je 0x49b58e
mov ecx, dword [0x50b39c]
call fcn.0040c600
movzx edx, byte [ebp - 0x11]
neg edx
sbb edx, edx
and edx, 0x2d
add edx, 0x2f
push edx
push ebx
call fcn.004b135e
add esp, 8
cmp eax, edi
jne 0x49b5c3
push edi
lea eax, [ebp - 0xa80]
push eax
push str.Invalid_source_url_n_s
mov ecx, esi
call fcn.00498100
jmp 0x49b8da
mov edx, dword [esi + 0x34]
lea ecx, [ebp - 0x10]
push ecx
add eax, 2
push eax
mov eax, dword [edx + 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 0x10], edi
call fcn.00498dc0
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x49b8da
mov edx, dword [ebp - 0x10]
push 1
lea ecx, [ebp - 0x38]
push ecx
push edx
push eax
push ebx
mov ecx, esi
mov dword [esi + 0x58], 0x2bf20
call fcn.00499f20
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x49b6a5
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
xor eax, eax
push ecx
push edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x49b66c
cmp dword [ebp - 0x18], 0
jne 0x49b66c
cmp eax, dword [ebp - 0x2c]
jne 0x49b66c
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x34]
je 0x49b6a5
push eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1a80]
push str.Required_CRC32x_08X__local_CRC32x_08X
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xc]
add esp, 0x10
push 0
lea edx, [ebp - 0x1a80]
push edx
push eax
push str.Invalid_local_file_n_s_n_s
jmp 0x49b699
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
push ebx
lea edx, [ebp - 0x1a80]
push str._s_nRequired_size_u__local_size_u
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
push 0
lea eax, [ebp - 0x1a80]
push eax
push ecx
push str.Downloaded_file_does_not_match_n_s_n_s
mov ecx, esi
call fcn.00498180
xor edi, edi
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x49b8da
cmp dword [esi + 0xc], 0
je 0x49b6eb
push 1
mov ecx, esi
call fcn.00497f80
mov edi, dword [esi + 0xc]
test edi, edi
je 0x49b6e4
mov eax, dword [edi + 0x24]
test eax, eax
je 0x49b6db
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00441300
add esp, 4
mov dword [esi + 0xc], 0
cmp dword [esi + 0x6c], 0
jne 0x49b8da
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004994a0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x49b8da
xor edi, edi
push edi
push 4
mov ecx, esi
call fcn.00499200
test al, al
je 0x49b554
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
mov dword [esi + 0x70], 5
mov ecx, dword [0x50b39c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], edi
call fcn.0040dad0
mov dword [ebp - 0x20], 1
jmp 0x49b8da
push 0
lea ecx, [ebp - 0xa80]
push ecx
push str.Invalid_format_in_version_description__CRC32__n_s
mov ecx, esi
call fcn.00498100
jmp 0x49b8da
push 0
lea edx, [ebp - 0xa80]
push edx
push str.Invalid_format_in_version_description__size__n_s
mov ecx, esi
call fcn.00498100
jmp 0x49b8da
cmp dword [esi + 0x30], 0
je 0x49b8a4
lea eax, [ebp - 0x280]
push ebx
push eax
call fcn.004993e0
mov ecx, dword [ebp - 4]
add esp, 8
push ecx
push 0x40
lea edx, [ebp - 0x138]
push edx
push 0x4c1318
push str.version
push str.ConEmu_Stable
call edi
test eax, eax
je 0x49b7e4
push ebx
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jl 0x49b7e4
push str._stable
push 0x64
lea ecx, [ebp - 0x280]
push ecx
jmp 0x49b86a
mov edx, dword [ebp - 4]
push edx
push 0x40
lea eax, [ebp - 0x138]
push eax
push 0x4c1318
push str.version
push str.ConEmu_Preview
call edi
test eax, eax
je 0x49b828
push ebx
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jl 0x49b828
push str._preview
push 0x64
lea edx, [ebp - 0x280]
push edx
jmp 0x49b86a
mov eax, dword [ebp - 4]
push eax
push 0x40
lea ecx, [ebp - 0x138]
push ecx
push 0x4c1318
push str.version
push str.ConEmu_Devel
call edi
test eax, eax
je 0x49b86f
push ebx
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jl 0x49b86f
push str._alpha
push 0x64
lea eax, [ebp - 0x280]
push eax
call fcn.00401880
mov ecx, dword [esi + 0x34]
mov al, byte [ecx + 7]
cmp al, 1
jne 0x49b880
mov eax, str.stable
jmp 0x49b88e
cmp al, 3
mov eax, str.preview
je 0x49b88e
mov eax, str.developer
push 0
push eax
lea edx, [ebp - 0x280]
push edx
push str.Your_current_ConEmu_version_is__s_nNo_newer__s_version_is_available
mov ecx, esi
call fcn.00498180
cmp byte [ebp - 5], 0
je 0x49b8da
cmp dword [ebp - 4], 0
je 0x49b8da
mov eax, dword [ebp - 4]
cmp word [eax], 0
je 0x49b8da
jmp 0x49b32f
push 0
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0xb8]
push edx
push str.Version_not_available___s__s_
mov ecx, esi
call fcn.00498180
xor ebx, ebx
mov dword [esi + 0x44], ebx
cmp byte [ebp - 5], bl
je 0x49b8fe
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x49b8fe
cmp word [eax], bx
je 0x49b8f5
mov dword [esi + 0x44], eax
jmp 0x49b8fe
push eax
call fcn.00441300
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x48], ebx
cmp eax, ebx
je 0x49b92e
cmp word [eax], bx
je 0x49b925
cmp dword [ebp - 0x28], ebx
je 0x49b920
cmp dword [ebp - 0x20], ebx
jne 0x49b925
mov ecx, dword [esi + 0x34]
cmp byte [ecx + 0x30], 0
jne 0x49b925
mov dword [esi + 0x48], eax
jmp 0x49b92e
push eax
call fcn.00441300
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x4c], ebx
cmp eax, ebx
je 0x49b950
cmp word [eax], bx
je 0x49b947
cmp dword [ebp - 0x20], ebx
jne 0x49b947
mov dword [esi + 0x4c], eax
jmp 0x49b955
push eax
call fcn.00441300
add esp, 4
cmp dword [ebp - 0x20], ebx
jne 0x49b958
mov dword [esi + 0x70], ebx
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x49b9db
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x49b97f
cmp eax, 0xffffffff
je 0x49b97f
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x49b97f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
jmp 0x49b985
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x49b99b
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x49b99b
call edi
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x49b9b1
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x49b9b1
call edi
mov edi, dword [esi + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
cmp edi, ebx
je 0x49b9d8
mov eax, dword [edi + 0x24]
cmp eax, ebx
je 0x49b9cf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00441300
add esp, 4
mov dword [esi + 0xc], ebx
pop edi
mov dword [esi], ebx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret