Function at 0x426240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, ecx
mov dword [ebp - 0x818], 0x533524
mov ecx, dword [ebp + 0xc]
mov eax, edx
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x86c], esi
mov dword [ebp - 0x854], ecx
mov dword [ebp - 0x814], 0x533528
mov dword [ebp - 0x810], str.w__ccsUTF_16LE
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x858], 0
push edi
movups xmmword [ebp - 0x83c], xmm0
movups xmmword [ebp - 0x82c], xmm0
test esi, esi
je 0x426bca
test eax, eax
je 0x426bca
test ebx, ebx
je 0x426bca
test ecx, ecx
je 0x426bca
cmp byte [esi], 0
je 0x426bca
cmp byte [eax], 0
je 0x426bca
cmp byte [ebx], 0
je 0x426bca
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x426350
test dl, dl
je 0x42634c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x426350
add eax, 2
add ecx, 2
test dl, dl
jne 0x426330
xor eax, eax
jmp 0x426355
sbb eax, eax
or eax, 1
test eax, eax
je 0x426bca
push 0
push 0
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call esi
mov edi, eax
cmp edi, 1
jle 0x4263b4
push 2
push edi
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x864], eax
test eax, eax
je 0x4263b4
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x86c]
push 0
push 0xfde9
call esi
cmp eax, edi
je 0x4263d6
push dword [ebp - 0x864]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x86c]
mov dword [ebp - 0x864], 0
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x426b6d
mov eax, dword [ebp - 0x85c]
cmp byte [eax], 0
jne 0x42648d
push 2
push 1
call fcn.004b6706
mov edi, eax
add esp, 8
mov dword [ebp - 0x844], edi
test edi, edi
je 0x4264ec
cmp byte [ebx], 0
jne 0x426504
push 2
push 1
call fcn.004b6706
mov edi, eax
add esp, 8
mov dword [ebp - 0x848], edi
test edi, edi
je 0x42655e
mov eax, dword [ebp - 0x854]
cmp byte [eax], 0
jne 0x426571
push 2
push 1
call fcn.004b6706
mov ebx, eax
add esp, 8
mov dword [ebp - 0x850], ebx
test ebx, ebx
je 0x4265cd
mov edi, dword [ebp - 0x864]
push str.r__ccsUNICODE
push edi
call fcn.004d1446
mov esi, eax
add esp, 8
mov dword [ebp - 0x868], esi
test esi, esi
jne 0x4265e5
push dword [ebp - 0x86c]
push str.Could_not_open_file__s_n
call fcn.0044b0b0
add esp, 8
jmp 0x426b6d
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
mov edi, eax
cmp edi, 1
jle 0x4264e2
push 2
push edi
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x844], eax
test eax, eax
je 0x4264e2
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x85c]
push 0
push 0xfde9
call esi
cmp eax, edi
je 0x426401
push dword [ebp - 0x844]
call fcn.004d1211
add esp, 4
mov dword [ebp - 0x844], 0
push dword [ebp - 0x85c]
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x426b6d
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
mov edi, eax
cmp edi, 1
jle 0x426554
push 2
push edi
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x848], eax
test eax, eax
je 0x426554
push edi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
cmp eax, edi
je 0x426426
push dword [ebp - 0x848]
call fcn.004d1211
add esp, 4
mov dword [ebp - 0x848], 0
push ebx
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x426b6d
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
mov edi, eax
cmp edi, 1
jle 0x4265c3
push 2
push edi
call fcn.004b6706
mov ebx, eax
mov dword [ebp - 0x850], eax
add esp, 8
test ebx, ebx
je 0x4265c3
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x854]
push 0
push 0xfde9
call esi
cmp eax, edi
je 0x426451
push ebx
call fcn.004d1211
add esp, 4
mov dword [ebp - 0x850], 0
push dword [ebp - 0x854]
push str.Could_not_convert__s_to_UTF_16
call fcn.0044b0b0
add esp, 8
jmp 0x426b6d
push esi
push 1
lea eax, [ebp - 0x87c]
push 2
push eax
call fcn.004e7dcd
add esp, 0x10
cmp eax, 1
je 0x426629
push esi
call fcn.004e9a8e
add esp, 4
test eax, eax
jne 0x42661e
push dword [ebp - 0x86c]
push str.Could_not_read_file__s_n
call fcn.0044b0b0
add esp, 8
push esi
call fcn.004d1662
jmp 0x426b6a
movzx eax, word [ebp - 0x87c]
cmp eax, 0xbbef
je 0x426648
xor ecx, ecx
mov ebx, 2
cmp eax, 0xfeff
cmovne ebx, ecx
jmp 0x42664d
mov ebx, 1
push 0
push 0
push esi
mov dword [ebp - 0x870], 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 0x426665
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 2]
push eax
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x84c], eax
test eax, eax
jne 0x4266a4
push str.Could_not_allocate_space_for_temporary_output_name_n
call fcn.0044b0b0
add esp, 4
push esi
call fcn.004d1662
jmp 0x426b6a
mov edx, eax
mov ecx, edi
sub edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4266b0
mov ecx, dword [ebp - 0x84c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4266d0
mov eax, dword [ebp - 0x84c]
sub ecx, edx
push dword [ebp + ebx*4 - 0x818]
sar ecx, 1
mov edx, 0x7e
push eax
mov word [eax + ecx*2], dx
call fcn.004d1446
mov ebx, eax
add esp, 8
mov dword [ebp - 0x874], ebx
test ebx, ebx
jne 0x426728
push dword [ebp - 0x86c]
push str.Could_not_open_temporary_output_file__s_n
call fcn.0044b0b0
push esi
call fcn.004d1662
add esp, 0xc
jmp 0x426b5f
push esi
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.004e9609
add esp, 0xc
test eax, eax
je 0x426925
mov edi, dword [ebp - 0x844]
nop dword [eax + eax]
lea eax, [ebp - 0x80c]
push 0x527388
push eax
call fcn.004e99d1
mov esi, eax
add esp, 8
mov eax, edi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426770
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x80c]
lea eax, [eax + esi*2]
push edi
push eax
call fcn.004e9b35
add esp, 0xc
test eax, eax
je 0x4267ac
lea eax, [ebp - 0x80c]
push ebx
push eax
call fcn.004e8e7f
add esp, 8
jmp 0x4268fa
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4267b1
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 esp, 8
test eax, eax
jne 0x4267f2
lea eax, [ebp - 0x80c]
push ebx
push eax
call fcn.004e8e7f
add esp, 8
jmp 0x4268fa
mov ebx, dword [ebp - 0x848]
add esi, eax
mov dword [ebp - 0x82c], 0
xor edi, edi
lea eax, [ebp - 0x80c]
lea eax, [eax + esi*2]
push ebx
push eax
call fcn.004aa6bb
mov edx, eax
add esp, 8
mov dword [ebp + edi - 0x840], edx
test edx, edx
je 0x426861
mov ecx, ebx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426830
sub ecx, esi
lea eax, [ebp - 0x80c]
mov esi, edx
sar ecx, 1
sub esi, eax
xor eax, eax
sar esi, 1
add esi, ecx
mov word [edx], ax
mov dword [ebp + edi - 0x828], esi
add edi, 4
cmp edi, 0x10
jb 0x426806
cmp dword [ebp - 0x840], 0
mov ebx, dword [ebp - 0x874]
jne 0x426882
lea eax, [ebp - 0x80c]
push ebx
push eax
call fcn.004e8e7f
add esp, 8
jmp 0x4268f4
xor esi, esi
xor eax, eax
nop word [eax + eax]
mov eax, dword [ebp + eax - 0x82c]
lea ecx, [ebp - 0x80c]
push dword [ebp - 0x850]
lea eax, [ecx + eax*2]
push eax
push 0x53370c
push ebx
call fcn.00415ba0
lea esi, [esi + 1]
add esp, 0x10
lea eax, [esi*4]
cmp dword [ebp + eax - 0x840], 0
jne 0x426890
mov eax, dword [ebp + eax - 0x82c]
lea ecx, [ebp - 0x80c]
lea eax, [ecx + eax*2]
push eax
push 0x533718
push ebx
call fcn.00415ba0
mov eax, dword [ebp - 0x854]
add esp, 0xc
mov dword [ebp - 0x858], eax
mov edi, dword [ebp - 0x844]
mov esi, dword [ebp - 0x868]
lea eax, [ebp - 0x80c]
push esi
push 0x400
push eax
call fcn.004e9609
add esp, 0xc
test eax, eax
jne 0x426750
mov ebx, dword [ebp - 0x858]
jmp 0x426945
mov eax, dword [ebp - 0x84c]
mov dword [ebp - 0x84c], eax
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x874], ebx
xor ebx, ebx
mov dword [ebp - 0x870], eax
push esi
call fcn.004d1662
mov eax, dword [ebp - 0x850]
add esp, 4
mov esi, dword [ebp - 0x844]
mov edi, dword [ebp - 0x848]
mov dword [ebp - 0x858], ebx
push dword [ebp - 0x874]
mov ebx, dword [ebp - 0x84c]
mov dword [ebp - 0x878], esi
mov dword [ebp - 0x85c], edi
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x868], ebx
call fcn.004d1662
mov eax, dword [ebp - 0x858]
add esp, 4
mov dword [ebp - 0x848], edi
mov edi, dword [ebp - 0x854]
mov dword [ebp - 0x844], esi
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x84c], ebx
test eax, eax
je 0x426b59
push 0x533008
push ebx
call fcn.004d1446
push 0x5335fc
push dword [ebp - 0x864]
mov esi, eax
call fcn.004d1446
add esp, 0x10
mov edi, eax
test esi, esi
je 0x426ad2
test edi, edi
je 0x426ad2
mov eax, dword [ebp - 0x868]
xor ebx, ebx
cmp dword [ebp - 0x870], 2
mov dword [ebp - 0x84c], eax
mov eax, dword [ebp - 0x854]
sete bl
mov dword [ebp - 0x850], eax
inc ebx
mov eax, dword [ebp - 0x85c]
push esi
mov dword [ebp - 0x848], eax
mov eax, dword [ebp - 0x878]
push 1
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x860]
push ebx
push eax
call fcn.004e7dcd
add esp, 0x10
cmp eax, 1
jne 0x426abb
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x84c], eax
mov eax, dword [ebp - 0x858]
mov dword [ebp - 0x858], eax
mov eax, dword [ebp - 0x854]
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x848], eax
mov eax, dword [ebp - 0x878]
mov dword [ebp - 0x844], eax
cmp dword [ebp + 0x10], 0
je 0x426a90
cmp byte [ebp - 0x860], 0xd
je 0x426aa3
push edi
push 1
lea eax, [ebp - 0x860]
push ebx
push eax
call fcn.004e9997
add esp, 0x10
push esi
push 1
lea eax, [ebp - 0x860]
push ebx
push eax
call fcn.004e7dcd
add esp, 0x10
cmp eax, 1
je 0x426a81
push esi
call fcn.004d1662
add esp, 4
push edi
call fcn.004d1662
add esp, 4
jmp 0x426b5f
push dword [ebp - 0x86c]
push str.Could_not_write__s___original_file_has_been_left_unmodified._n
call fcn.0044b0b0
add esp, 8
mov dword [ebp - 0x858], 0
test esi, esi
je 0x426afc
push esi
call fcn.004d1662
add esp, 4
mov eax, dword [ebp - 0x854]
mov esi, dword [ebp - 0x878]
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], esi
test edi, edi
je 0x426b5f
push edi
call fcn.004d1662
mov eax, dword [ebp - 0x854]
add esp, 4
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], esi
jmp 0x426b5f
mov dword [ebp - 0x858], eax
push dword [ebp - 0x84c]
call fcn.004e9c7c
add esp, 4
push dword [ebp - 0x864]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x84c]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x844]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x848]
call fcn.004d1211
add esp, 4
push dword [ebp - 0x850]
call fcn.004d1211
mov eax, dword [ebp - 0x858]
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