Function at 0x409cd0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42245b
push eax
mov eax, 0xe114
mov dword fs:[0], esp
call fcn.004214f0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00421016
mov eax, dword [0x43191c]
lea ecx, [esp + 0x18]
push eax
xor esi, esi
push str._s_firmware.bin
push ecx
mov dword [esp + 0xe138], esi
mov byte [esp + 0x1f], 0
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [0x430bf8]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.OFFLINE
push eax
call ebp
add esp, 0x14
test eax, eax
jne 0x409d89
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push 0x80
push 3
push esi
push esi
lea ecx, [esp + 0x38]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x1c]
push esi
push edx
lea ecx, [esp + 0x12c]
push 0xe000
push ecx
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
jmp 0x409dc5
mov eax, dword [0x431110]
push 0x42e31c
push eax
call ebp
add esp, 8
mov ecx, 0x1c00
test eax, eax
je 0x409da7
mov ecx, 0x3800
mov esi, dword [0x431c40]
mov edx, dword [0x431c2c]
lea edi, [esp + 0x124]
mov ebx, 1
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], edx
mov eax, dword [0x431110]
push str.CH950
push eax
call ebp
add esp, 8
test eax, eax
je 0x409fe9
mov eax, dword [0x431110]
push str.CH885
push eax
call ebp
add esp, 8
test eax, eax
je 0x409fe9
mov eax, dword [0x431110]
push str.CH880
push eax
call ebp
add esp, 8
test eax, eax
je 0x409fe9
mov eax, dword [0x431110]
push str.CH920
push eax
call ebp
add esp, 8
test eax, eax
jne 0x409e2a
mov byte [0x4319ce], 0x46
jmp 0x409e6c
mov eax, dword [0x431110]
push str.CH940
push eax
call ebp
add esp, 8
test eax, eax
je 0x409e65
mov eax, dword [0x431110]
push 0x42e31c
push eax
call ebp
add esp, 8
test eax, eax
jne 0x409e65
mov byte [0x4319ce], 0x17
mov edi, 0x6fbf
mov esi, 0x7000
jmp 0x409e76
mov byte [0x4319ce], 0x20
mov edi, 0xdfff
mov esi, 0xe000
test ebx, ebx
je 0x409fa1
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x409fa1
mov eax, dword [0x431110]
push str.CH920
push eax
call ebp
add esp, 8
test eax, eax
je 0x409edc
mov eax, dword [0x431110]
push str.CH940
push eax
call ebp
add esp, 8
test eax, eax
je 0x409edc
mov eax, dword [0x431110]
push 0x42e31c
push eax
call ebp
add esp, 8
test eax, eax
jne 0x409ef0
mov al, byte [esp + 0x70e2]
mov cl, byte [0x4319ce]
cmp al, cl
je 0x409ef0
jmp 0x409f99
mov cl, byte [esp + 0xe0e2]
mov al, byte [0x4319ce]
cmp cl, al
jne 0x409f99
mov eax, dword [0x431110]
push 0x42e31c
push eax
call ebp
add esp, 8
test eax, eax
je 0x409f66
mov eax, dword [0x431110]
push str.CH950
push eax
call ebp
add esp, 8
test eax, eax
je 0x409f66
mov eax, dword [0x431110]
push str.CH885
push eax
call ebp
add esp, 8
test eax, eax
je 0x409f66
mov eax, dword [0x431110]
push str.CH880
push eax
call ebp
add esp, 8
test eax, eax
je 0x409f66
mov al, byte [esp + 0xe114]
xor ecx, ecx
and eax, 0xf
mov cl, byte [0x4319ce]
lea edx, [eax + eax*4]
mov al, byte [esp + 0xe116]
and eax, 0xf
lea eax, [eax + edx*2]
cmp eax, ecx
jb 0x409f99
mov cl, byte [esp + edi + 0x124]
lea eax, [esp + edi + 0x124]
mov byte [eax], 0xff
xor eax, eax
test esi, esi
jbe 0x409f93
mov dl, byte [esp + eax + 0x124]
mov bl, byte [esp + 0x13]
xor bl, dl
inc eax
cmp eax, esi
mov byte [esp + 0x13], bl
jb 0x409f7d
cmp cl, byte [esp + 0x13]
je 0x409fa1
mov dword [esp + 0x14], 1
mov eax, dword [0x430bf8]
push str.OFFLINE
push eax
call ebp
add esp, 8
test eax, eax
jne 0x409fc0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409fe0
lea ecx, [esp + 0x18]
mov dword [esp + 0xe12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40a010
mov byte [0x430bf5], 2
jmp 0x409ff7
mov byte [0x430bf5], 2
mov byte [0x4319ce], 0x20
lea ecx, [esp + 0x18]
mov dword [esp + 0xe12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xe124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe120
ret