Function at 0x4ca3cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.004f4290
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1058], eax
push edi
mov edi, ecx
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x1034], edi
mov esi, ebx
mov dword [ebp - 0x1038], ebx
mov dword [ebp - 0x1054], ebx
mov dword [ebp - 0x1048], ebx
mov dword [ebp - 0x1040], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x2c]
push 0x521bcc
push eax
call fcn.00409b1f
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x550b9c
push 4
push eax
call fcn.00401a0b
mov ecx, edi
cmp dword [0x5a22a0], ebx
jne 0x4ca45b
push ebx
push str.CreateBatchFile_failed__gpConEmuNULL
call fcn.004cd426
jmp 0x4cb29b
lea eax, [ebp - 0x1054]
push eax
mov eax, dword [edi + 0x28]
push str.ConEmuUpdate.cmd
push dword [eax + 0x34]
call fcn.004cb2ae
mov ebx, dword [ebp - 0x1054]
mov dword [ebp - 0x105c], eax
test eax, eax
je 0x4cb281
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str._echo_off_r_n
call esi
xor ecx, ecx
mov dword [ebp - 0x103c], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str._echo_off_r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x103c]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
push 0xffffffffffffffff
push str._r_nset_ConEmuInUpdateYES_r_n
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4ca50b
push str._r_nset_ConEmuInUpdateYES_r_n
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.WideCharToMultiByte_failed__len_i
mov ecx, edi
call fcn.004cd426
jmp 0x4cb272
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x103c], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb233
mov eax, dword [ebp - 0x103c]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb233
push str.cd__d__
call esi
xor ecx, ecx
mov dword [ebp - 0x103c], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str.cd__d__
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb233
mov eax, dword [ebp - 0x103c]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb233
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
mov eax, dword [0x5a22a0]
push 0xffffffffffffffff
add eax, 0xc9a
push eax
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4ca5c5
mov eax, dword [0x5a22a0]
add eax, 0xc9a
push eax
jmp 0x4ca4f3
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x103c], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb233
mov eax, dword [ebp - 0x103c]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb233
push str.__r_necho_Current_folder_r_ncd_r_necho_._r_n_r_necho_Starting_update..._r_n
call esi
xor ecx, ecx
mov dword [ebp - 0x103c], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str.__r_necho_Current_folder_r_ncd_r_necho_._r_n_r_necho_Starting_update..._r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb233
mov eax, dword [ebp - 0x103c]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb233
mov ecx, dword [edi + 0x28]
call fcn.004ce65a
mov ecx, dword [edi + 0x28]
cmp al, 1
jne 0x4ca65f
lea eax, [ebp - 0xc]
push eax
call fcn.004ce7fe
jmp 0x4ca664
call fcn.004ce63f
xor ecx, ecx
mov dword [ebp - 0x103c], eax
mov eax, ecx
mov dword [ebp - 0x1050], ecx
test eax, eax
je 0x4ca6a0
mov eax, dword [ebp - 0x1040]
test eax, eax
je 0x4ca85f
lea eax, [eax*2 + 2]
push eax
call fcn.004e1c0a
mov dword [ebp - 0x1048], eax
mov eax, dword [ebp - 0x1050]
pop ecx
mov ecx, dword [ebp - 0x103c]
mov edx, dword [ebp - 0x1048]
mov dword [ebp - 0x104c], ecx
mov dword [ebp - 0x1044], edx
movzx ecx, word [ecx]
test cx, cx
je 0x4ca7cc
mov ebx, dword [ebp - 0x1050]
mov edi, dword [ebp - 0x104c]
push 0x25
pop eax
mov dword [ebp - 0x104c], edi
cmp cx, ax
je 0x4ca6f8
test ebx, ebx
je 0x4ca6ed
mov word [edx], cx
add edx, 2
jmp 0x4ca795
inc dword [ebp - 0x1040]
jmp 0x4ca7a9
add edi, 2
push 0x25
pop ecx
movzx eax, word [edi]
sub eax, ecx
je 0x4ca741
sub eax, 0xc
je 0x4ca739
sub eax, 1
je 0x4ca72b
sub eax, 1
je 0x4ca726
sub eax, 1
je 0x4ca721
mov edi, dword [ebp - 0x104c]
jmp 0x4ca6de
lea edx, [ebp - 0x2c]
jmp 0x4ca74a
lea edx, [ebp - 0xc]
jmp 0x4ca74a
mov edx, dword [0x5a22a0]
add edx, 0xc9a
jmp 0x4ca746
mov edx, dword [ebp - 0x1058]
jmp 0x4ca746
mov edx, 0x5504ec
test edx, edx
je 0x4ca7a3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x104c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x1060]
jne 0x4ca755
sub ecx, dword [ebp - 0x104c]
sar ecx, 1
mov dword [ebp - 0x104c], ecx
test ebx, ebx
je 0x4ca79d
push edx
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x1044]
call fcn.00401a0b
mov eax, dword [ebp - 0x104c]
mov edx, dword [ebp - 0x1044]
lea edx, [edx + eax*2]
mov dword [ebp - 0x1044], edx
jmp 0x4ca7a9
add dword [ebp - 0x1040], ecx
mov edx, dword [ebp - 0x1044]
add edi, 2
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x4ca6d0
mov edi, dword [ebp - 0x1034]
mov ebx, dword [ebp - 0x1054]
mov eax, dword [ebp - 0x1050]
test eax, eax
je 0x4ca7d5
xor ecx, ecx
mov word [edx], cx
inc eax
mov dword [ebp - 0x1050], eax
cmp eax, 2
jl 0x4ca674
push 0x564f9c
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push 0x564f9c
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1048]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4ca891
push dword [ebp - 0x1048]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.WideCharToMultiByte_failed__len_i
jmp 0x4cb250
mov ecx, dword [edi + 0x28]
xor eax, eax
push eax
push dword [ebp - 0x103c]
call fcn.004ce65a
cmp al, 1
mov edx, 0x564f54
mov ecx, 0x55c8d0
cmovne ecx, edx
push ecx
push str.Invalid__s_update_command___s_
mov ecx, edi
call fcn.004cd2f5
jmp 0x4cb257
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push str._r_ncall
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str._r_ncall
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1048]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4ca848
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push str._r_nif_errorlevel_1_goto_err_r_n
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str._r_nif_errorlevel_1_goto_err_r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
mov eax, dword [edi + 0x28]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4caac1
xor ecx, ecx
cmp word [eax], cx
je 0x4caac1
push 0x557d6c
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push 0x557d6c
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
mov eax, dword [edi + 0x28]
push 0xffffffffffffffff
push dword [eax + 0x30]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4caa41
mov eax, dword [edi + 0x28]
push dword [eax + 0x30]
jmp 0x4ca84e
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push 0x557d6c
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push 0x557d6c
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor eax, eax
push eax
push eax
push 0x1000
lea eax, [ebp - 0x102c]
push eax
push 0xffffffffffffffff
push str._r_nset_ConEmuInUpdate_r_n
xor eax, eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4caaf1
push str._r_nset_ConEmuInUpdate_r_n
jmp 0x4ca84e
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push str._r_necho_Starting_ConEmu..._r_n
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str._r_necho_Starting_ConEmu..._r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
mov ecx, dword [0x5a22a0]
xor eax, eax
push eax
call fcn.0041e97a
mov dword [ebp - 0x103c], eax
test eax, eax
je 0x4cac86
xor ecx, ecx
cmp word [eax], cx
je 0x4cac86
push str.cd__d__
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str.cd__d__
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
push 0xffffffffffffffff
push dword [ebp - 0x103c]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4cac06
push dword [ebp - 0x103c]
jmp 0x4ca84e
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push str.__r_n
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str.__r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push str.start__ConEmu___
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str.start__ConEmu___
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
mov eax, dword [0x5a22a0]
push 0xffffffffffffffff
add eax, 0xa90
push eax
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4cacfe
mov eax, dword [0x5a22a0]
add eax, 0xa90
push eax
jmp 0x4ca84e
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push 0x565034
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push 0x565034
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
cmp byte [edi + 0x1c4], 0
je 0x4cae77
push str._demote__run__
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str._demote__run__
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
mov eax, dword [0x5a22a0]
push 0xffffffffffffffff
add eax, 0xa90
push eax
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4cacee
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push 0x565034
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push 0x565034
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
mov ecx, dword [0x5a22a0]
lea ecx, [ecx + 0x76c]
call fcn.004e2932
test al, al
jne 0x4caf59
mov ecx, dword [0x5a22a0]
xor eax, eax
push eax
push eax
push 0x1000
lea eax, [ebp - 0x102c]
push eax
push 0xffffffffffffffff
lea ecx, [ecx + 0x76c]
call fcn.0044612f
push eax
xor eax, eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4caed9
mov ecx, dword [0x5a22a0]
lea ecx, [ecx + 0x76c]
call fcn.0044612f
jmp 0x4cacf8
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push 0x55acf0
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push 0x55acf0
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
mov ecx, dword [0x5a22a0]
lea ecx, [ecx + 0x7c8]
call fcn.004e2932
test al, al
jne 0x4caff8
mov ecx, dword [0x5a22a0]
xor eax, eax
push eax
push eax
push 0x1000
lea eax, [ebp - 0x102c]
push eax
push 0xffffffffffffffff
lea ecx, [ecx + 0x7c8]
call fcn.0044612f
push eax
xor eax, eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4cafb6
mov ecx, dword [0x5a22a0]
lea ecx, [ecx + 0x7c8]
jmp 0x4caecf
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push str._r_ngoto_fin_r_n
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str._r_ngoto_fin_r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push str._r_n:err_r_n
call esi
mov esi, eax
xor eax, eax
push eax
lea eax, [ebp - 0x1030]
push eax
push esi
push str._r_n:err_r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
cmp esi, dword [ebp - 0x1030]
jne 0x4cb244
mov ecx, dword [edi + 0x28]
call fcn.004ce65a
mov esi, str.echo__aInstallation_failed_a
cmp al, 1
mov edx, str.echo__aExtraction_failed_a_r_n
mov ecx, esi
cmovne ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
mov ecx, dword [edi + 0x28]
push eax
call fcn.004ce65a
cmp al, 1
mov eax, str.echo__aExtraction_failed_a_r_n
cmovne esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str._r_npause_r_n:fin_r_n
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str._r_npause_r_n:fin_r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
mov eax, dword [edi + 0x28]
cmp byte [eax + 0x38], 0
jne 0x4cb202
push str.del__
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push str.del__
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
xor ecx, ecx
lea eax, [ebp - 0x102c]
push ecx
push ecx
push 0x1000
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1058]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4cb18e
push dword [ebp - 0x1058]
jmp 0x4ca84e
lea eax, [ebp - 0x102c]
push eax
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push 0x5650b4
call esi
xor ecx, ecx
mov dword [ebp - 0x1034], eax
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push eax
push 0x5650b4
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
mov eax, dword [ebp - 0x1034]
cmp eax, dword [ebp - 0x1030]
jne 0x4cb244
push str.del___0___exit_r_n
call esi
mov esi, eax
xor eax, eax
push eax
lea eax, [ebp - 0x1030]
push eax
push esi
push str.del___0___exit_r_n
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cb244
cmp esi, dword [ebp - 0x1030]
jne 0x4cb244
xor esi, esi
inc esi
jmp 0x4cb25d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteBatch_failed__code_u
jmp 0x4ca4ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteBatch_failed__code_u
mov ecx, edi
call fcn.004cd426
mov esi, dword [ebp - 0x1038]
mov eax, dword [ebp - 0x1048]
test eax, eax
je 0x4cb26e
push eax
call fcn.004e1bea
pop ecx
test esi, esi
jne 0x4cb285
mov esi, dword [ebp - 0x105c]
push esi
call fcn.004e1bea
pop ecx
xor eax, eax
mov esi, eax
jmp 0x4cb28b
mov esi, dword [ebp - 0x105c]
test ebx, ebx
je 0x4cb29b
cmp ebx, 0xffffffff
je 0x4cb29b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 4