Function at 0x49cb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50be28
push 0x4cae74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x19], 0
cmp dword [esi + 0x1c], 0
sete byte [ebp - 0x1a]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [ebp + 8]
and edi, 0x20006
cmp edi, 0x20006
sete byte [ebp - 0x1b]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49cb83
cmp word [eax], cx
je 0x49cb83
mov ebx, eax
jmp 0x49cba2
mov ecx, dword [0x52fe2c]
call fcn.00413850
mov ebx, eax
test ebx, ebx
je 0x49ce3c
cmp word [ebx], 0
je 0x49ce3c
mov dword [esi + 0x14], ebx
cmp byte [ebp - 0x1a], 0
jne 0x49cbb7
mov eax, dword [ebp + 8]
cmp dword [esi + 0x30], eax
je 0x49cc9d
mov eax, SysReAllocString
mov ecx, 3
cmp edi, 0x20006
jne 0x49cbd3
mov eax, 0xc0000000
mov ecx, 4
push 0
push 0
push ecx
push 0
push 3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x49ce3c
cmp edi, 0xffffffff
je 0x49ce3c
mov dword [ebp - 0x74], 0
push 0x30
push 0
lea ecx, [ebp - 0x70]
push ecx
call fcn.004c9b50
add esp, 0xc
lea edx, [ebp - 0x74]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x49cc35
cmp dword [ebp - 0x54], 0
jne 0x49cc30
cmp dword [ebp - 0x50], 0
jne 0x49cc30
mov eax, 1
jmp 0x49cc32
xor eax, eax
mov byte [esi + 0x2c], al
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x2c], 0
je 0x49cc9d
cmp byte [ebp - 0x1b], 0
je 0x49cc9d
mov byte [ebp - 0x1a], 1
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x49ce3c
cmp edi, 0xffffffff
je 0x49ce3c
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]
mov dword [ebp - 0x2c], eax
push 0
lea ecx, [ebp - 0x2c]
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 edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x1a], 0
jne 0x49ccac
mov byte [ebp - 0x19], 1
jmp 0x49ce3c
cmp byte [esi + 0x2c], 0
je 0x49ccbc
cmp byte [ebp - 0x1b], 0
je 0x49ce3c
mov ecx, esi
call fcn.0049c6c0
xor edi, edi
mov dword [ebp - 4], edi
push 0x200
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049c430
add esp, 8
mov dword [esi + 0x1c], eax
cmp eax, edi
je 0x49ce0d
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov edx, dword [ecx + 0x120]
call edx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
mov edx, dword [ecx + 0xfc]
call edx
mov dword [ebp - 0x24], edi
mov eax, 8
mov word [ebp - 0x40], ax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x38], eax
mov edx, dword [esi + 0x1c]
mov edi, dword [edx]
lea ecx, [ebp - 0x24]
push ecx
sub esp, 0x10
mov ecx, esp
mov ebx, dword [ebp - 0x40]
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x3c]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
push edx
mov ecx, dword [edi + 0xe8]
call ecx
mov edi, eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 1
cmp edi, eax
jne 0x49cd5b
mov byte [esi + 0x2c], al
jmp 0x49cd67
xor ebx, ebx
cmp edi, ebx
jl 0x49cd7c
cmp word [ebp - 0x24], bx
je 0x49cd7c
mov ecx, dword [ebp + 8]
mov dword [esi + 0x30], ecx
mov byte [ebp - 0x19], al
mov dword [ebp - 4], 0xffffffff
jmp 0x49ce3c
push edi
push str.Failed_to_load_ConEmu.xml__nHR0x_08X_n
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov edx, dword [edx + 0xf0]
call edx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x49ce0d
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp + 8], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49cde0
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
push str.XmlErrCode_i__Line_i__Pos_i
lea edx, [edi + eax*2]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
jmp 0x49ce3c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49ce52
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 0x20], 0
mov bl, byte [ebp - 0x19]
test bl, bl
jne 0x49ce60
mov ecx, esi
call fcn.0049c6c0
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8