Function at 0x424e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x818], 0x533524
mov ecx, dword [0x55a750]
mov eax, edx
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x814], 0x533528
mov dword [ebp - 0x810], str.w__ccsUTF_16LE
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x82c], 0
push edi
test ecx, ecx
je 0x42553b
test esi, esi
je 0x42553b
test eax, eax
je 0x42553b
cmp byte [ecx], 0
je 0x42553b
cmp byte [esi], 0
je 0x42553b
cmp byte [eax], 0
je 0x42553b
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call edi
mov ebx, eax
cmp ebx, 1
jle 0x424f51
push 2
push ebx
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x828], eax
test eax, eax
je 0x424f51
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x838]
push 0
push 0xfde9
call edi
cmp eax, ebx
je 0x424f73
mov edi, dword [ebp - 0x828]
push edi
call fcn.004d1211
add esp, 4
push dword [ebp - 0x838]
mov dword [ebp - 0x828], 0
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x4254ec
cmp byte [esi], 0
jne 0x424fa7
push 2
push 1
call fcn.004b6706
mov ebx, eax
add esp, 8
mov dword [ebp - 0x820], ebx
test ebx, ebx
jne 0x425016
push esi
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x4254ec
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
mov ebx, eax
cmp ebx, 1
jle 0x424ff3
push 2
push ebx
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x820], eax
test eax, eax
je 0x424ff3
push ebx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
cmp eax, ebx
je 0x425010
push dword [ebp - 0x820]
call fcn.004d1211
add esp, 4
push esi
push str.Could_not_convert__s_to_UTF_16
mov dword [ebp - 0x820], 0
call fcn.0044b0b0
add esp, 8
jmp 0x4254ec
mov ebx, dword [ebp - 0x820]
mov eax, dword [ebp - 0x830]
cmp byte [eax], 0
jne 0x425079
push 2
push 1
call fcn.004b6706
mov esi, eax
add esp, 8
mov dword [ebp - 0x81c], esi
test esi, esi
je 0x4250d4
mov edi, dword [ebp - 0x828]
push str.r__ccsUNICODE
push edi
call fcn.004d1446
mov esi, eax
add esp, 8
mov dword [ebp - 0x824], esi
test esi, esi
jne 0x4250ec
push dword [ebp - 0x838]
push str.Could_not_open_file__s_n
call fcn.0044b0b0
add esp, 8
jmp 0x4254ec
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
cmp esi, 1
jle 0x4250ca
push 2
push esi
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x81c], eax
test eax, eax
je 0x4250ca
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x830]
push 0
push 0xfde9
call edi
cmp eax, esi
je 0x42503d
push dword [ebp - 0x81c]
call fcn.004d1211
add esp, 4
mov dword [ebp - 0x81c], 0
push dword [ebp - 0x830]
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x4254ec
push esi
push 1
lea eax, [ebp - 0x844]
push 2
push eax
call fcn.004e7dcd
add esp, 0x10
cmp eax, 1
jne 0x425141
movzx eax, word [ebp - 0x844]
cmp eax, 0xbbef
je 0x42512a
xor edx, edx
mov ecx, 2
cmp eax, 0xfeff
cmovne ecx, edx
mov dword [ebp - 0x840], ecx
jmp 0x425134
mov dword [ebp - 0x840], 1
push 0
push 0
push esi
call fcn.004e92a1
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425146
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 2]
push eax
call fcn.004b6706
mov edx, eax
add esp, 8
mov dword [ebp - 0x83c], edx
test edx, edx
jne 0x425187
push str.Could_not_allocate_space_for_temporary_output_name_n
call fcn.0044b0b0
add esp, 4
push esi
call fcn.004d1662
jmp 0x4254e9
mov ecx, edi
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x425190
mov edi, dword [ebp - 0x83c]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4251b0
sub ecx, edx
mov eax, 0x7e
sar ecx, 1
mov word [edi + ecx*2], ax
mov eax, dword [ebp - 0x840]
push dword [ebp + eax*4 - 0x818]
push edi
call fcn.004d1446
mov edi, eax
add esp, 8
test edi, edi
jne 0x425202
push dword [ebp - 0x838]
push str.Could_not_open_temporary_output_file__s_n
call fcn.0044b0b0
push esi
call fcn.004d1662
add esp, 0xc
jmp 0x4254de
push esi
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.004e9609
add esp, 0xc
test eax, eax
je 0x42536a
nop
lea eax, [ebp - 0x80c]
push 0x527388
push eax
call fcn.004e99d1
mov esi, eax
lea edx, [ebp - 0x80c]
movzx eax, word [edx + esi*2]
add esp, 8
lea edx, [edx + esi*2]
cmp eax, 0x3b
je 0x425326
cmp eax, 0x5b
je 0x425326
mov ecx, ebx
lea eax, [ecx + 2]
mov dword [ebp - 0x820], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425260
sub ecx, dword [ebp - 0x820]
sar ecx, 1
push ecx
push ebx
push edx
call fcn.004e9b35
add esp, 0xc
test eax, eax
jne 0x425326
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425290
sub ecx, edx
lea eax, [ebp - 0x80c]
sar ecx, 1
add esi, ecx
push 0x527388
lea eax, [eax + esi*2]
push eax
call fcn.004e99d1
add esi, eax
add esp, 8
lea eax, [ebp - 0x80c]
cmp word [ebp + esi*2 - 0x80c], 0x3d
jne 0x42532c
inc esi
push 0x527388
lea eax, [eax + esi*2]
push eax
call fcn.004e99d1
add eax, esi
add esp, 8
add eax, eax
cmp eax, 0x800
jae 0x42554e
xor ecx, ecx
mov word [ebp + eax - 0x80c], cx
lea eax, [ebp - 0x80c]
push edi
push eax
call fcn.004e8e7f
mov esi, dword [ebp - 0x81c]
push esi
push 0x5335e0
push edi
call fcn.00415ba0
mov eax, dword [ebp - 0x830]
add esp, 0x14
mov dword [ebp - 0x82c], eax
jmp 0x42533c
lea eax, [ebp - 0x80c]
push edi
push eax
call fcn.004e8e7f
mov esi, dword [ebp - 0x81c]
add esp, 8
push dword [ebp - 0x824]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.004e9609
add esp, 0xc
test eax, eax
jne 0x425220
mov eax, dword [ebp - 0x82c]
test eax, eax
je 0x425370
jmp 0x425386
mov esi, dword [ebp - 0x81c]
push esi
push ebx
push str._s___s_n
push edi
call fcn.00415ba0
mov eax, dword [ebp - 0x830]
add esp, 0x10
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x824]
push eax
call fcn.004d1662
add esp, 4
push edi
call fcn.004d1662
add esp, 4
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x824], esi
push 0x533008
push dword [ebp - 0x83c]
call fcn.004d1446
mov edi, dword [ebp - 0x828]
mov esi, eax
push 0x5335fc
push edi
call fcn.004d1446
add esp, 0x10
mov edi, eax
test esi, esi
je 0x425489
test edi, edi
je 0x425489
mov eax, dword [ebp - 0x824]
xor ebx, ebx
cmp dword [ebp - 0x840], 2
push esi
sete bl
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp - 0x830]
inc ebx
push 1
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.004e7dcd
add esp, 0x10
cmp eax, 1
jne 0x425478
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x820], eax
nop dword [eax]
push edi
push 1
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.004e9997
push esi
push 1
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.004e7dcd
add esp, 0x20
cmp eax, 1
je 0x425450
push esi
call fcn.004d1662
add esp, 4
push edi
call fcn.004d1662
jmp 0x4254db
push dword [ebp - 0x838]
push str.Could_not_write__s___original_file_has_been_left_unmodified_n
call fcn.0044b0b0
add esp, 8
mov dword [ebp - 0x82c], 0
test esi, esi
je 0x4254b3
push esi
call fcn.004d1662
add esp, 4
mov esi, dword [ebp - 0x824]
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x820], ebx
test edi, edi
je 0x4254de
push edi
call fcn.004d1662
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x820], ebx
add esp, 4
push dword [ebp - 0x83c]
call fcn.004e9c7c
add esp, 4
push dword [ebp - 0x828]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x83c]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x820]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x81c]
call fcn.004d1211
mov eax, dword [ebp - 0x82c]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
call fcn.004a8c90
int3