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

Disassembly:
sub esp, 0x410
mov eax, dword [0x4efd34]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
mov esi, ecx
push str.bExtract_VXD_n
push esi
call fcn.00421bf0
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.004374b0
lea ecx, [esp + 0x30]
push ecx
push str.szDestName___s_n
push esi
call fcn.00421bf0
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 0x42312c
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.004972eb
add esp, 0x410
ret
mov eax, dword [esi + 0xd78]
push eax
call fcn.00407ba0
add esp, 4
test eax, eax
jne 0x423166
push str.m_dwResourceID_VXD_not_valid_n
push esi
call fcn.00421bf0
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004972eb
add esp, 0x410
ret
cmp byte [esi + 0x810], 0
lea eax, [esi + 0x810]
je 0x4231f1
push eax
lea ecx, [esp + 0x218]
push 0x200
push ecx
call fcn.004979df
add esp, 0xc
push edi
lea ecx, [esp + 0x218]
push ecx
push str.szHostName___s_n
push esi
call fcn.00421bf0
add esp, 0xc
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x423240
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.00421bf0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004972eb
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 0x42318b
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.00421bf0
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004972eb
add esp, 0x410
ret
movzx ecx, word [esi + 0xd78]
push ebp
push 0xa
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
jne 0x423274
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindResource_failed__error_code___X_n
push esi
call fcn.00421bf0
add esp, 0xc
xor eax, eax
jmp 0x423400
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42329c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadResource_failed__errorcode___X_n
push esi
call fcn.00421bf0
add esp, 0xc
xor eax, eax
jmp 0x423400
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 0x4232d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SizeofResource_failed__errorcode___X_n
push esi
call fcn.00421bf0
add esp, 0xc
xor eax, eax
jmp 0x423400
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 0x4233c8
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.00421bf0
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 0x4233c8
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x200
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4c3de4
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.004373f0
lea eax, [esi + 0xa10]
push eax
lea edx, [esp + 0x2c]
push 0x200
push edx
call fcn.004373f0
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 0x4233b6
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.00421bf0
add esp, 0x10
xor eax, eax
jmp 0x423400
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 0x4233f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_failed__errorcode___X_n
push esi
call fcn.00421bf0
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.004972eb
add esp, 0x410
ret