Function at 0x4285b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x5b0c20]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], 0
test ebx, ebx
jne 0x4285f3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00524d83
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x8a8], 0xaaaaaaaa
lea esi, [ebx + 0x8a8]
jne 0x428628
cmp dword [esi + 4], 0xaaaaaaaa
jne 0x428628
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00524d83
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x370], 0
jne 0x428642
cmp dword [ebx + 0x36c], 0
mov dword [esp + 0xc], 0
je 0x42864a
mov dword [esp + 0xc], 1
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00526520
add esp, 0xc
cmp dword [ebx + 0x3b48], 0
je 0x42868e
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.004283b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00524d83
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x3b4c], 0
je 0x42874d
mov ecx, dword [0x5b2ec8]
call fcn.004359a0
test eax, eax
je 0x428906
mov eax, dword [ebx + 0x2af6]
mov ecx, dword [ebx + 0x2af2]
push eax
push ecx
mov ecx, dword [0x5b2ec8]
push 0x400
lea edx, [esp + 0x24]
push edx
call fcn.00436b20
test eax, eax
je 0x428906
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0x2af2]
mov ecx, 0x18
lea edi, [esp + 0x268]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x968]
mov ecx, 0x28
lea edi, [esp + 0x1c8]
rep movsd dword es:[edi], dword [esi]
push eax
lea esi, [ebx + 0x3b50]
mov ecx, 0x6c
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x2af6]
push ecx
mov ecx, dword [0x5b2ec8]
push edx
push 0x400
lea eax, [esp + 0x28]
push eax
call fcn.00436ac0
mov dword [esp + 0x10], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00524d83
mov esp, ebp
pop ebp
ret
call fcn.0044b6a0
mov dword [esp + 0xc], eax
test eax, eax
je 0x428906
cmp dword [ebx + 0x370], 0
jne 0x428799
cmp dword [ebx + 0x36c], 0
jne 0x428799
xor eax, eax
jmp 0x428780
movzx ecx, word [eax + str.A:key_storage.bin]
mov word [esp + eax + 0x418], cx
add eax, 2
test cx, cx
jne 0x428780
jmp 0x4287b7
xor eax, eax
jmp 0x4287a0
movzx ecx, word [eax + str.A:_rb_flop_boot]
mov word [esp + eax + 0x418], cx
add eax, 2
test cx, cx
jne 0x4287a0
mov ecx, dword [esp + 0xc]
mov dx, word [ecx]
lea eax, [esp + 0x418]
push 0
push eax
mov word [esp + 0x420], dx
call fcn.005260d0
add esp, 8
test eax, eax
jne 0x4288f0
lea ecx, [esp + 0x418]
push 0x55592c
push ecx
call fcn.00527bdc
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x4288f0
cmp dword [ebx + 0x370], 0
jne 0x428815
cmp dword [ebx + 0x36c], 0
je 0x428825
push 0
push 0x200
push esi
call fcn.00528134
add esp, 0xc
push esi
push 1
lea edx, [esp + 0x20]
push 0x400
push edx
call fcn.00527fdb
add esp, 0x10
cmp eax, 1
jne 0x4288e7
lea eax, [ebx + 0x2af2]
lea edx, [esp + 0x2c8]
mov ecx, 8
sub edx, eax
cmp ecx, 4
jb 0x42887f
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x42886b
sub ecx, 4
add eax, 4
jmp 0x428857
cmp dword [ebx + 0x370], 0
jne 0x4288e7
cmp dword [ebx + 0x36c], 0
je 0x428803
jmp 0x4288e7
mov ecx, 0x18
lea esi, [ebx + 0x8a8]
lea edi, [esp + 0x268]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x968]
mov ecx, 0x28
lea edi, [esp + 0x1c8]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x3b50]
mov ecx, 0x6c
lea edi, [esp + 0x18]
push 1
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
push 0xfffffc00
push esi
call fcn.00528134
push esi
push 1
lea eax, [esp + 0x2c]
push 0x400
push eax
call fcn.00527898
add esp, 0x1c
cmp eax, 1
jne 0x4288e7
mov dword [esp + 0x10], eax
push esi
call fcn.005276ba
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x3f54]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42875e
mov ecx, dword [esp + 0x45c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00524d83
mov esp, ebp
pop ebp
ret