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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc4
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x68949e54]
movzx edx, byte [ecx]
and edx, 8
je 0x6892f2c2
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [eax + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_version.c]
cmp ecx, 0x2e
jne 0x6892f263
mov dword [ebp - 0x20], 0x12
jmp 0x6892f26a
mov dword [ebp - 0x20], 0x21
push 0x68938310
push 0x2e7
push 0x6894a320
mov edx, dword [ebp - 0x20]
add edx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_version.c
push edx
mov eax, dword [0x68949e54]
push eax
push 3
call fcn.68933a40
add esp, 0x18
cmp eax, 0xffffffff
je 0x6892f2c2
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.689189d0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
push str._0x_x__s__d_size_d_data_p__n
call fcn.68933ab0
add esp, 0x18
cmp dword [ebp + 0x18], 0
jne 0x6892f2d6
push 0xd
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x6892f5d2
mov eax, dword [ebp + 8]
and eax, 0xfffffffe
je 0x6892f352
mov ecx, dword [0x68949e54]
movzx edx, byte [ecx]
and edx, 1
je 0x6892f352
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [eax + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_version.c]
cmp ecx, 0x2e
jne 0x6892f309
mov dword [ebp - 0x34], 0x12
jmp 0x6892f310
mov dword [ebp - 0x34], 0x21
push 0x68938310
push 0x2f0
push 0x6894a320
mov edx, dword [ebp - 0x34]
add edx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_version.c
push edx
mov eax, dword [0x68949e54]
push eax
push 0
call fcn.68933a40
add esp, 0x18
cmp eax, 0xffffffff
je 0x6892f352
mov ecx, dword [ebp + 8]
and ecx, 0xfffffffe
push ecx
push str.flags_0x_x_ignored_n
call fcn.68933ab0
add esp, 8
push 0
lea edx, [ebp - 0xc4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.kernelbase.dll_LZOpenFileW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x6892f3d0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.68930dc0
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jbe 0x6892f3c7
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sym.kernelbase.dll_LZSeek
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x14]
jae 0x6892f3ad
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
jmp 0x6892f3b3
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sym.kernelbase.dll_LZRead
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sym.kernelbase.dll_LZClose
cmp dword [ebp - 0x18], 1
jne 0x6892f4b0
push 2
push 0
mov edx, dword [ebp + 0xc]
push edx
call sub.kernel32.dll_LoadLibraryExW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6892f4b0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
and eax, 1
jne 0x6892f421
mov ecx, 0x409
mov word [ebp - 0x1c], cx
movzx edx, word [ebp - 0x1c]
push edx
push 0x10
push 1
mov eax, dword [ebp - 0xc]
push eax
call sym.kernelbase.dll_FindResourceExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x6892f437
push 0x10
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call sym.kernelbase.dll_FindResourceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x6892f4a7
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sym.kernelbase.dll_LoadResource
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0x4550
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sym.kernelbase.dll_SizeofResource
cmp eax, dword [ebp + 0x14]
jae 0x6892f478
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sym.kernelbase.dll_SizeofResource
mov dword [ebp - 0x38], eax
jmp 0x6892f47e
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sym.kernelbase.dll_LockResource
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.ntext.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call sym.kernelbase.dll_FreeResource
mov edx, dword [ebp - 0xc]
push edx
call sym.kernelbase.dll_FreeLibrary
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x454e
je 0x6892f4cd
cmp dword [ebp - 0x28], 0x4550
je 0x6892f52a
jmp 0x6892f5ae
movzx ecx, byte [0x6896ac94]
and ecx, 8
je 0x6892f519
push 0x6896ac94
call fcn.68933280
add esp, 4
movzx edx, al
and edx, 8
je 0x6892f519
mov eax, dword [ebp + 0x18]
add eax, 4
push eax
call sub.ntext.dll_strlen
add esp, 4
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + eax + 5]
sub edx, dword [ebp + 0x18]
add edx, 3
and edx, 0xfffffffc
add edx, dword [ebp + 0x18]
push edx
call fcn.68930e50
add esp, 4
push 0
call sub.kernel32.dll_SetLastError
mov eax, 1
jmp 0x6892f5d2
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 4]
jb 0x6892f557
push 4
push str.FE2X_
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
add ecx, dword [ebp + 0x18]
push ecx
call sub.ntext.dll_memcpy
add esp, 0xc
movzx edx, byte [0x6896ac94]
and edx, 8
je 0x6892f5a0
push 0x6896ac94
call fcn.68933280
add esp, 4
movzx eax, al
and eax, 8
je 0x6892f5a0
mov ecx, dword [ebp - 0x14]
add ecx, 6
push ecx
call sym.kernelbase.dll_lstrlenW
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*2 + 8]
sub eax, dword [ebp - 0x14]
add eax, 3
and eax, 0xfffffffc
add eax, dword [ebp - 0x14]
push eax
call fcn.68930e50
add esp, 4
push 0
call sub.kernel32.dll_SetLastError
mov eax, 1
jmp 0x6892f5d2
cmp dword [ebp - 0x10], 0xffffffff
jne 0x6892f5c0
movzx ecx, word [ebp - 0xc2]
mov dword [ebp - 0x30], ecx
jmp 0x6892f5c7
mov dword [ebp - 0x30], 0x714
mov edx, dword [ebp - 0x30]
push edx
call sub.kernel32.dll_SetLastError
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14