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

Disassembly:
push 0x284
mov eax, 0x43d657
call fcn.0042284b
mov edi, edx
mov dword [ebp - 0x258], ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x260], eax
or dword [eax], 0xffffffff
mov dword [ebp - 0x25c], 0xc0000000
cmp dword [ecx + 0x10], esi
jne 0x41b07d
xor eax, eax
mov dword [ebp - 0x278], esi
push 0x44b404
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.00404f78
xor ebx, ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x278]
inc ebx
jmp 0x41b096
mov edx, ecx
lea ecx, [ebp - 0x290]
push 0x44b250
call fcn.0040519b
pop ecx
push 2
pop ebx
mov dword [ebp - 4], ebx
push edi
mov ecx, eax
mov dword [ebp - 0x254], ebx
call fcn.0040604b
push eax
lea ecx, [ebp - 0x250]
call fcn.00404a9f
or ebx, 4
mov dword [ebp - 4], 3
test bl, 2
je 0x41b0cd
lea ecx, [ebp - 0x290]
and ebx, 0xfffffffd
call fcn.0040818b
mov byte [ebp - 4], 5
push 8
pop edi
test bl, 1
je 0x41b147
mov eax, dword [ebp - 0x264]
cmp eax, edi
jb 0x41b12d
mov ecx, dword [ebp - 0x278]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x220], ecx
cmp eax, 0x1000
jb 0x41b124
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x254]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
push eax
push ecx
call fcn.00421c79
pop ecx
pop ecx
push 7
pop ebx
xor eax, eax
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], ebx
mov word [ebp - 0x278], ax
jmp 0x41b14a
push 7
pop ebx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x260]
call fcn.0041b3e8
test al, al
jne 0x41b3ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41b176
mov esi, eax
jmp 0x41b3ca
push 0x208
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00423cf0
mov eax, dword [ebp - 0x258]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x41b198
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x41b1b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b16f
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x238], esi
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], ebx
call fcn.00404f78
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jb 0x41b1ec
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jb 0x41b200
mov ecx, dword [ebp - 0x250]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41b28b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x258], eax
cmp ecx, edi
jb 0x41b275
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x254], edx
cmp ecx, 0x1000
jb 0x41b266
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004012fb
mov edx, dword [ebp - 0x254]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
push ecx
push edx
call fcn.00421c79
mov eax, dword [ebp - 0x258]
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], cx
mov esi, eax
jmp 0x41b3c4
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x260]
call fcn.0041b3e8
test al, al
je 0x41b31e
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jb 0x41b2b5
mov eax, dword [ebp - 0x238]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x224]
cmp eax, edi
jb 0x41b313
mov ecx, dword [ebp - 0x238]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x254], ecx
cmp eax, 0x1000
jb 0x41b30a
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x220]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x254]
push eax
push ecx
call fcn.00421c79
pop ecx
pop ecx
mov dword [ebp - 0x228], esi
jmp 0x41b3bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x250]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x23c], edi
jb 0x41b33e
mov edx, dword [ebp - 0x250]
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jb 0x41b352
mov ecx, dword [ebp - 0x238]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x224]
cmp eax, edi
jb 0x41b3af
mov ecx, dword [ebp - 0x238]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x254], ecx
cmp eax, 0x1000
jb 0x41b3a6
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004012fb
mov eax, dword [ebp - 0x220]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x254]
push eax
push ecx
call fcn.00421c79
pop ecx
pop ecx
mov dword [ebp - 0x228], esi
mov esi, dword [ebp - 0x258]
xor eax, eax
mov word [ebp - 0x238], ax
mov dword [ebp - 0x224], ebx
lea ecx, [ebp - 0x250]
call fcn.0040818b
mov eax, esi
jmp 0x41b3e2
call fcn.0042279d
ret