Function at 0x401000
Capabilities:
Get file size
Get process heap flags
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx eax, byte [section..data]
test esi, esi
jle 0x40106a
xor ebx, ebx
jmp 0x401035
inc ebx
cmp esi, ebx
je 0x40106a
test al, 8
je 0x401030
mov ecx, dword [edi + ebx*4]
call sym._wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x404220
mov dword [esp + 8], str.wmain
mov dword [esp], 3
call sym._wine_dbg_log
movzx eax, byte [section..data]
jmp 0x401030
test al, 8
je 0x40108a
mov dword [esp + 0xc], 0x40422a
mov dword [esp + 8], str.wmain
mov dword [esp], 3
call sym._wine_dbg_log
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
cmp esi, 1
jg 0x4010d6
xor esi, esi
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Print_current_tasks_state_n
mov dword [esp + 8], str.wmain
mov dword [esp], 0
call sym._wine_dbg_log
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [esp], eax
mov dword [esp + 4], str._change
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x40114a
mov eax, dword [edi + 4]
mov dword [esp], eax
mov dword [esp + 4], str._create
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x40125a
mov eax, dword [edi + 4]
mov dword [esp], eax
mov dword [esp + 4], str._delete
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x4013c7
xor esi, esi
test byte [section..data], 1
je 0x4010c6
mov ecx, dword [edi + 4]
call sym._wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_command__s_n
jmp 0x4010b2
add esi, 0xfffffffe
je 0x40153c
add edi, 8
mov dword [esp + 0x50], 0
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
jmp 0x4011a3
mov ecx, 0xffffffff
mov ebx, 1
mov dword [esp + 0x54], 1
lea edi, [edi + ebx*4]
add esi, ecx
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
je 0x40148b
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], 0x4042a8
call ebx
test eax, eax
je 0x401230
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], str._enable
call ebx
mov dword [esp + 0x50], 1
test eax, eax
je 0x401180
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], 0x4042fc
call ebx
test eax, eax
jne 0x4016bb
movzx eax, byte [section..data]
cmp esi, 1
jle 0x4016ed
mov ebx, 2
mov ecx, 0xfffffffe
test al, 1
je 0x401192
mov ecx, dword [edi + 4]
call sym._wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported__tr_option__s_n
mov dword [esp + 8], str.change_command
mov dword [esp], 0
call sym._wine_dbg_log
jmp 0x401250
cmp esi, 1
jle 0x40170f
cmp dword [esp + 0x4c], 0
jne 0x401736
mov eax, dword [edi + 4]
mov dword [esp + 0x4c], eax
mov ebx, 2
mov ecx, 0xfffffffe
jmp 0x401192
add esi, 0xfffffffe
je 0x401694
add edi, 8
mov dword [esp + 0x54], 2
mov dword [esp + 0x50], 0
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 0x4c], 0
jmp 0x4012b2
mov eax, dword [edi + 4]
mov dword [esp + 0x4c], eax
mov ecx, 2
mov ebx, 0xfffffffe
lea edi, [edi + ecx*4]
add esi, ebx
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
je 0x401563
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], str._xml
call ebx
test eax, eax
je 0x401370
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], 0x4042a8
call ebx
test eax, eax
je 0x401390
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], 0x40444c
call ebx
test eax, eax
je 0x4013b0
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], 0x404452
call ebx
test eax, eax
jne 0x4018d6
movzx eax, byte [section..data]
cmp esi, 1
jle 0x401908
mov ecx, 2
mov ebx, 0xfffffffe
test al, 1
je 0x4012a1
mov ecx, dword [edi + 4]
call sym._wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported__ru_option__s_n
mov dword [esp + 8], str.create_command
mov dword [esp], 0
call sym._wine_dbg_log
mov ecx, 2
jmp 0x4012a1
cmp esi, 1
jle 0x401808
cmp dword [esp + 0x4c], 0
je 0x401290
jmp 0x401861
cmp esi, 1
jle 0x40192a
cmp dword [esp + 0x50], 0
jne 0x401951
mov eax, dword [edi + 4]
mov dword [esp + 0x50], eax
jmp 0x401297
mov dword [esp + 0x54], 6
mov ecx, 1
mov ebx, 0xffffffff
jmp 0x4012a1
add esi, 0xfffffffe
je 0x4017ba
add edi, 8
mov dword [esp + 0x4c], 0
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
jmp 0x401401
lea edi, [edi + eax*4]
add esi, ebx
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
je 0x40175d
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], 0x40444c
call ebx
test eax, eax
je 0x401452
mov eax, dword [edi]
mov dword [esp], eax
mov dword [esp + 4], 0x4042a8
call ebx
test eax, eax
jne 0x40182f
cmp esi, 1
jle 0x401888
cmp dword [esp + 0x4c], 0
jne 0x4018af
mov eax, dword [edi + 4]
mov dword [esp + 0x4c], eax
mov eax, 2
mov ebx, 0xfffffffe
jmp 0x4013f0
mov eax, 1
mov ebx, 0xffffffff
test byte [section..data], 8
je 0x4013f0
mov dword [esp + 0xc], str.force_opt_n
mov dword [esp + 8], str.delete_command
mov dword [esp], 3
call sym._wine_dbg_log
mov eax, 1
jmp 0x4013f0
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x40153c
cmp dword [esp + 0x50], 0
je 0x4017e1
call sym._get_tasks_root_folder
test eax, eax
je 0x401a16
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysAllocString]
sub esp, 4
mov edi, eax
mov eax, dword [esi]
lea ecx, [esp + 0x68]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [eax + 0x34]
sub esp, 0xc
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 8]
sub esp, 4
test ebx, ebx
js 0x40199f
mov ebx, dword [esp + 0x68]
mov esi, 1
test ebx, ebx
je 0x4010c6
cmp dword [esp + 0x54], 0
je 0x40152a
mov eax, dword [ebx]
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
call dword [eax + 0x2c]
sub esp, 8
test eax, eax
js 0x401b06
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
xor esi, esi
jmp 0x4010c6
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__tn_option_n
mov dword [esp + 8], str.change_command
jmp 0x4010ba
cmp dword [esp + 0x50], 0
je 0x401694
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x401978
movaps xmm0, xmmword [0x404210]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4019be
mov edi, eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
sub esp, 8
test eax, eax
je 0x4019e5
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
or eax, ecx
je 0x4019e5
mov eax, dword fs:[0x18]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401a20
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x80]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x10], 0
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test esi, esi
je 0x401a2c
mov eax, dword [esp + 0x80]
cmp eax, 3
jb 0x401a87
cmp byte [ebx], 0xff
jne 0x401a87
cmp byte [ebx + 1], 0xfe
jne 0x401a87
add eax, 0xfffffffe
shr eax, 1
mov ecx, ebx
add ecx, 2
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
sub esp, 8
mov edi, eax
jmp 0x401b3b
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__tn_argument_n
mov dword [esp + 8], str.create_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov ecx, dword [edi]
call sym._wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_arguments__s_n
mov dword [esp + 8], str.change_command
jmp 0x4010ba
mov esi, 1
test al, 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__tr_value_n
mov dword [esp + 8], str.change_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.change_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
mov dword [esp + 8], str.change_command
jmp 0x4010ba
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x4017ba
call sym._get_tasks_root_folder
test eax, eax
je 0x401a16
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysAllocString]
sub esp, 4
mov ebx, eax
mov eax, dword [edi]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], 0
call dword [eax + 0x3c]
sub esp, 0xc
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 8]
sub esp, 4
shr esi, 0x1f
jmp 0x4010c6
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__tn_argument_n
mov dword [esp + 8], str.delete_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing_change_options_n
mov dword [esp + 8], str.change_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__xml_value_n
mov dword [esp + 8], str.create_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov ecx, dword [edi]
call sym._wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_argument__s_n
mov dword [esp + 8], str.delete_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Duplicated__xml_argument_n
mov dword [esp + 8], str.create_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.delete_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
mov dword [esp + 8], str.delete_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov ecx, dword [edi]
call sym._wine_dbgstr_wn
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported_argument__s_n
mov dword [esp + 8], str.create_command
jmp 0x4010ba
mov esi, 1
test al, 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__ru_value_n
mov dword [esp + 8], str.create_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__tn_value_n
mov dword [esp + 8], str.create_command
jmp 0x4010ba
mov esi, 1
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Duplicated__tn_argument_n
mov dword [esp + 8], str.create_command
jmp 0x4010ba
mov esi, 0x80004005
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0xc], str.Missing__xml_argument_n
mov dword [esp + 8], str.create_command
jmp 0x4010ba
test byte [section..data], 1
je 0x401a16
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.GetTask_failed:__08lx_n
mov dword [esp + 8], str.get_registered_task
jmp 0x4019d7
test byte [section..data], 1
je 0x401a16
mov dword [esp + 0xc], str.Could_not_open_file_n
mov dword [esp + 8], str.read_file_to_bstr
mov dword [esp], 0
call sym._wine_dbg_log
jmp 0x401a16
test byte [section..data], 1
je 0x401a0a
mov dword [esp + 0xc], str.Empty_file_n
mov dword [esp + 8], str.read_file_to_bstr
mov dword [esp], 0
call sym._wine_dbg_log
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov esi, 1
jmp 0x4010c6
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test byte [section..data], 1
je 0x401a51
mov dword [esp + 0xc], str.Read_failed_n
mov dword [esp + 8], str.read_file_to_bstr
mov dword [esp], 0
call sym._wine_dbg_log
mov eax, dword fs:[0x18]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov esi, 1
jmp 0x4010c6
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
sub esp, 8
test eax, eax
je 0x401b39
mov esi, eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
mov edi, esi
jmp 0x401b3b
mov edi, eax
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
test byte [section..data], 1
je 0x4010c6
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.put_Enabled_failed:__08lx_n
mov dword [esp + 8], str.change_command
jmp 0x4010ba
xor edi, edi
mov eax, dword fs:[0x18]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov esi, 1
test edi, edi
je 0x4010c6
call sym._get_tasks_root_folder
test eax, eax
je 0x401c42
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysAllocString]
sub esp, 4
mov dword [esp + 0x50], eax
mov word [esp + 0x68], 0
mov word [esp + 0x58], 0
mov word [esp + 0x80], 0
mov edx, dword [ebx]
movups xmm0, xmmword [esp + 0x68]
movups xmmword [esp + 0x34], xmm0
movups xmm0, xmmword [esp + 0x58]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [esp + 0x10], xmm0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x30], 0
call dword [edx + 0x40]
sub esp, 0x48
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 8]
sub esp, 4
cmp dword [esp + 0x4c], 0
js 0x4010c6
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
jmp 0x401532
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
jmp 0x4010c6