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

Disassembly:
sub esp, 0x410
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0xa10]
push eax
lea ecx, [edi + 0x610]
push ecx
push str._s_s
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00422580
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x14
push 0
push 2
push 3
push 0
push 0
push SysReAllocString
lea ecx, [esp + 0x30]
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4a3273
push str._bExtract_VXD__File_already_present_n
push edi
call fcn.004a05b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004c2fd1
add esp, 0x410
ret
mov edx, dword [edi + 0xd7c]
push edx
call fcn.004a31d0
add esp, 4
test eax, eax
je 0x4a33f7
cmp byte [edi + 0x810], 0
lea eax, [edi + 0x810]
je 0x4a33d4
push eax
lea eax, [esp + 0x21c]
push 0x200
push eax
call fcn.004c5045
add esp, 0xc
push ebp
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
test ebp, ebp
je 0x4a33c7
movzx eax, word [edi + 0xd7c]
push 0xa
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4a33c7
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a33c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x4a33c7
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3423
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3423
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x200
lea ecx, [esp + 0x20]
push ecx
call ebp
push 0x4e2f88
lea edx, [esp + 0x20]
push 0x200
push edx
call fcn.00422660
lea eax, [edi + 0xa10]
push eax
lea eax, [esp + 0x2c]
push 0x200
push eax
call fcn.00422660
add esp, 0x18
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x34]
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a3411
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4a345f
push 0x200
lea ecx, [esp + 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a32b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004c2fd1
add esp, 0x410
ret
push 0x200
lea eax, [edi + 0x610]
push eax
call ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
push ecx
push str._bExtract_VXD__WriteFile_returned__d_bytes._n
push edi
mov ebx, eax
call fcn.004a05b0
add esp, 0xc
test ebx, ebx
jne 0x4a3456
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
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.004c2fd1
add esp, 0x410
ret