Function at 0x456d20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
push 0x18056
call fcn.004d8630
mov dword [esp + 0x14], eax
mov eax, dword [0x59fff4]
add esp, 4
mov ecx, dword [eax + 0x1bc]
call fcn.0049afc0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x40]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5a3088
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebx, ebx
lea ebp, [esp + ecx + 0x2c]
push ebx
push str.zenzen_d.grd
push ebp
call fcn.005308a0
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x456e42
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
push 0x16
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x456e42
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea ecx, [edi + 5]
push ecx
push edx
call fcn.005360f0
add esp, 8
test eax, eax
jne 0x456e42
mov al, byte [edi + 0x15]
test al, al
je 0x456e52
push 0x2004
push 0x55f418
push str.Are_you_sure_you_want_to_remove_this_layout_
push 0
call fcn.004f0710
add esp, 0x10
cmp eax, 6
je 0x456e6d
inc ebx
cmp ebx, 0x64
jl 0x456daf
mov edi, dword [esp + 0x10]
jmp 0x456e92
push 0x2000
push 0x55f418
push str.You_cannot_remove_this_layout.
push 0
call fcn.004f0710
add esp, 0x10
jmp 0x456e92
lea eax, [esp + 0x2c]
push eax
call fcn.00530ee0
mov edx, dword [0x59fff4]
add esp, 4
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, dword [edx + 0x1bc]
call fcn.0049b080
xor ebx, ebx
push ebx
push str.zenzenu_d.grd
push ebp
call fcn.005308a0
add esp, 0xc
lea eax, [esp + 0x2c]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x456f2b
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x16
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x456f27
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
add edx, 5
push edx
push eax
call fcn.005360f0
add esp, 8
test eax, eax
jne 0x456f27
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x15]
test al, al
je 0x456f49
push 0x2004
push 0x55f418
push str.Are_you_sure_you_want_to_remove_this_layout_
push 0
call fcn.004f0710
add esp, 0x10
cmp eax, 6
je 0x456f64
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, 0x64
jl 0x456e94
push edi
call fcn.004d86d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
push 0x2000
push 0x55f418
push str.You_cannot_remove_this_layout.
push 0
call fcn.004f0710
add esp, 0x10
jmp 0x456f89
lea edx, [esp + 0x2c]
push edx
call fcn.00530ee0
mov ecx, dword [0x59fff4]
add esp, 4
lea eax, [esp + 0x18]
mov ecx, dword [ecx + 0x1bc]
push 1
push eax
call fcn.0049b080
mov edi, dword [esp + 0x10]
push edi
call fcn.004d86d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret