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

Disassembly:
sub esp, 0x410
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
mov esi, ecx
push str.bExtract_VXD_n
push esi
call fcn.00421b50
lea eax, [esi + 0xa10]
push eax
lea ecx, [esi + 0x610]
push ecx
push str._s_s
lea eax, [esp + 0x28]
push 0x200
push eax
call fcn.00437120
lea ecx, [esp + 0x30]
push ecx
push str.szDestName___s_n
push esi
call fcn.00421b50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x28
push 0
push 2
push 3
push 0
push 0
push SysReAllocString
lea edx, [esp + 0x2c]
push edx
call ebx
cmp eax, 0xffffffff
je 0x422f2c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00490dce
add esp, 0x410
ret
mov eax, dword [esi + 0xd74]
push eax
call fcn.00407dd0
add esp, 4
test eax, eax
jne 0x422f66
push str.m_dwResourceID_VXD_not_valid_n
push esi
call fcn.00421b50
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00490dce
add esp, 0x410
ret
cmp byte [esi + 0x810], 0
lea eax, [esi + 0x810]
je 0x422ff1
push eax
lea ecx, [esp + 0x218]
push 0x200
push ecx
call fcn.004917bc
add esp, 0xc
push edi
lea ecx, [esp + 0x218]
push ecx
push str.szHostName___s_n
push esi
call fcn.00421b50
add esp, 0xc
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x423040
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x21c]
push eax
push str.GetModuleHandle_failed_on_szHostName__s__error_code___X_n
push esi
call fcn.00421b50
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00490dce
add esp, 0x410
ret
push 0x200
lea edx, [esp + 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x218]
push eax
push str.GetModuleFileName_failed_on_hostname__s__error_code___X_n
push esi
call fcn.00421b50
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00490dce
add esp, 0x410
ret
movzx ecx, word [esi + 0xd74]
push ebp
push 0xa
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
jne 0x423074
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindResource_failed__error_code___X_n
push esi
call fcn.00421b50
add esp, 0xc
xor eax, eax
jmp 0x423200
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42309c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadResource_failed__errorcode___X_n
push esi
call fcn.00421b50
add esp, 0xc
xor eax, eax
jmp 0x423200
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4230d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SizeofResource_failed__errorcode___X_n
push esi
call fcn.00421b50
add esp, 0xc
xor eax, eax
jmp 0x423200
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x34]
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4231c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x20]
push eax
push str.Error_creating_sys_file__s__error_code___X_n
push esi
call fcn.00421b50
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x34]
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4231c8
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x200
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4bdd7c
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.00437060
lea eax, [esi + 0xa10]
push eax
lea edx, [esp + 0x2c]
push 0x200
push edx
call fcn.00437060
add esp, 0x18
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4231b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.Try_2_:_Error_creating_vxd_file__s__error_code___X_n
push esi
call fcn.00421b50
add esp, 0x10
xor eax, eax
jmp 0x423200
push 0x200
lea eax, [esi + 0x610]
push eax
call ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
jne 0x4231f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_failed__errorcode___X_n
push esi
call fcn.00421b50
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x41c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00490dce
add esp, 0x410
ret