Function at 0x4648f0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47386a
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xb4
push ebx
push esi
push edi
mov eax, dword [0x492740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push ecx
mov eax, esp
mov dword [ebp - 0x4c], esp
lea ecx, [ebp + 8]
push ecx
push 0x47d878
push eax
call fcn.004015e0
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov ecx, 0x497300
call fcn.0046acf0
call fcn.004038a0
mov dword [ebp - 0x1c], eax
push 1
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp + 8]
call fcn.004033f0
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 1
push 0x47d890
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.00406670
add esp, 8
mov byte [ebp - 0x4d], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00405400
movzx edx, byte [ebp - 0x4d]
test edx, edx
je 0x4649b2
push 0x47d894
lea ecx, [ebp + 8]
call fcn.00401510
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
call fcn.0045acc0
push 0x47d898
push 0x384
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4649fc
mov dword [ebp - 0x64], 0x47d8a4
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
call fcn.0043b22c
push 0x48a190
lea ecx, [ebp - 0x60]
push ecx
call fcn.0044193f
cmp dword [ebp - 0x20], 0
je 0x464c7e
mov edx, dword [ebp - 0x20]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x464c51
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x3c]
call fcn.00427000
mov byte [ebp - 4], 2
push 0x47d8dc
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x6c]
push eax
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 3
push 0
push 0x1002
mov ecx, dword [ebp - 0xb0]
call fcn.004010f0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00427444
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00405400
cmp dword [ebp - 0x68], 0
je 0x464c39
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00426d4e
lea ecx, [ebp - 0x3c]
call fcn.00426e34
lea ecx, [ebp - 0x3c]
call fcn.00426f9e
lea ecx, [ebp - 0x44]
call fcn.004038b0
mov byte [ebp - 4], 4
push 0x104
lea ecx, [ebp - 0x44]
call fcn.00401ab0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.00405e00
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
lea edx, [ebp + 8]
push edx
call fcn.00401e00
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0x47d8ec
lea edx, [ebp + 8]
push edx
push ecx
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 5
call fcn.004630b0
add esp, 8
jmp 0x464bdc
mov dword [ebp - 4], 4
push 0x47d90c
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x8c]
push eax
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
call fcn.004010f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x8c]
call fcn.00405400
lea ecx, [ebp - 0x44]
call fcn.004010f0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405400
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0042710d
jmp 0x464c7e
mov dword [ebp - 0x9c], 0x47d91c
lea edx, [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x98]
call fcn.0043b22c
push 0x48a190
lea eax, [ebp - 0x98]
push eax
call fcn.0044193f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret