Function at 0x7a343320
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov esi, dword [ebp + 0x18]
test byte [section..data], 8
jne 0x7a343640
test esi, esi
je 0x7a343725
mov eax, dword [ebp + 8]
and eax, 0xfffffffe
jne 0x7a3434a0
lea eax, [ebp - 0x98]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._LZOpenFileW_12
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x7a3436b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x9c]
lea edx, [ebp - 0xa0]
mov dword [esp], eax
mov eax, ebx
call sym._find_version_resource
mov edi, eax
cmp eax, 1
ja 0x7a3434f0
mov dword [esp], ebx
call sym._LZClose_4
sub esp, 4
cmp edi, 1
jne 0x7a3435b9
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._LoadLibraryExW_12
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x7a3435b9
test byte [ebp + 8], 1
jne 0x7a343580
mov dword [esp + 0xc], 0x409
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._FindResourceExW_16
sub esp, 0x10
mov edx, eax
test eax, eax
je 0x7a343580
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [ebp - 0xa4], edx
call sym._LoadResource_8
mov edx, dword [ebp - 0xa4]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._SizeofResource_8
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xa4]
sub esp, 8
cmp eax, ecx
jb 0x7a343740
mov dword [esp], ebx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], ecx
call sym._LockResource_4
mov ecx, dword [ebp - 0xa4]
sub esp, 4
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._memmove
mov dword [esp], ebx
call sym._FreeResource_4
sub esp, 4
mov dword [esp], edi
call sym._FreeLibrary_4
sub esp, 4
jmp 0x7a3435dd
test byte [section..data], 1
je 0x7a343350
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.flags_0x_x_ignored_n
mov dword [esp + 0x10], 0x2f4
mov dword [esp + 0xc], str.GetFileVersionInfoExW
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x7a343350
mov eax, dword [ebp - 0x9c]
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._LZSeek_12
mov eax, dword [ebp - 0xa0]
sub esp, 0xc
cmp eax, dword [ebp + 0x14]
ja 0x7a3436e4
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._LZRead_12
sub esp, 0xc
mov dword [ebp - 0xa0], eax
mov dword [esp], ebx
call sym._LZClose_4
sub esp, 4
cmp edi, 0x454e
jne 0x7a3435d5
test byte [section..data], 8
jne 0x7a3436f0
mov dword [esp], 0
call sym._SetLastError_4
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._FindResourceW_12
sub esp, 0xc
mov edx, eax
test eax, eax
jne 0x7a343412
mov dword [esp], edi
call sym._FreeLibrary_4
sub esp, 4
cmp ebx, 0xffffffff
je 0x7a3436d8
mov eax, 0x714
mov dword [esp], eax
call sym._SetLastError_4
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
cmp edi, 0x4550
jne 0x7a3435b9
movzx edx, word [esi]
lea eax, [edx + 4]
mov dword [ebp - 0xa0], eax
cmp eax, dword [ebp + 0x14]
ja 0x7a3435f5
mov dword [esi + edx], 0x58324546
test byte [section..data], 8
je 0x7a343559
mov dword [esp], section..data
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x7a343559
lea ebx, [esi + 6]
mov dword [esp], ebx
call sym._lstrlenW_4
lea eax, [ebx + eax*2 + 2]
sub esp, 4
sub eax, esi
add eax, 3
and eax, 0xfffffffc
add eax, esi
call sym._print_vffi_debug
jmp 0x7a343559
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str._0x_x__s__d_size_d_data_p__n
mov dword [esp + 0x10], 0x2eb
mov dword [esp + 0xc], str.GetFileVersionInfoExW
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x7a34333c
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._LoadLibraryExW_12
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x7a3433db
movzx eax, word [ebp - 0x96]
jmp 0x7a3435be
mov eax, dword [ebp + 0x14]
jmp 0x7a34351c
mov dword [esp], section..data
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x7a343559
lea ebx, [esi + 4]
mov dword [esp], ebx
sub ebx, esi
call dword [sym.imp.msvcrt.dll_strlen]
lea eax, [ebx + eax + 4]
and eax, 0xfffffffc
add eax, esi
call sym._print_vffi_debug
jmp 0x7a343559
mov dword [esp], 0xd
call sym._SetLastError_4
xor eax, eax
sub esp, 4
jmp 0x7a34356d
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._SizeofResource_8
sub esp, 8
mov ecx, eax
jmp 0x7a34344f