Function at 0x42e080
Capabilities:
Extract resource via kernel32 functions
Get common file path
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x67c
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x1c], ebp
mov ecx, dword [ebp + 0xf4]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x120]
push 0
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov ecx, dword [ebp + 0xf4]
lea eax, [esp + 0x10]
push 4
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
mov ebx, 1
test eax, eax
jbe 0x42e3bb
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x564]
push ecx
push 0
push 0
push 0x23
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, str.OZDevices_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x564]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0xc8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x44228c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x358]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x44228c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x354]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x45c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x45c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
test eax, eax
jbe 0x42e3b9
mov ecx, dword [ebp + 0xf4]
lea eax, [esp + 0x13]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [ebp + 0xf4]
lea eax, [esp + 0x1c]
push 4
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xf4]
push eax
lea eax, [esp + 0x44]
mov edx, dword [ecx]
push eax
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x1c]
xor eax, eax
lea edi, [esp + 0x1cc]
mov byte [esp + ecx + 0x40], 0
mov ecx, 0x61
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esp + 0x13]
cmp al, 5
jne 0x42e3db
lea edi, [esp + 0x564]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1cc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x40]
push 0x12d
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x42e3a4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x42e3a4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42e3a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
je 0x42e3a4
lea edi, [edx + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0x80
and ecx, 3
mov ebp, edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push 0
lea ebx, [edx + eax + 0x1c4]
push 0
lea edx, [esp + 0x1e0]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42e39b
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x30]
lea ecx, [ebp + 0x1c]
push eax
push ecx
call edi
lea edx, [esp + 0x38]
lea eax, [ebp + 0x2c]
push edx
push eax
call edi
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x24]
mov ebx, 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x42e20a
pop edi
pop esi
mov ebp, dword [ebp + 0xf4]
mov eax, dword [esp + 0x20]
push 0
push eax
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
mov eax, ebx
pop ebp
pop ebx
add esp, 0x67c
ret
cmp al, bl
jne 0x42e3eb
lea edi, [esp + 0x354]
jmp 0x42e26f
cmp al, 2
jne 0x42e3fb
lea edi, [esp + 0xc4]
jmp 0x42e26f
cmp al, 4
jne 0x42e293
lea edi, [esp + 0x45c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 2
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x42e297