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

Disassembly:
sub esp, 0x410
mov eax, dword [0x4ca09c]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
mov esi, ecx
push str.bExtract_VXD_n
push esi
call fcn.00495a80
lea eax, [esi + 0x810]
push eax
lea ecx, [esi + 0x410]
push ecx
push str._s_s
lea eax, [esp + 0x28]
push 0x200
push eax
call fcn.004310e0
lea ecx, [esp + 0x30]
push ecx
push str.szDestName___s_n
push esi
call fcn.00495a80
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 0x41e85c
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.004811b7
add esp, 0x410
ret
mov eax, dword [esi + 0x968]
push eax
call fcn.0041e7b0
add esp, 4
test eax, eax
jne 0x41e896
push str.m_dwResourceID_VXD
push esi
call fcn.00495a80
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004811b7
add esp, 0x410
ret
cmp byte [esi + 0x610], 0
lea eax, [esi + 0x610]
je 0x41e921
push eax
lea ecx, [esp + 0x218]
push 0x200
push ecx
call fcn.00481ba5
add esp, 0xc
push edi
lea ecx, [esp + 0x218]
push ecx
push str.szHostName___s_n
push esi
call fcn.00495a80
add esp, 0xc
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x41e970
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x21c]
push eax
push str.GetModuleHandle
push esi
call fcn.00495a80
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004811b7
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 0x41e8bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x218]
push eax
push str.GetModuleFileName
push esi
call fcn.00495a80
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004811b7
add esp, 0x410
ret
movzx ecx, word [esi + 0x968]
push ebp
push 0xa
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
jne 0x41e9a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindResource
push esi
call fcn.00495a80
add esp, 0xc
xor eax, eax
jmp 0x41eb30
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41e9cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a49d8
push esi
call fcn.00495a80
add esp, 0xc
xor eax, eax
jmp 0x41eb30
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 0x41ea05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a49b0
push esi
call fcn.00495a80
add esp, 0xc
xor eax, eax
jmp 0x41eb30
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 0x41eaf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x20]
push eax
push 0x4a4980
push esi
call fcn.00495a80
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 0x41eaf8
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x200
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4a497c
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.00430eb0
lea eax, [esi + 0x810]
push eax
lea edx, [esp + 0x2c]
push 0x200
push edx
call fcn.00430eb0
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 0x41eae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x4a4944
push esi
call fcn.00495a80
add esp, 0x10
xor eax, eax
jmp 0x41eb30
push 0x200
lea eax, [esi + 0x410]
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 0x41eb27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a4920
push esi
call fcn.00495a80
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.004811b7
add esp, 0x410
ret