Function at 0x47f66d
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov eax, 0x66ec3d
call fcn.006313fc
sub esp, 0x190
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b0]
push edi
cmp dword [esi + 0x14], 8
jb 0x47f692
mov eax, dword [esi]
jmp 0x47f694
mov eax, esi
push 0x80
push 4
push eax
call fcn.0045eeaa
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
xor edi, edi
mov dword [esp + 0x1a8], edi
cmp ebx, 0xffffffff
jne 0x47f6d2
cmp dword [esi + 0x14], 8
jb 0x47f6c7
mov esi, dword [esi]
push esi
push str.Cant_open_archive_file__s
jmp 0x47f875
push edi
lea eax, [esp + 0x14]
push eax
push 0x40
lea eax, [esp + 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x47f867
cmp dword [esp + 0x10], 0x40
jne 0x47f867
mov eax, 0x5a4d
cmp word [esp + 0x68], ax
jne 0x47f867
push edi
push edi
push dword [esp + 0xac]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47f745
cmp dword [esi + 0x14], 8
jb 0x47f726
mov esi, dword [esi]
push dword [esp + 0xa4]
push esi
push str.Cant_set_pointer_in_btinstall_file__s_to__d
lea eax, [esp + 0x2c]
push eax
call fcn.0047224d
add esp, 0x10
jmp 0x47f882
push edi
lea eax, [esp + 0x14]
push eax
push 0xf8
lea eax, [esp + 0xb4]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x47f867
cmp dword [esp + 0x10], 0xf8
jne 0x47f867
cmp dword [esp + 0xa8], 0x4550
jne 0x47f867
push edi
lea eax, [esp + 0x14]
push eax
push 0x28
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x47f857
cmp dword [esp + 0x10], 0x28
jne 0x47f857
xor eax, eax
mov dword [esp + 0x18], edi
mov edx, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edx
cmp ax, word [esp + 0xae]
jae 0x47f815
mov ecx, dword [esp + 0x54]
cmp ecx, edx
jbe 0x47f7dd
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x14]
push eax
push 0x28
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x47f83f
cmp dword [esp + 0x10], 0x28
jne 0x47f83f
mov ecx, dword [esp + 0x14]
movzx eax, word [esp + 0xae]
inc ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x47f7c7
cmp ebp, edi
je 0x47f826
test ebx, ebx
je 0x47f826
push ebx
call ebp
mov ebp, edi
mov dword [esp + 0x3c], ebp
push edi
push dword [esp + 0x1c]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00422efb
call fcn.0047e944
mov edi, eax
jmp 0x47f89b
cmp dword [esi + 0x14], 8
jb 0x47f847
mov esi, dword [esi]
mov eax, dword [esp + 0x14]
push esi
push eax
push str.Cant_read_section__d_of__s
jmp 0x47f733
cmp dword [esi + 0x14], 8
jb 0x47f85f
mov esi, dword [esi]
push esi
push str.Cant_read_sectiontable_of__s
jmp 0x47f875
cmp dword [esi + 0x14], 8
jb 0x47f86f
mov esi, dword [esi]
push esi
push str.Cant_read_header_of__s
lea eax, [esp + 0x28]
push eax
call fcn.0047224d
add esp, 0xc
mov ecx, dword [esp + 0x1b8]
push eax
call fcn.0044dbe6
push edi
push 1
lea ecx, [esp + 0x28]
call fcn.0042341c
or dword [esp + 0x1a8], 0xffffffff
test ebp, ebp
je 0x47f8ae
test ebx, ebx
je 0x47f8ae
push ebx
call ebp
mov ecx, dword [esp + 0x1a0]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 8