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, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xa8
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
movzx eax, byte [global___dbch]
test edi, edi
jle 0x401860
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], 0x404045
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [global___dbch]
mov ecx, eax
and ecx, 8
cmp edi, ebx
jne 0x401507
test cl, cl
jne 0x401680
mov dword [esp], 0
call sym._CoInitialize_4
sub esp, 4
cmp edi, 1
jg 0x401590
xor edi, edi
test byte [0x403000], 1
jne 0x401768
call sym._CoUninitialize_0
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 - 0x60], eax
test eax, eax
jne 0x4016b0
mov dword [ebp - 0x64], 0
add esi, 8
mov dword [ebp - 0x5c], 0
sub edi, 2
jne 0x4015f8
jmp 0x401e43
cmp edi, 1
je 0x401906
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x401922
mov eax, dword [esi + 4]
sub edi, 2
add esi, 8
mov dword [ebp - 0x5c], eax
test edi, edi
je 0x40187c
mov dword [esp + 4], 0x404076
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
je 0x4015d0
mov dword [esp + 4], str._enable
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x401638
mov dword [ebp - 0x64], 1
sub edi, 1
add esi, 4
mov dword [ebp - 0x60], 1
jmp 0x4015f0
mov dword [esp + 4], 0x4040ba
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x401eb9
movzx eax, byte [global___dbch]
and eax, 1
cmp edi, 1
je 0x401f14
test al, al
jne 0x401828
mov dword [ebp - 0x60], 1
sub edi, 2
add esi, 8
jmp 0x4015f0
mov dword [esp + 0xc], 0x404049
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 4], global___dbch
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 0x401798
add esi, 8
sub edi, 2
je 0x401f45
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
jmp 0x401718
cmp edi, 1
je 0x401d76
mov edx, dword [ebp - 0x5c]
test edx, edx
jne 0x401dac
mov eax, dword [esi + 4]
sub edi, 2
add esi, 8
mov dword [ebp - 0x5c], eax
test edi, edi
je 0x401ad1
mov dword [esp + 4], str._xml
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
je 0x4016f0
mov dword [esp + 4], 0x404076
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x4017f8
cmp edi, 1
je 0x401f5f
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x401efa
mov eax, dword [esi + 4]
sub edi, 2
add esi, 8
mov dword [ebp - 0x60], eax
jmp 0x401710
mov dword [esp + 0xc], str.Print_current_tasks_state_n
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
mov dword [esp + 4], str._delete
mov eax, dword [esi + 4]
mov dword [esp], eax
call ebx
test eax, eax
je 0x401a2a
xor edi, edi
test byte [0x403000], 1
je 0x40157c
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], global___FUNCTION__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
mov dword [esp + 4], 0x4041ae
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x4018c9
mov dword [ebp - 0x64], 6
sub edi, 1
add esi, 4
jmp 0x401710
mov eax, dword [esi + 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], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40166a
test al, 8
jne 0x401680
mov dword [esp], 0
call sym._CoInitialize_4
sub esp, 4
jmp 0x40156d
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x401e43
mov ebx, dword [ebp - 0x60]
test ebx, ebx
jne 0x401938
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Missing_change_options_n
mov dword [esp + 8], str.change_command
mov edi, 1
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
mov dword [esp + 4], 0x4041b4
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x4021e6
movzx eax, byte [global___dbch]
and eax, 1
cmp edi, 1
je 0x40222c
test al, al
jne 0x4019cc
sub edi, 2
add esi, 8
jmp 0x401710
test byte [0x403000], 1
jne 0x401a01
lea esi, [esi]
nop
mov edi, 1
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
jmp 0x4018a3
call dbg.get_tasks_root_folder
mov ebx, eax
test eax, eax
je 0x401eb1
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._SysAllocString_4
lea ecx, [ebp - 0x28]
mov esi, eax
mov eax, dword [ebx]
sub esp, 4
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x34]
sub esp, 0xc
mov dword [ebp - 0x5c], eax
mov dword [esp], esi
call sym._SysFreeString_4
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], ebx
call dword [eax + 8]
mov ecx, dword [ebp - 0x5c]
sub esp, 4
test ecx, ecx
js 0x401e80
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401918
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebx]
test ecx, ecx
je 0x4019be
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 0x4020fa
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
jmp 0x40157c
mov eax, dword [esi + 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], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4018fb
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.change_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
mov dword [ebp - 0x5c], 0
add esi, 8
sub edi, 2
jne 0x401a57
jmp 0x402093
test byte [0x403000], 8
jne 0x401aa8
sub edi, 1
add esi, 4
test edi, edi
je 0x401de2
mov dword [esp + 4], 0x4041ae
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
je 0x401a40
mov dword [esp + 4], 0x404076
mov eax, dword [esi]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x402012
cmp edi, 1
je 0x401fdc
mov edx, dword [ebp - 0x5c]
test edx, edx
jne 0x402058
mov eax, dword [esi + 4]
sub edi, 2
add esi, 8
mov dword [ebp - 0x5c], eax
jmp 0x401a4f
mov dword [esp + 0xc], str.force_opt_n
mov dword [esp + 8], str.delete_command
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401a49
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x401f45
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40225d
mov eax, dword [ebp - 0x5c]
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 0x4020aa
lea eax, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
sub esp, 8
test eax, eax
je 0x401e5d
mov eax, dword [ebp - 0x28]
mov edx, eax
or edx, dword [ebp - 0x24]
je 0x401e5d
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 0x401f95
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
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 - 0x5c], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x5c]
sub esp, 4
test edx, edx
je 0x401fa1
mov eax, dword [ebp - 0x38]
cmp eax, 2
jbe 0x401bda
cmp byte [esi], 0xff
je 0x402169
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x68], 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 - 0x5c], eax
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._SysAllocStringLen_8
sub esp, 8
mov ebx, eax
test eax, eax
je 0x401fae
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x38]
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 dbg.get_tasks_root_folder
mov esi, eax
test eax, eax
je 0x4020e5
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._SysAllocString_4
xor ecx, ecx
mov edx, eax
xor eax, eax
sub esp, 4
mov word [ebp - 0x28], cx
mov word [ebp - 0x38], ax
xor eax, eax
mov ecx, dword [esi]
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [ebp - 0x60], edx
mov dword [esp], esi
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x60]
sub esp, 0x48
mov dword [ebp - 0x5c], eax
mov dword [esp], edx
call sym._SysFreeString_4
sub esp, 4
mov dword [esp], ebx
call sym._SysFreeString_4
mov eax, dword [esi]
sub esp, 4
mov dword [esp], esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x5c]
sub esp, 4
test ecx, ecx
js 0x401918
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Missing__xml_value_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Duplicated__xml_argument_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401918
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x402093
call dbg.get_tasks_root_folder
mov ebx, eax
test eax, eax
je 0x401918
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._SysAllocString_4
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 sym._SysFreeString_4
mov eax, dword [ebx]
sub esp, 4
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Missing__tn_option_n
jmp 0x4018a3
test byte [0x403000], 1
jne 0x402140
mov dword [esp], ebx
mov edi, 1
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x40157c
test byte [0x403000], 1
je 0x401eb1
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.GetTask_failed:__08x_n
mov dword [esp + 8], str.get_registered_task
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov edi, dword [ebp - 0x60]
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
mov eax, dword [esi]
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], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401918
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
jmp 0x401dc1
test al, al
je 0x401918
mov dword [esp + 0xc], str.Missing__tr_value_n
mov dword [esp + 8], str.change_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Missing__tn_argument_n
jmp 0x401dc1
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test byte [0x403000], 1
jne 0x4021bd
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 0x40157c
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.delete_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
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], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
mov dword [esp + 8], str.delete_command
mov edi, 1
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0xc], str.Missing__tn_argument_n
jmp 0x40206d
test byte [0x403000], 1
je 0x401918
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], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
mov dword [esp], ebx
mov edi, 1
call sym._SysFreeString_4
sub esp, 4
jmp 0x40157c
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
test byte [0x403000], 1
je 0x401918
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.put_Enabled_failed:__08x_n
mov dword [esp + 8], str.change_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov edi, dword [ebp - 0x64]
jmp 0x40157c
mov dword [esp + 0xc], str.Empty_file_n
mov dword [esp + 8], str.read_file_to_bstr
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401e6a
cmp byte [esi + 1], 0xfe
jne 0x401bda
sub eax, 2
shr eax, 1
mov dword [esp + 4], eax
lea eax, [esi + 2]
mov dword [esp], eax
call sym._SysAllocStringLen_8
sub esp, 8
mov ebx, eax
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
test ebx, ebx
jne 0x401c80
jmp 0x401918
mov dword [esp + 0xc], str.Read_filed_n
mov dword [esp + 8], str.read_file_to_bstr
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x401fae
test byte [0x403000], 1
je 0x401918
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.create_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
test al, al
je 0x401918
mov dword [esp + 0xc], str.Missing__ru_value_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c
mov edi, 0x80004005
test byte [0x403000], 1
je 0x40157c
mov dword [esp + 0xc], str.Missing__xml_argument_n
mov dword [esp + 8], str.create_command
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x40157c