Function at 0x419cab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x840], 0x4be66c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
push edi
mov edi, ecx
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x83c], 0x4be670
mov dword [ebp - 0x838], str.w__ccsUTF_16LE
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x820], eax
test edi, edi
je 0x41a066
test esi, esi
je 0x41a066
cmp byte [edi], al
je 0x41a066
cmp byte [esi], al
je 0x41a066
call fcn.00403761
mov dword [ebp - 0x814], eax
test eax, eax
jne 0x419d5e
push edi
push str.Could_not_convert__s_to_UTF_16
call fcn.0042ed57
pop ecx
jmp 0x41a033
mov ecx, str._SetupData_
call fcn.00403761
mov dword [ebp - 0x81c], eax
test eax, eax
jne 0x419d79
push str._SetupData_
jmp 0x419d4e
mov ecx, esi
call fcn.00403761
mov dword [ebp - 0x824], eax
test eax, eax
jne 0x419d8d
push esi
jmp 0x419d4e
push str.r__ccsUNICODE
push dword [ebp - 0x814]
call fcn.00481459
mov esi, eax
mov dword [ebp - 0x830], esi
pop ecx
pop ecx
test esi, esi
jne 0x419db3
push edi
push str.Could_not_open_file__s_n
jmp 0x419d53
push esi
push 1
lea eax, [ebp - 0x828]
push 2
push eax
call fcn.0048afe7
xor ecx, ecx
add esp, 0x10
inc ecx
cmp eax, ecx
je 0x419de0
push edi
push str.Could_not_read_file__s_n
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x419f46
movzx eax, word [ebp - 0x828]
cmp eax, 0xbbef
je 0x419dfb
xor edx, edx
cmp eax, 0xfeff
push 2
pop ecx
cmovne ecx, edx
push 0
push 0
push esi
mov dword [ebp - 0x818], ecx
call fcn.0048bb89
add esp, 0xc
push 2
push dword [ebp - 0x814]
call fcn.004891c7
pop ecx
add eax, 2
push eax
call fcn.0047b53f
mov ebx, eax
mov dword [ebp - 0x810], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x419e3f
push str.Could_not_allocate_space_for_temporary_output_name_n
call fcn.0042ed57
jmp 0x419dda
push dword [ebp - 0x814]
push ebx
call fcn.0048bbc3
push ebx
call fcn.004891c7
push 0x7e
pop ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x818]
push dword [ebp + eax*4 - 0x840]
push ebx
call fcn.00481459
add esp, 0x14
mov dword [ebp - 0x808], eax
test eax, eax
jne 0x419e83
push edi
push str.Could_not_open_temporary_output_file__s_n
jmp 0x419dd4
push esi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0048befe
add esp, 0xc
test eax, eax
je 0x419f46
mov ebx, dword [ebp - 0x82c]
mov edi, dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push 0x4b18e0
push eax
call fcn.0048c208
push dword [ebp - 0x81c]
mov esi, eax
call fcn.004891c7
push eax
push dword [ebp - 0x81c]
lea eax, [ebp - 0x804]
lea eax, [eax + esi*2]
push eax
call fcn.0048c35d
add esp, 0x18
test eax, eax
lea eax, [ebp - 0x804]
push edi
push eax
je 0x419ef8
call fcn.0048b7e2
pop ecx
pop ecx
jmp 0x419f17
call fcn.0048b7e2
push dword [ebp - 0x824]
push 0x4be728
push edi
call fcn.0040fdf2
add esp, 0x14
mov dword [ebp - 0x820], ebx
mov esi, dword [ebp - 0x830]
lea eax, [ebp - 0x804]
push esi
push 0x400
push eax
call fcn.0048befe
add esp, 0xc
test eax, eax
jne 0x419eac
mov edi, dword [ebp - 0x834]
mov ebx, dword [ebp - 0x810]
push esi
call fcn.00481623
mov eax, dword [ebp - 0x808]
pop ecx
test eax, eax
je 0x419f5e
push eax
call fcn.00481623
pop ecx
cmp dword [ebp - 0x820], 0
je 0x41a029
push 0x4be14c
push ebx
call fcn.00481459
push 0x4be744
push dword [ebp - 0x814]
mov esi, eax
call fcn.00481459
add esp, 0x10
mov ebx, eax
mov dword [ebp - 0x808], ebx
test esi, esi
je 0x419ff9
test ebx, ebx
je 0x419ff9
xor ebx, ebx
lea eax, [ebp - 0x80c]
cmp dword [ebp - 0x818], 2
push esi
sete bl
push 1
inc ebx
push ebx
push eax
call fcn.0048afe7
mov edi, dword [ebp - 0x808]
add esp, 0x10
cmp eax, 1
jne 0x419fea
push edi
push eax
lea eax, [ebp - 0x80c]
push ebx
push eax
call fcn.0048c1ce
push esi
push 1
lea eax, [ebp - 0x80c]
push ebx
push eax
call fcn.0048afe7
add esp, 0x20
jmp 0x419fc1
push esi
call fcn.00481623
push edi
call fcn.00481623
pop ecx
jmp 0x41a022
push edi
push str.Could_not_write__s___original_file_has_been_left_unmodified_n
call fcn.0042ed57
and dword [ebp - 0x820], 0
pop ecx
pop ecx
test esi, esi
je 0x41a018
push esi
call fcn.00481623
pop ecx
test ebx, ebx
je 0x41a023
push ebx
call fcn.00481623
pop ecx
mov ebx, dword [ebp - 0x810]
test ebx, ebx
je 0x41a034
push ebx
call fcn.0048c4a4
pop ecx
push dword [ebp - 0x814]
call fcn.004812c6
push ebx
call fcn.004812c6
push dword [ebp - 0x81c]
call fcn.004812c6
push dword [ebp - 0x824]
call fcn.004812c6
mov eax, dword [ebp - 0x820]
add esp, 0x10
jmp 0x41a068
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret