Function at 0x49f366
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xec
mov eax, 0x511166
call fcn.004f4250
mov esi, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xec], ecx
mov ecx, 0x20006
and edx, ecx
mov dword [ebp - 0xf0], eax
cmp dword [esi + 4], 2
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xdc], edx
je 0x49f3bb
cmp dword [esi + 4], 3
jne 0x49f3d1
mov eax, dword [esi + 8]
test eax, eax
je 0x49f3d1
cmp word [eax], bx
je 0x49f3d1
mov edi, eax
mov dword [ebp - 0xe8], edi
jmp 0x49f404
mov ecx, dword [0x5a22a0]
push ebx
call fcn.0040cf15
mov edi, eax
mov dword [ebp - 0xe8], edi
mov dword [esi + 8], edi
test edi, edi
je 0x49f723
cmp word [edi], bx
je 0x49f723
mov edx, dword [ebp - 0xdc]
mov ecx, 0x20006
cmp dword [ebp - 0xd8], ebx
je 0x49f41b
mov eax, dword [ebp - 0xe4]
cmp dword [esi + 0x24], eax
je 0x49f583
xor eax, eax
mov dword [ebp - 0xd0], CreateMappedBitmap
push ebx
cmp edx, ecx
push ebx
sete al
add eax, 3
cmp edx, ecx
push eax
push ebx
push 3
mov eax, 0xc0000000
cmovne eax, dword [ebp - 0xd0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x49f723
cmp eax, 0xffffffff
je 0x49f723
push 0x34
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x49f503
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
test edx, edx
jne 0x49f495
mov cl, 1
test eax, eax
je 0x49f497
mov cl, bl
mov byte [esi + 0x22], cl
test cl, cl
jne 0x49f503
test edx, edx
jne 0x49f503
cmp eax, 3
jne 0x49f503
push ebx
lea eax, [ebp - 0xd0]
mov word [ebp - 0xd4], bx
push eax
push 3
lea eax, [ebp - 0xd4]
mov byte [ebp - 0xd2], bl
push eax
push dword [ebp - 0xe0]
mov dword [ebp - 0xd0], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f503
cmp dword [ebp - 0xd0], 3
jne 0x49f503
cmp byte [ebp - 0xd4], 0xef
jne 0x49f503
cmp byte [ebp - 0xd3], 0xbb
jne 0x49f503
cmp byte [ebp - 0xd2], 0xbf
jne 0x49f503
mov byte [esi + 0x22], 1
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x22], bl
je 0x49f583
cmp dword [ebp - 0xdc], 0x20006
jne 0x49f583
push ebx
push ebx
push 4
push ebx
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x49f723
cmp eax, 0xffffffff
je 0x49f723
push str.__xml_version_1.0__encoding_utf_8____r_n_key_name_Software___r_n_t_key_name_ConEmu___r_n_t__key__r_n__key__r_n
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], eax
push ecx
push eax
push str.__xml_version_1.0__encoding_utf_8____r_n_key_name_Software___r_n_t_key_name_ConEmu___r_n_t__key__r_n__key__r_n
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49f58f
cmp dword [ebp - 0xd8], ebx
jne 0x49f71f
cmp byte [esi + 0x22], bl
je 0x49f5a4
cmp dword [ebp - 0xdc], 0x20006
jne 0x49f723
mov ecx, esi
call fcn.0049e119
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd0], ebx
push ecx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd8], ebx
push ecx
lea eax, [esi + 0x14]
push eax
push 0xffffffffffffffff
push edi
call fcn.004ee2e1
add esp, 0x14
test eax, eax
js 0x49f723
push 0x10044
mov dword [ebp - 4], ebx
call fcn.004e1bc1
pop ecx
test eax, eax
je 0x49f5f7
mov ecx, eax
call fcn.0049db85
jmp 0x49f5f9
mov eax, ebx
push dword [esi + 0x14]
mov ecx, eax
mov dword [esi + 0x18], eax
call fcn.0049c3f6
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x49f616
cmp dword [eax + 0x14], 5
je 0x49f667
add ecx, 0x30
push 0x30
call fcn.0049ffda
mov edi, eax
mov ecx, esi
push 0x55a960
push 0x55a964
push edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 5
mov dword [edi + 0x18], ebx
mov dword [edi + 0x20], ebx
call fcn.0049fc72
push 0x55a96c
push str.encoding
push edi
mov ecx, esi
call fcn.0049fc72
mov ecx, dword [esi + 0x18]
push edi
push dword [ecx + 0x18]
call fcn.004a02f0
mov eax, dword [ebp - 0xe4]
jmp 0x49f71c
mov dword [esi + 0x24], eax
mov bl, 1
jmp 0x49f72a
mov ecx, esi
call fcn.0049e119
mov al, bl
call fcn.004f419d
ret 8