Function at 0x4014d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get file size
Get kernel32 base address
Get process heap flags
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x90
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
movzx eax, byte [section..data]
test edi, edi
jle 0x401878
xor ebx, ebx
jmp 0x401507
add ebx, 1
cmp edi, ebx
je 0x401551
mov ecx, eax
and ecx, 8
je 0x401500
mov eax, dword [esi + ebx*4]
add ebx, 1
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], 0x404047
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x404318
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [section..data]
mov ecx, eax
and ecx, 8
cmp edi, ebx
jne 0x401507
test cl, cl
jne 0x401690
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
cmp edi, 1
jg 0x401598
xor edi, edi
test byte [section..data], 1
jne 0x401780
call dword [sym.imp.ole32.dll_CoUninitialize]
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], str._change
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x4016c0
add esi, 8
sub edi, 2
mov dword [ebp - 0x50], 0
mov eax, edi
mov dword [ebp - 0x48], 0
mov edi, esi
mov esi, eax
jne 0x401608
jmp 0x401e70
cmp esi, 1
je 0x401921
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x40193a
mov eax, dword [edi + 4]
sub esi, 2
add edi, 8
mov dword [ebp - 0x48], eax
test esi, esi
je 0x401895
mov dword [esp + 4], 0x404078
mov eax, dword [edi]
mov dword [esp], eax
call ebx
test eax, eax
je 0x4015e0
mov dword [esp + 4], str._enable
mov eax, dword [edi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x401648
mov dword [ebp - 0x50], 1
sub esi, 1
add edi, 4
mov dword [ebp - 0x4c], 1
jmp 0x401600
mov dword [esp + 4], 0x4040bc
mov eax, dword [edi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x401ee6
movzx eax, byte [section..data]
and eax, 1
cmp esi, 1
je 0x401f41
test al, al
jne 0x401840
mov dword [ebp - 0x4c], 1
sub esi, 2
add edi, 8
jmp 0x401600
mov dword [esp + 0xc], 0x40404b
mov dword [esp + 8], 0x404318
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401559
mov dword [esp + 4], str._create
mov eax, dword [esi + 4]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x4017b0
add esi, 8
sub edi, 2
je 0x401f74
mov eax, edi
mov dword [ebp - 0x50], 2
mov edi, esi
mov dword [ebp - 0x4c], 0
mov esi, eax
mov dword [ebp - 0x48], 0
jmp 0x401730
cmp esi, 1
je 0x401d9f
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x401dd7
mov eax, dword [edi + 4]
sub esi, 2
add edi, 8
mov dword [ebp - 0x48], eax
test esi, esi
je 0x401af1
mov dword [esp + 4], str._xml
mov eax, dword [edi]
mov dword [esp], eax
call ebx
test eax, eax
je 0x401708
mov dword [esp + 4], 0x404078
mov eax, dword [edi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x401810
cmp esi, 1
je 0x401f8e
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x401f27
mov eax, dword [edi + 4]
sub esi, 2
add edi, 8
mov dword [ebp - 0x4c], eax
jmp 0x401728
mov dword [esp + 0xc], str.Print_current_tasks_state_n
mov dword [esp + 8], 0x404318
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
mov dword [esp + 4], str._delete
mov eax, dword [esi + 4]
mov dword [esp], eax
call ebx
test eax, eax
je 0x401a4a
xor edi, edi
test byte [section..data], 1
je 0x40157d
mov eax, dword [esi + 4]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unsupported_command__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x404318
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
mov dword [esp + 4], 0x4041b2
mov eax, dword [edi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x4018e4
mov dword [ebp - 0x50], 6
sub esi, 1
add edi, 4
jmp 0x401728
mov eax, dword [edi + 4]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unsupported__tr_option__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.change_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40167a
test al, 8
jne 0x401690
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
jmp 0x40156e
mov ebx, dword [ebp - 0x48]
mov edi, esi
test ebx, ebx
je 0x401e70
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jne 0x401950
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Missing_change_options_n
mov dword [esp + 8], str.change_command
mov edi, 1
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
mov dword [esp + 4], 0x4041b8
mov eax, dword [edi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x402210
movzx eax, byte [section..data]
and eax, 1
cmp esi, 1
je 0x402256
test al, al
jne 0x4019ec
sub esi, 2
add edi, 8
jmp 0x401728
mov edi, esi
test byte [section..data], 1
jne 0x401a21
mov edi, 1
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
jmp 0x4018be
call sym._get_tasks_root_folder
mov ebx, eax
test eax, eax
je 0x401ede
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov ecx, eax
mov eax, dword [ebx]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], ecx
mov dword [esp], ebx
call dword [eax + 0x34]
mov ecx, dword [ebp - 0x48]
sub esp, 0xc
mov esi, eax
mov dword [esp], ecx
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
test esi, esi
js 0x401ead
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401930
mov edx, dword [ebp - 0x50]
mov eax, dword [ebx]
test edx, edx
je 0x4019de
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [eax + 0x2c]
mov esi, eax
sub esp, 8
mov eax, dword [ebx]
test esi, esi
js 0x4020cf
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
jmp 0x40157d
mov eax, dword [edi + 4]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unsupported__ru_option__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.create_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401916
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.change_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
mov dword [ebp - 0x48], 0
add esi, 8
sub edi, 2
jne 0x401a77
jmp 0x401fc6
test byte [section..data], 8
jne 0x401ac8
sub edi, 1
add esi, 4
test edi, edi
je 0x401e0d
mov dword [esp + 4], 0x4041b2
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
je 0x401a60
mov dword [esp + 4], 0x404078
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x40204e
cmp edi, 1
je 0x402018
mov edx, dword [ebp - 0x48]
test edx, edx
jne 0x402001
mov eax, dword [esi + 4]
sub edi, 2
add esi, 8
mov dword [ebp - 0x48], eax
jmp 0x401a6f
mov dword [esp + 0xc], str.force_opt_n
mov dword [esp + 8], str.delete_command
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401a69
mov edi, esi
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x401f74
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x402289
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x402094
lea eax, [ebp - 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
sub esp, 8
test eax, eax
je 0x401e8a
mov eax, dword [ebp - 0x20]
mov edx, eax
or edx, dword [ebp - 0x1c]
je 0x401e8a
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x402154
lea eax, [ebp - 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov dword [ebp - 0x48], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x48]
sub esp, 4
test edx, edx
je 0x40215e
mov eax, dword [ebp - 0x30]
cmp eax, 2
jbe 0x401bfc
cmp byte [esi], 0xff
je 0x4021b9
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x54], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x18
mov dword [ebp - 0x48], eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
sub esp, 8
mov ebx, eax
test eax, eax
je 0x40218b
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x18
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
call sym._get_tasks_root_folder
mov esi, eax
test eax, eax
je 0x40213e
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysAllocString]
xor ecx, ecx
mov edx, eax
xor eax, eax
sub esp, 4
mov word [ebp - 0x20], cx
mov word [ebp - 0x30], ax
xor eax, eax
mov ecx, dword [esi]
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x40], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [ebp - 0x48], edx
mov dword [esp], esi
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 0x48
mov dword [esp], edx
mov dword [ebp - 0x48], eax
call eax
mov eax, dword [ebp - 0x48]
sub esp, 4
mov dword [esp], ebx
call eax
mov eax, dword [esi]
sub esp, 4
mov dword [esp], esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x4c]
sub esp, 4
test ecx, ecx
js 0x401930
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
jmp 0x40157d
mov edi, esi
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Missing__xml_value_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Duplicated__xml_argument_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401930
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x401fc6
call sym._get_tasks_root_folder
mov ebx, eax
test eax, eax
je 0x401930
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov esi, eax
mov eax, dword [ebx]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x3c]
sub esp, 0xc
mov edi, eax
mov dword [esp], esi
shr edi, 0x1f
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Missing__tn_option_n
jmp 0x4018be
test byte [section..data], 1
jne 0x402115
mov dword [esp], ebx
mov edi, 1
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x40157d
test byte [section..data], 1
je 0x401ede
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.GetTask_failed:__08lx_n
mov dword [esp + 8], str.get_registered_task
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov edi, dword [ebp - 0x4c]
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov eax, dword [edi]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unsupported_arguments__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.change_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401930
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
jmp 0x401dec
mov edi, esi
test al, al
je 0x401930
mov dword [esp + 0xc], str.Missing__tr_value_n
mov dword [esp + 8], str.change_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Missing__tn_argument_n
jmp 0x401dec
mov edi, esi
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Missing__tn_argument_n
mov dword [esp + 8], str.delete_command
mov edi, 1
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
jmp 0x401fdb
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.delete_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov eax, dword [esi]
mov edi, 1
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unsupported_argument__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.delete_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
test byte [section..data], 1
je 0x401930
mov dword [esp + 0xc], str.Could_not_open_file_n
mov edi, 1
mov dword [esp + 8], str.read_file_to_bstr
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
test byte [section..data], 1
je 0x401930
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.put_Enabled_failed:__08lx_n
mov dword [esp + 8], str.change_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov edi, dword [ebp - 0x50]
jmp 0x40157d
mov dword [esp + 0xc], str.Empty_file_n
mov dword [esp + 8], str.read_file_to_bstr
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401e97
mov dword [esp], ebx
mov edi, 1
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
jmp 0x40157d
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
test byte [section..data], 1
je 0x40218b
mov dword [esp + 0xc], str.Read_failed_n
mov dword [esp + 8], str.read_file_to_bstr
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov dword [esp + 8], esi
mov edi, 1
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40157d
cmp byte [esi + 1], 0xfe
jne 0x401bfc
sub eax, 2
shr eax, 1
mov dword [esp + 4], eax
lea eax, [esi + 2]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
push edx
mov ebx, eax
push edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test ebx, ebx
jne 0x401ca3
jmp 0x401930
test byte [section..data], 1
je 0x401930
mov eax, dword [edi]
mov edi, 1
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Unsupported_argument__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.create_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
mov edi, esi
test al, al
je 0x401930
mov dword [esp + 0xc], str.Missing__ru_value_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d
mov edi, 0x80004005
test byte [section..data], 1
je 0x40157d
mov dword [esp + 0xc], str.Missing__xml_argument_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], 0x403000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157d