Function at 0x425c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x814], 0x533524
mov dword [ebp - 0x810], 0x533528
mov dword [ebp - 0x80c], str.w__ccsUTF_16LE
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x840], esi
mov dword [ebp - 0x81c], esi
push edi
test ecx, ecx
je 0x426224
test eax, eax
je 0x426224
cmp byte [ecx], 0
je 0x426224
cmp byte [eax], 0
je 0x426224
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push ecx
push esi
push 0xfde9
call edi
mov ebx, eax
cmp ebx, 1
jle 0x425cfa
push 2
push ebx
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x824], eax
test eax, eax
je 0x425cfa
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x830]
push esi
push 0xfde9
call edi
cmp eax, ebx
je 0x425d18
push dword [ebp - 0x824]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x830]
mov dword [ebp - 0x824], esi
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x425f6c
push 0
push 0
push 0xffffffffffffffff
push str._SetupData_
push 0
push 0xfde9
call edi
mov ebx, eax
cmp ebx, 1
jle 0x425d6c
push 2
push ebx
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x828], eax
test eax, eax
je 0x425d6c
push ebx
push eax
push 0xffffffffffffffff
push str._SetupData_
push 0
push 0xfde9
call edi
cmp eax, ebx
je 0x425d89
push dword [ebp - 0x828]
call fcn.004d1211
add esp, 4
push str._SetupData_
push str.Could_not_convert__s_to_UTF_16
mov dword [ebp - 0x828], esi
call fcn.0044b0b0
add esp, 8
jmp 0x425f6c
mov eax, dword [ebp - 0x820]
cmp byte [eax], 0
jne 0x425dd8
push 2
push 1
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x425e22
mov edi, dword [ebp - 0x824]
push str.r__ccsUNICODE
push edi
call fcn.004d1446
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x425e3a
push dword [ebp - 0x830]
push str.Could_not_open_file__s_n
call fcn.0044b0b0
add esp, 8
jmp 0x425f6c
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov ebx, eax
cmp ebx, 1
jle 0x425e20
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x425e20
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x820]
push 0
push 0xfde9
call edi
cmp eax, ebx
je 0x425da6
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
push dword [ebp - 0x820]
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x425f6c
push ebx
push 1
lea eax, [ebp - 0x840]
push 2
push eax
call fcn.004e7dcd
add esp, 0x10
cmp eax, 1
je 0x425e71
push dword [ebp - 0x830]
push str.Could_not_read_file__s_n
call fcn.0044b0b0
push ebx
call fcn.004d1662
add esp, 0xc
jmp 0x425f6c
movzx eax, word [ebp - 0x840]
cmp eax, 0xbbef
je 0x425e96
xor edx, edx
mov ecx, 2
cmp eax, 0xfeff
cmovne ecx, edx
mov dword [ebp - 0x838], ecx
jmp 0x425ea0
mov dword [ebp - 0x838], 1
push 0
push 0
push ebx
call fcn.004e92a1
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425eb2
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 2]
push eax
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x818], eax
test eax, eax
jne 0x425eee
push str.Could_not_allocate_space_for_temporary_output_name_n
call fcn.0044b0b0
add esp, 4
push ebx
call fcn.004d1662
jmp 0x425f69
mov edx, eax
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x425ef4
mov edx, dword [ebp - 0x818]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425f10
sub ecx, edi
mov eax, 0x7e
sar ecx, 1
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x838]
push dword [ebp + eax*4 - 0x814]
push edx
call fcn.004d1446
mov edi, eax
add esp, 8
test edi, edi
jne 0x425fb6
push dword [ebp - 0x830]
push str.Could_not_open_temporary_output_file__s_n
call fcn.0044b0b0
push ebx
call fcn.004d1662
add esp, 0xc
mov eax, dword [ebp - 0x818]
push eax
call fcn.004e9c7c
add esp, 4
push dword [ebp - 0x824]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x818]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x828]
call fcn.004d1211
add esp, 4
push esi
call fcn.004d1211
mov eax, dword [ebp - 0x81c]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.004e9609
add esp, 0xc
test eax, eax
je 0x426082
lea eax, [ebp - 0x808]
push 0x527388
push eax
call fcn.004e99d1
mov dword [ebp - 0x82c], eax
add esp, 8
mov eax, dword [ebp - 0x828]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x83c], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x426000
sub edx, dword [ebp - 0x83c]
lea ecx, [ebp - 0x808]
sar edx, 1
push edx
push eax
mov eax, dword [ebp - 0x82c]
lea eax, [ecx + eax*2]
push eax
call fcn.004e9b35
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x808]
push edi
push eax
je 0x426043
call fcn.004e8e7f
add esp, 8
jmp 0x426063
call fcn.004e8e7f
push esi
push 0x5335e0
push edi
call fcn.00415ba0
mov eax, dword [ebp - 0x820]
add esp, 0x14
mov dword [ebp - 0x81c], eax
push ebx
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.004e9609
add esp, 0xc
test eax, eax
jne 0x425fd3
jmp 0x4260a4
mov eax, dword [ebp - 0x818]
mov dword [ebp - 0x818], eax
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x838], eax
mov dword [ebp - 0x81c], 0
push ebx
call fcn.004d1662
mov eax, dword [ebp - 0x81c]
add esp, 4
mov ebx, dword [ebp - 0x818]
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x81c], eax
push edi
mov dword [ebp - 0x82c], ebx
call fcn.004d1662
mov ecx, dword [ebp - 0x81c]
add esp, 4
mov eax, ebx
mov dword [ebp - 0x818], eax
test ecx, ecx
je 0x426219
push 0x533008
push ebx
call fcn.004d1446
push 0x5335fc
push dword [ebp - 0x824]
mov edi, eax
call fcn.004d1446
add esp, 0x10
mov ebx, eax
mov dword [ebp - 0x83c], ebx
test edi, edi
je 0x4261c1
test ebx, ebx
je 0x4261c1
mov eax, dword [ebp - 0x82c]
xor ebx, ebx
cmp dword [ebp - 0x838], 2
push edi
sete bl
mov dword [ebp - 0x818], eax
push 1
inc ebx
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.004e7dcd
add esp, 0x10
cmp eax, 1
jne 0x4261a5
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x818], eax
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x82c], esi
mov esi, dword [ebp - 0x83c]
mov dword [ebp - 0x81c], eax
push esi
push 1
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.004e9997
push edi
push 1
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.004e7dcd
add esp, 0x20
cmp eax, 1
je 0x426177
mov esi, dword [ebp - 0x82c]
push edi
call fcn.004d1662
add esp, 4
push dword [ebp - 0x83c]
call fcn.004d1662
add esp, 4
jmp 0x425f5d
push dword [ebp - 0x830]
push str.Could_not_write__s___original_file_has_been_left_unmodified_n
call fcn.0044b0b0
add esp, 8
mov dword [ebp - 0x81c], 0
test edi, edi
je 0x4261eb
push edi
call fcn.004d1662
add esp, 4
mov edi, dword [ebp - 0x82c]
mov esi, dword [ebp - 0x820]
mov dword [ebp - 0x818], edi
test ebx, ebx
je 0x425f5d
push ebx
call fcn.004d1662
add esp, 4
mov dword [ebp - 0x818], edi
jmp 0x425f5d
mov dword [ebp - 0x81c], ecx
jmp 0x425f63
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret