Function at 0x401050
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x404004]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
xorps xmm0, xmm0
mov dword [esp + 0x10], ebx
add esp, 4
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov ebx, 1
cmp dword [ebp + 8], ebx
jle 0x401506
nop dword [eax]
nop word [eax + eax]
lea edi, [ebx*4]
mov ecx, str.__infile
mov esi, dword [edi + esi]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4010f1
test dl, dl
je 0x4010ed
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4010f1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4010d1
xor eax, eax
jmp 0x4010f6
sbb eax, eax
or eax, 1
test eax, eax
je 0x401294
mov ecx, 0x403280
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401125
test dl, dl
je 0x401121
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401125
add eax, 2
add ecx, 2
test dl, dl
jne 0x401105
xor eax, eax
jmp 0x40112a
sbb eax, eax
or eax, 1
test eax, eax
je 0x401294
mov ecx, str.__outfile
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401160
test dl, dl
je 0x40115c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401160
add eax, 2
add ecx, 2
test dl, dl
jne 0x401140
xor eax, eax
jmp 0x401165
sbb eax, eax
or eax, 1
test eax, eax
je 0x401279
mov ecx, 0x403290
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401194
test dl, dl
je 0x401190
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401194
add eax, 2
add ecx, 2
test dl, dl
jne 0x401174
xor eax, eax
jmp 0x401199
sbb eax, eax
or eax, 1
test eax, eax
je 0x401279
mov ecx, str.__debug
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4011c8
test dl, dl
je 0x4011c4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4011c8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4011a8
xor eax, eax
jmp 0x4011cd
sbb eax, eax
or eax, 1
test eax, eax
je 0x401201
mov ecx, 0x40329c
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4011f8
test dl, dl
je 0x4011f4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4011f8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4011d8
xor eax, eax
jmp 0x4011fd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401209
mov eax, dword [esp + 0xc]
mov byte [eax + 8], 1
mov ecx, str.__help
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401230
test dl, dl
je 0x40122c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401230
add eax, 2
add ecx, 2
test dl, dl
jne 0x401210
xor eax, eax
jmp 0x401235
sbb eax, eax
or eax, 1
test eax, eax
je 0x401502
mov eax, 0x4032a8
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x401262
test cl, cl
je 0x40125e
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x401262
add esi, 2
add eax, 2
test cl, cl
jne 0x401242
xor eax, eax
jmp 0x401267
sbb eax, eax
or eax, 1
mov esi, dword [esp + 0x10]
test eax, eax
je 0x401506
mov edi, dword [esp + 0xc]
jmp 0x4012ac
mov esi, dword [esp + 0x10]
inc ebx
cmp ebx, dword [ebp + 8]
je 0x401506
mov eax, dword [edi + esi + 4]
mov edi, dword [esp + 0xc]
mov dword [edi + 4], eax
jmp 0x4012ac
mov esi, dword [esp + 0x10]
inc ebx
cmp ebx, dword [ebp + 8]
je 0x401506
mov eax, dword [edi + esi + 4]
mov edi, dword [esp + 0xc]
mov dword [edi], eax
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4010c0
mov eax, dword [edi]
test eax, eax
je 0x401506
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0x4032ac
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x40131b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ebx, dword [esp + 0x10]
add esp, 4
push eax
push dword [ebx]
push str.ERROR:_Could_not_open_input_file__s:__s_n
call fcn.00401010
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00401589
mov esp, ebp
pop ebp
ret
push 0x30
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
mov eax, dword [esp + 0x3c]
add esp, 8
cmp eax, 8
jge 0x401384
push str.ERROR:_Input_file_is_too_small_to_contain_valid_plist_data._n
call fcn.00401010
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00401589
mov esp, ebp
pop ebp
ret
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push esi
push dword [esp + 0x38]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [esp + 0x24]
add esp, 0x14
push esi
push edi
call dword [sym.imp.plist.dll_plist_is_binary]
add esp, 8
test eax, eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
je 0x4013e6
call dword [sym.imp.plist.dll_plist_from_bin]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
call dword [sym.imp.plist.dll_plist_to_xml]
jmp 0x401403
call dword [sym.imp.plist.dll_plist_from_xml]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
call dword [sym.imp.plist.dll_plist_to_bin]
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.plist.dll_plist_free]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push edi
call esi
add esp, 4
cmp dword [esp + 0x14], 0
je 0x4014ed
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x4014ba
push 0x40331c
push eax
call ebx
mov edi, eax
add esp, 8
test edi, edi
jne 0x40148b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ebx, dword [esp + 0x10]
add esp, 4
push eax
push dword [ebx + 4]
push str.ERROR:_Could_not_open_output_file__s:__s_n
call fcn.00401010
add esp, 0xc
push ebx
call esi
add esp, 4
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00401589
mov esp, ebp
pop ebp
ret
push edi
push 1
push dword [esp + 0x24]
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
push dword [esp + 0x14]
call esi
add esp, 4
push dword [esp + 0xc]
call esi
jmp 0x401572
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push dword [esp + 0x24]
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [esp + 0x14]
call esi
add esp, 4
push dword [esp + 0xc]
call esi
jmp 0x401572
push str.ERROR:_Failed_to_convert_input_file._n
call fcn.00401010
add esp, 4
push dword [esp + 0xc]
call esi
jmp 0x401572
mov esi, dword [esp + 0x10]
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x2f
push dword [esi]
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x401527
inc eax
jmp 0x401529
mov eax, dword [esi]
push eax
push str.Usage:__s__i__infile_FILE___o__outfile_FILE____d__debug__n
call fcn.00401010
push str.Convert_a_plist_FILE_from_binary_to_XML_format_or_vice_versa._n_n
call fcn.00401010
add esp, 0xc
push str.___i____infile_FILE_tThe_FILE_to_convert_from_n
call fcn.00401010
add esp, 4
push str.___o____outfile_FILE_tOptional_FILE_to_convert_to_or_stdout_if_not_used_n
call fcn.00401010
add esp, 4
push str.___d____debug_t_tEnable_extended_debug_output_n
call fcn.00401010
add esp, 4
push 0x403270
call fcn.00401010
mov ecx, dword [esp + 0x58]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401589
mov esp, ebp
pop ebp
ret