Function at 0x796fac
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff920
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6dc], ebx
mov dword [ebp - 0x6d8], ebx
mov dword [ebp - 0x6d4], ebx
mov dword [ebp - 0x6d0], ebx
mov dword [ebp - 0x6cc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0040b148
mov eax, dword [ebp - 8]
call fcn.0040b148
xor eax, eax
push ebp
push 0x797335
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040c2c8
jne 0x79702e
push 0xa
push 3
mov ecx, dword [ebp - 4]
mov edx, 0x390
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
jmp 0x797308
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.004314ec
mov ebx, eax
mov dword [ebp - 0x478], ebx
mov eax, ebx
xor edx, edx
cmp edx, 0xffffffff
jne 0x79706a
cmp eax, 0xffffffff
jne 0x79706a
push 2
push 1
mov ecx, dword [ebp - 4]
mov edx, 0x391
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
jmp 0x797308
mov ecx, 2
xor edx, edx
mov eax, ebx
call fcn.004318b8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x7970a0
push ebx
call sub.kernel32.dll_CloseHandle
push 0xa
push 2
mov ecx, dword [ebp - 4]
mov edx, 0x392
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
jmp 0x797308
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004318b8
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x171], 0
je 0x7970e6
lea eax, [ebp - 0x228]
push eax
push 0
push 0x79734c
lea edx, [ebp - 0x6cc]
mov eax, dword [ebp - 0xc]
call fcn.00794e2c
mov eax, dword [ebp - 0x6cc]
call fcn.0040becc
push eax
call sub.kernel32.dll_GetTempFileNameW
jmp 0x797108
lea eax, [ebp - 0x228]
push eax
push 0
push 0x79734c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x180]
call fcn.0040becc
push eax
call sub.kernel32.dll_GetTempFileNameW
lea edx, [ebp - 0x6d0]
lea eax, [ebp - 0x228]
call fcn.0043287c
mov eax, dword [ebp - 0x6d0]
call fcn.00431544
mov esi, eax
mov dword [ebp - 0x6c8], esi
test esi, esi
jae 0x79713b
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x797308
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 0
mov eax, 0x8000
call fcn.00407108
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
mov edx, esi
mov ecx, 0x8000
mov edi, dword [ebp - 0x478]
mov eax, edi
call fcn.00431860
mov ebx, eax
test ebx, ebx
jge 0x79718b
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x6c8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
call fcn.00407124
mov byte [ebp - 0x1e], 1
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x6c8]
call fcn.0043188c
mov esi, eax
test esi, esi
jge 0x7971be
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x6c8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
call fcn.00407124
mov byte [ebp - 0x1e], 1
add dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x58]
lea edx, [ebp - 0x1d]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [0x8cd198]
mov eax, dword [eax]
call fcn.005cf924
test ebx, ebx
je 0x797202
cmp esi, ebx
jne 0x797202
cmp byte [ebp - 0x1d], 0
jne 0x797202
cmp byte [ebp - 0x1e], 0
je 0x797150
mov eax, dword [ebp - 0x478]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x6c8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
call fcn.00407124
mov eax, dword [ebp - 0xc]
movzx edx, byte [ebp - 0x1d]
mov byte [eax + 0x1b1], dl
movzx eax, byte [ebp - 0x1d]
or al, byte [ebp - 0x1e]
je 0x797259
lea edx, [ebp - 0x6d4]
lea eax, [ebp - 0x228]
call fcn.0043287c
mov eax, dword [ebp - 0x6d4]
call fcn.00431f14
jmp 0x797308
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.00431b38
test al, al
je 0x7972c7
mov eax, dword [ebp - 8]
call fcn.00431f14
test al, al
jne 0x7972c7
mov eax, dword [ebp - 8]
call fcn.00796f84
mov eax, dword [ebp - 8]
call fcn.00431f14
mov eax, dword [ebp - 8]
call fcn.00431f14
test al, al
jne 0x7972c7
mov byte [ebp - 0xd], 0
push 0x13
push 6
mov ecx, dword [ebp - 8]
mov edx, 0x3cc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
lea eax, [ebp - 0x6d8]
mov ecx, dword [ebp - 8]
mov edx, 0x797364
call fcn.0040c130
mov eax, dword [ebp - 0x6d8]
call fcn.00794838
jmp 0x797308
lea edx, [ebp - 0x6dc]
lea eax, [ebp - 0x228]
call fcn.0043287c
mov ebx, dword [ebp - 0x6dc]
mov eax, dword [ebp - 8]
call fcn.0040becc
push eax
mov dword [ebp - 0x6e0], ebx
mov eax, dword [ebp - 0x6e0]
call fcn.0040becc
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79733c
lea eax, [ebp - 0x6dc]
mov edx, 5
call fcn.0040b0b4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b0b4
pop eax
jmp eax