Function at 0x45c3b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
push 0x18056
mov byte [esp + 0x18], 0x54
mov byte [esp + 0x19], 0x4d
mov byte [esp + 0x1a], 9
mov byte [esp + 0x1b], 7
mov byte [esp + 0x1c], 0
call fcn.004d8630
add esp, 4
mov ebp, eax
push str.Getting_Zen_Bones_layout_names_n
call fcn.004f07d0
mov edi, 0x5a3088
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
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
mov dword [esp + 0x10], eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + ecx + 0x24]
push eax
push str.zenzen_d.grd
push ebx
call fcn.005308a0
add esp, 0xc
lea ecx, [esp + 0x24]
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 0x45c55f
lea edx, [esp + 0x20]
push 0
push edx
push 0x16
push ebp
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 0x45c55f
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.005360f0
add esp, 8
test eax, eax
jne 0x45c55f
mov al, byte [ebp + 0x15]
test al, al
mov eax, str.User_created
jne 0x45c4af
mov eax, str.Sierra_provided
lea edi, [ebp + 5]
push eax
push edi
push ebx
lea ecx, [esp + 0x134]
push str._s:___s___s__n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x128]
push edx
call fcn.004f07d0
add esp, 4
push 0x890
call fcn.004d8630
mov esi, eax
add esp, 4
test esi, esi
je 0x45c4fd
mov ecx, esi
call fcn.00499ff0
mov dword [esi], vtable.LoadLayoutListText.0
jmp 0x45c4ff
xor esi, esi
mov eax, dword [esp + 0x1c]
push esi
mov ecx, dword [eax + 0x8c]
call fcn.0049b020
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, byte [ebp + 0x15]
test al, al
jne 0x45c532
push 5
mov ecx, esi
call fcn.0046b4a0
mov dword [esi + 0x88c], 0
jmp 0x45c545
push 2
mov ecx, esi
call fcn.0046b4a0
mov dword [esi + 0x88c], 1
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x3c]
push 0xf
mov ecx, esi
call fcn.0046b470
mov edx, dword [esi]
push 4
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x64
mov dword [esp + 0x10], eax
jl 0x45c42f
xor eax, eax
mov dword [esp + 0x10], eax
push eax
push str.zenzenu_d.grd
push ebx
call fcn.005308a0
add esp, 0xc
lea eax, [esp + 0x24]
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 0x45c6a7
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x16
push ebp
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 0x45c6a7
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.005360f0
add esp, 8
test eax, eax
jne 0x45c6a7
mov al, byte [ebp + 0x15]
test al, al
mov eax, str.User_created
jne 0x45c5f7
mov eax, str.Sierra_provided
lea edi, [ebp + 5]
push eax
push edi
push ebx
lea eax, [esp + 0x134]
push str._s:___s___s__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x128]
push ecx
call fcn.004f07d0
add esp, 4
push 0x890
call fcn.004d8630
mov esi, eax
add esp, 4
test esi, esi
je 0x45c645
mov ecx, esi
call fcn.00499ff0
mov dword [esi], vtable.LoadLayoutListText.0
jmp 0x45c647
xor esi, esi
mov edx, dword [esp + 0x1c]
push esi
mov ecx, dword [edx + 0x8c]
call fcn.0049b020
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp + 0x15]
test al, al
jne 0x45c67a
push 5
mov ecx, esi
call fcn.0046b4a0
mov dword [esi + 0x88c], 0
jmp 0x45c68d
push 2
mov ecx, esi
call fcn.0046b4a0
mov dword [esi + 0x88c], 1
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x3c]
push 0xf
mov ecx, esi
call fcn.0046b470
mov eax, dword [esi]
push 4
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x64
mov dword [esp + 0x10], eax
jl 0x45c577
mov ecx, dword [esp + 0x1c]
push 0x5080b0
mov ecx, dword [ecx + 0x8c]
call fcn.0049b730
push ebp
call fcn.004d86d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret