Function at 0x409ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45422d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x46c99c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x116c], 1
jne 0x409f4f
mov ecx, dword [ebp + 8]
call fcn.0040eee0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x409f4f
push str.You_must_have_Administrator_rights_in_order_to_change_the_firmware
mov ecx, dword [ebp + 8]
add ecx, 0x10e8
call fcn.00404c50
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x119e]
mov eax, dword [ebp + 8]
mov dword [eax + 0x10ec], edx
cmp dword [ebp - 0x10], 1
jne 0x409fae
mov ecx, dword [0x46e048]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x409fae
push 0x458ecc
mov ecx, dword [ebp + 8]
add ecx, 0x10e8
call fcn.00404c50
mov edx, dword [ebp + 8]
cmp dword [edx + 0x11bc], 0
jne 0x409f9b
push 0
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x10e8
call fcn.004051a0
push eax
call fcn.00427f58
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x119a]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10ec], ecx
mov eax, dword [ebp + 8]
mov byte [eax + 0x1098], 0
cmp dword [ebp - 0x10], 1
jne 0x409fdb
mov ecx, dword [ebp + 8]
call fcn.00411720
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1160], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1160]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x409fec
mov ecx, dword [ebp + 8]
call fcn.0040e1f0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1114], 1
jne 0x40a01a
cmp dword [ebp - 0x10], 1
jne 0x40a015
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10cc]
push eax
push 0x458ef0
call fcn.0043fa04
add esp, 8
jmp 0x40a28f
cmp dword [ebp - 0x10], 1
jne 0x40a0b0
mov ecx, dword [ebp + 8]
call fcn.00410090
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a096
push 0x458ef8
mov ecx, dword [ebp + 8]
add ecx, 0x10e8
call fcn.00404c50
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x11bc], 0
jne 0x40a06c
push 0x10
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x10e8
call fcn.004051a0
push eax
call fcn.00427f58
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x1198]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10ec], eax
jne 0x40a094
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x11a0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10ec], eax
jmp 0x40a0b0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x11bc], 0
jne 0x40a0b0
push 0
push 0
push str.Firmware_update_successfully_done___
call fcn.00427f58
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x1179]
test ecx, ecx
je 0x40a0ce
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00409e60
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x11c0], 0
je 0x40a28f
lea ecx, [ebp - 0x1c]
call fcn.004072b0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10ec], 0
jne 0x40a11e
push str.Update_successfully_done.
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10ec]
push ecx
push 0x458f98
lea edx, [ebp - 0x1c]
push edx
call fcn.004072d0
add esp, 0x10
jmp 0x40a1f9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10ec], 1
jne 0x40a14f
push str.Update_failed.
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10ec]
push edx
push 0x458fc8
lea eax, [ebp - 0x1c]
push eax
call fcn.004072d0
add esp, 0x10
jmp 0x40a1f9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10ec], 2
jne 0x40a17d
push str.Drives_supplier_name_does_not_match_the_target.
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10ec]
push eax
push 0x45901c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004072d0
add esp, 0x10
jmp 0x40a1f9
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10ec], 3
jne 0x40a1ab
push str.Drives_model_does_not_match_the_target.
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10ec]
push ecx
push 0x459068
lea edx, [ebp - 0x1c]
push edx
call fcn.004072d0
add esp, 0x10
jmp 0x40a1f9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10ec], 4
jne 0x40a1d9
push str.Drives_FW_is_already_at_the_target_level.
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10ec]
push edx
push 0x4590b4
lea eax, [ebp - 0x1c]
push eax
call fcn.004072d0
add esp, 0x10
jmp 0x40a1f9
push str.Unknown_error
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10ec]
push edx
push str.error_level:__d__r_nmessage:__s
lea eax, [ebp - 0x1c]
push eax
call fcn.004072d0
add esp, 0x10
push 0x5c
mov ecx, dword [ebp + 8]
add ecx, 0x11c4
call fcn.0040c0d0
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x11c4
call fcn.0040c240
mov dword [ebp - 0x24], eax
call fcn.00409850
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
add ecx, 0x11c4
call fcn.004051a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
push 0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00405180
push eax
lea ecx, [ebp - 0x1c]
call fcn.004051a0
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004066f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret