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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f7a4
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xb4
push ebx
push esi
push edi
mov eax, dword [0x48d740]
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 0x4797a0
push eax
call fcn.004015e0
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov ecx, 0x4922d8
call fcn.00467ca0
call fcn.00403480
mov dword [ebp - 0x1c], eax
push 1
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp + 8]
call fcn.00404b90
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 1
push 0x4797b8
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.004067d0
add esp, 8
mov byte [ebp - 0x4d], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00404e70
movzx edx, byte [ebp - 0x4d]
test edx, edx
je 0x4628a2
push 0x4797bc
lea ecx, [ebp + 8]
call fcn.00404790
lea ecx, [ebp + 8]
call fcn.004024e0
push eax
call fcn.0045aa50
push 0x4797c0
push 0x384
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4628ec
mov dword [ebp - 0x64], str._Out__DATA_resource_not_found_in_current_executable
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
call fcn.0043acfc
push 0x485600
lea ecx, [ebp - 0x60]
push ecx
call fcn.0044150f
cmp dword [ebp - 0x20], 0
je 0x462b6e
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 0x462b41
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.00426de7
mov byte [ebp - 4], 2
push 0x479804
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.004024e0
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042722b
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00404e70
cmp dword [ebp - 0x68], 0
je 0x462b29
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00426b35
lea ecx, [ebp - 0x3c]
call fcn.00426c1b
lea ecx, [ebp - 0x3c]
call fcn.00426d85
lea ecx, [ebp - 0x44]
call fcn.00404e50
mov byte [ebp - 4], 4
push 0x104
lea ecx, [ebp - 0x44]
call fcn.00401a80
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.00405b80
lea ecx, [ebp + 8]
call fcn.004024e0
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.00401880
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 0x479814
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.0045e030
add esp, 8
jmp 0x462acc
mov dword [ebp - 4], 4
push str.data.7z
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.004024e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x8c]
call fcn.00404e70
lea ecx, [ebp - 0x44]
call fcn.004024e0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00404e70
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.00426ef4
jmp 0x462b6e
mov dword [ebp - 0x9c], str.Unable_to_extract_install_resource_
lea edx, [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x98]
call fcn.0043acfc
push 0x485600
lea eax, [ebp - 0x98]
push eax
call fcn.0044150f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404e70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret