Function at 0x41f640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x41c], 0xffffffff
or edx, 0xffffffff
mov dword [ebp - 0x424], eax
xor ebx, ebx
mov dword [ebp - 0x418], edx
push edi
xor esi, esi
mov dword [ebp - 0x40c], ebx
call fcn.0041f4f0
mov edi, eax
mov dword [ebp - 0x410], edi
test edi, edi
je 0x41fb9d
push edi
push 0x400
lea eax, [ebp - 0x408]
push 1
push eax
call fcn.004a2a0d
add esp, 0x10
cmp eax, 0x400
jae 0x41f6c0
push str.Invalid_loc_file:_the_file_is_too_small_
call fcn.004407e0
add esp, 4
jmp 0x41fb94
cmp byte [ebp - 0x408], 0x80
jbe 0x41f6db
push str.Invalid_loc_file:_the_file_should_not_have_a_BOM__Byte_Order_Mark_
call fcn.004407e0
add esp, 4
jmp 0x41fb94
xor eax, eax
lea ecx, [ecx]
lea ecx, [ebp - 0x407]
add ecx, eax
cmp byte [ebp + eax - 0x408], 0xd
jne 0x41f6f7
cmp byte [ecx], 0xa
je 0x41f73c
cmp byte [ecx], 0xd
jne 0x41f706
cmp byte [ebp + eax - 0x406], 0xa
je 0x41f736
cmp byte [ebp + eax - 0x406], 0xd
jne 0x41f71a
cmp byte [ebp + eax - 0x405], 0xa
je 0x41f739
add eax, 3
cmp eax, 0x3ff
jb 0x41f6e0
push str.Invalid_loc_file:_the_file_MUST_be_saved_in_DOS_mode__CR_LF_
call fcn.004407e0
add esp, 4
jmp 0x41fb94
inc eax
jmp 0x41f73c
add eax, 2
cmp eax, 0x3ff
jae 0x41f724
push 0
push 0
push edi
call fcn.004a3516
add esp, 0xc
mov dword [0x5430d0], ebx
mov byte [ebp - 0x408], bl
call fcn.0041a750
push edi
call fcn.004a3105
add esp, 4
mov edi, eax
lea eax, [ebp - 0x408]
push dword [ebp - 0x410]
push 0x400
push eax
call fcn.004a3810
add esp, 0xc
test eax, eax
je 0x41fb5e
mov edi, edi
inc dword [0x5430d0]
lea eax, [ebp - 0x408]
push 0x4cafe0
push eax
call fcn.004a3b10
add esp, 8
mov cl, byte [ebp + eax - 0x408]
cmp cl, 0x6c
je 0x41f7c4
cmp cl, 0x76
je 0x41f7c4
cmp cl, 0x61
jne 0x41fac3
lea edx, [ebp - 0x407]
add edx, eax
call fcn.0041efe0
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
je 0x41fac3
mov al, byte [esi]
cmp al, 3
je 0x41f7f3
cmp al, 2
je 0x41f7f3
cmp al, 6
jne 0x41fa84
movzx eax, al
sub eax, 2
je 0x41f99d
sub eax, 1
je 0x41f8c9
sub eax, 3
jne 0x41fac3
test ebx, ebx
jne 0x41f83c
push dword [0x5430d0]
push dword [0x4fad84]
push str._s__d_:__a_ttributes_cannot_precede__l_ocale_n
call fcn.004407e0
lea eax, [esi + 0x14]
add esp, 0xc
mov dword [ebp - 0x414], eax
jmp 0x41f8b1
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x14]
xor edi, edi
mov dword [ebp - 0x414], eax
cmp byte [ecx], 0
je 0x41f8b1
mov esi, eax
mov cl, byte [ecx + edi]
xor eax, eax
cmp byte [eax*8 + 0x4cafd8], cl
je 0x41f867
inc eax
cmp eax, 1
jb 0x41f856
jmp 0x41f876
mov ecx, dword [eax*8 + 0x4cafdc]
or dword [ebx + 4], ecx
cmp eax, 1
jb 0x41f896
mov eax, dword [esi]
movsx eax, byte [eax + edi]
push eax
push dword [0x5430d0]
push dword [0x4fad84]
push str._s__d_:_unknown_attribute__c___ignored_n
call fcn.004407e0
add esp, 0x10
mov ecx, dword [esi]
inc edi
cmp byte [ecx + edi], 0
jne 0x41f851
mov dword [ebp - 0x414], esi
mov esi, dword [ebp - 0x420]
mov eax, dword [ebp - 0x414]
push dword [eax]
call fcn.004998ec
mov eax, dword [ebp - 0x414]
mov dword [eax], 0
jmp 0x41fa93
test ebx, ebx
je 0x41f94e
cmp dword [ebp - 0x40c], 0
jne 0x41f94b
push str.localization:_no_compatible_version_was_found___this_locale_will_be_ignored_n
call fcn.004407e0
mov ecx, dword [ebx + 0x20]
add esp, 4
mov eax, dword [ebx + 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [ecx + 4], eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
push dword [ebx + 0x14]
call fcn.004998ec
add esp, 4
mov dword [ebx + 0x14], 0
push dword [ebx + 0x18]
call fcn.004998ec
add esp, 4
mov dword [ebx + 0x18], 0
push dword [ebx + 0x10]
call fcn.004998ec
add esp, 4
mov dword [ebx + 0x10], 0
push ebx
call fcn.004998ec
add esp, 4
jmp 0x41f94e
mov dword [ebx + 0xc], edi
push dword [ebp - 0x410]
call fcn.004a3105
lea ecx, [esi + 0x1c]
mov dword [esi + 8], eax
mov dword [ecx + 4], 0x4fa978
add esp, 4
mov eax, dword [0x4fa978]
mov dword [ecx], eax
mov eax, dword [0x4fa978]
mov dword [eax + 4], ecx
mov dword [0x4fa978], ecx
push dword [esi + 0x14]
push str.localization:_found_locale__s_n
call fcn.004407e0
add esp, 8
mov ebx, esi
xor esi, esi
mov dword [ebp - 0x40c], esi
jmp 0x41fac9
mov edi, dword [ebp - 0x40c]
test edi, edi
je 0x41f9c6
push edi
push dword [0x5430d0]
push dword [0x4fad84]
push str._s__d_:__v_ersion_was_already_provided_at_line__d_n
call fcn.004407e0
add esp, 0x10
jmp 0x41fa84
cmp byte [esi + 1], 2
je 0x41f9ea
push dword [0x5430d0]
push dword [0x4fad84]
push str._s__d_:__v_ersion_format_is_invalid_n
call fcn.004407e0
add esp, 0xc
jmp 0x41fa84
test ebx, ebx
jne 0x41fa0c
push dword [0x5430d0]
push dword [0x4fad84]
push str._s__d_:__v_ersion_cannot_precede__l_ocale_n
call fcn.004407e0
add esp, 0xc
jmp 0x41fa84
mov edx, dword [ebp - 0x418]
mov eax, dword [esi + 0x10]
cmp edx, 0xffffffff
jne 0x41fa39
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [0x5430d0]
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x40c], edi
jmp 0x41fa84
cmp dword [eax], edx
jb 0x41fa4c
jne 0x41fa79
mov ecx, dword [ebp - 0x41c]
cmp dword [eax + 4], ecx
jae 0x41fa79
jmp 0x41fa52
mov ecx, dword [ebp - 0x41c]
or dword [ebx + 4], 2
mov eax, dword [esi + 0x10]
push ecx
push edx
push dword [eax + 4]
push dword [eax]
push dword [0x5430d0]
push dword [0x4fad84]
push str._s__d_:_the_version_of_this_translation_is_older_than_the_base_one_and_may_result_in_some_messages_not_being_properly_translated._nIf_you_are_the_translator__please_update_your_translation_with_the_changes_that_intervened_between_v_d._d_and_v_d._d._nSee_https:__github.com_pbatard_rufus_blob_master_res_loc_ChangeLog.txt_n
call fcn.004407e0
add esp, 0x1c
mov eax, dword [0x5430d0]
mov dword [ebp - 0x40c], eax
push dword [esi + 0x14]
call fcn.004998ec
mov dword [esi + 0x14], 0
add esp, 4
push dword [esi + 0x18]
call fcn.004998ec
add esp, 4
mov dword [esi + 0x18], 0
push dword [esi + 0x10]
call fcn.004998ec
add esp, 4
mov dword [esi + 0x10], 0
push esi
call fcn.004998ec
add esp, 4
mov esi, dword [ebp - 0x40c]
push dword [ebp - 0x410]
call fcn.004a3105
add esp, 4
mov edi, eax
lea eax, [ebp - 0x408]
push dword [ebp - 0x410]
push 0x400
push eax
call fcn.004a3810
add esp, 0xc
test eax, eax
jne 0x41f790
test ebx, ebx
je 0x41fb5e
test esi, esi
jne 0x41fbb0
push str.localization:_no_compatible_version_was_found___this_locale_will_be_ignored_n
call fcn.004407e0
mov ecx, dword [ebx + 0x20]
add esp, 4
mov eax, dword [ebx + 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov dword [ecx + 4], eax
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
push dword [ebx + 0x14]
call fcn.004998ec
add esp, 4
mov dword [ebx + 0x14], esi
push dword [ebx + 0x18]
call fcn.004998ec
add esp, 4
mov dword [ebx + 0x18], esi
push dword [ebx + 0x10]
call fcn.004998ec
add esp, 4
mov dword [ebx + 0x10], esi
push ebx
call fcn.004998ec
add esp, 4
mov edi, dword [ebp - 0x410]
mov eax, dword [0x4fa97c]
xor ecx, ecx
cmp eax, 0x4fa978
setne cl
mov dword [ebp - 0x418], ecx
jne 0x41fb8e
push dword [ebp - 0x424]
push str.localization:__s_contains_no_valid_locale_sections_n
call fcn.004407e0
add esp, 8
mov esi, dword [ebp - 0x418]
push edi
call fcn.00499b6b
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x410]
push edi
call fcn.004a3105
add esp, 4
mov dword [ebx + 0xc], eax
jmp 0x41fb64