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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
lea esi, [ebp - 0x50]
push ebx
mov ebx, eax
sub esp, 0x7c
mov dword [ebp - 0x5c], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._LZSeek_12
sub esp, 0xc
mov dword [esp + 8], 0x40
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._LZRead_12
sub esp, 0xc
cmp eax, 0x40
jne 0x7a342550
cmp word [ebp - 0x50], 0x5a4d
je 0x7a342570
cmp dword [ebp - 0x50], 0x464c457f
je 0x7a342560
mov eax, dword [ebp - 0x50]
cmp eax, 0xfeedface
je 0x7a342560
cmp eax, 0xcefaedfe
je 0x7a342560
lea esi, [esi]
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov esi, 1
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._LZSeek_12
lea eax, [ebp - 0x53]
sub esp, 0xc
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._LZRead_12
sub esp, 0xc
cmp eax, 2
jne 0x7a342550
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._LZSeek_12
movzx eax, byte [ebp - 0x53]
sub esp, 0xc
cmp al, 0x4e
je 0x7a342660
cmp al, 0x50
jne 0x7a3425d9
cmp byte [ebp - 0x52], 0x45
je 0x7a342630
mov byte [ebp - 0x51], 0
test byte [section..data], 4
je 0x7a342550
lea eax, [ebp - 0x53]
mov dword [esp + 0x14], str.Cant_handle__s_files._n
xor esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xb9
mov dword [esp + 0xc], str.read_xx_header
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 2
call sym._ros_dbg_log
jmp 0x7a342552
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x5c]
mov edx, edi
mov dword [esp], eax
mov eax, ebx
call sym._find_pe_resource
cmp eax, 1
sbb esi, esi
lea esp, [ebp - 0xc]
not esi
pop ebx
and esi, 0x4550
mov eax, esi
pop esi
pop edi
pop ebp
ret
cmp byte [ebp - 0x52], 0x45
jne 0x7a3425d9
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._LZSeek_12
sub esp, 0xc
mov dword [ebp - 0x60], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._LZRead_12
sub esp, 0xc
cmp eax, 0x40
jne 0x7a342550
movzx edx, word [ebp - 0x2a]
movzx eax, word [ebp - 0x2c]
sub edx, eax
mov esi, edx
jne 0x7a342700
test byte [section..data], 8
je 0x7a342550
mov dword [esp + 0x14], str.No_resources_in_NE_dll_n
mov dword [esp + 0x10], 0xd3
mov dword [esp + 0xc], str.find_ne_resource
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x7a342552
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov dword [ebp - 0x64], eax
test eax, eax
je 0x7a342550
movzx eax, word [ebp - 0x2c]
add eax, dword [ebp - 0x60]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._LZSeek_12
mov eax, dword [ebp - 0x64]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._LZRead_12
sub esp, 0xc
cmp esi, eax
jne 0x7a3427c0
mov ecx, dword [ebp - 0x64]
movzx edx, word [ecx + 2]
lea eax, [ecx + 2]
test dx, dx
jne 0x7a342783
jmp 0x7a3427e4
movzx edx, word [eax + 2]
lea edx, [edx + edx*2]
lea eax, [eax + edx*4 + 8]
movzx edx, word [eax]
test dx, dx
je 0x7a3427e4
cmp dx, 0x8010
jne 0x7a342770
movzx ecx, word [eax + 2]
lea edx, [eax + 8]
test ecx, ecx
je 0x7a3427b2
cmp word [eax + 0xe], 0x8001
jne 0x7a3427aa
jmp 0x7a342823
cmp word [edx + 6], 0x8001
je 0x7a342823
add edx, 0xc
sub ecx, 1
jne 0x7a3427a2
test byte [section..data], 8
jne 0x7a342864
nop
call sym._GetProcessHeap_0
mov edi, dword [ebp - 0x64]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edi
call sym._HeapFree_12
sub esp, 0xc
jmp 0x7a342550
test byte [section..data], 8
je 0x7a3427c0
mov dword [esp + 0x14], str.No_typeid_entry_found_n
mov dword [esp + 0x10], 0xea
mov dword [esp + 0xc], str.find_ne_resource
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x7a3427c0
mov ebx, dword [ebp - 0x64]
movzx eax, word [edx + 2]
mov esi, 0x454e
movzx ecx, word [ebx]
shl eax, cl
mov dword [edi], eax
movzx eax, word [edx]
movzx ecx, word [ebx]
shl eax, cl
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
jmp 0x7a342552
mov dword [esp + 0x14], str.No_resid_entry_found_n
mov dword [esp + 0x10], 0xf4
jmp 0x7a3427fd