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

Disassembly:
push 0x284
mov eax, 0x43ea07
call fcn.0043c15b
mov edi, edx
mov dword [ebp - 0x288], ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x280], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x290], eax
or dword [eax], 0xffffffff
mov dword [ebp - 0x28c], 0xc0000000
cmp dword [ecx + 0x10], esi
jne 0x41d66b
xor eax, eax
mov dword [ebp - 0x24c], esi
push 0x44bd74
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00404821
xor ebx, ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24c]
inc ebx
jmp 0x41d684
mov edx, ecx
lea ecx, [ebp - 0x27c]
push 0x44bbb8
call fcn.00404a12
pop ecx
push 2
pop ebx
mov dword [ebp - 4], ebx
push edi
mov ecx, eax
mov dword [ebp - 0x280], ebx
call fcn.00405860
push eax
lea ecx, [ebp - 0x264]
call fcn.0040435b
or ebx, 4
mov dword [ebp - 4], 3
test bl, 2
je 0x41d6bb
lea ecx, [ebp - 0x27c]
and ebx, 0xfffffffd
call fcn.0040794e
mov byte [ebp - 4], 5
push 8
pop edi
test bl, 1
je 0x41d735
mov eax, dword [ebp - 0x238]
cmp eax, edi
jb 0x41d71b
mov ecx, dword [ebp - 0x24c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x284], ecx
cmp eax, 0x1000
jb 0x41d712
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x280]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x284]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
push 7
pop ebx
xor eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x24c], ax
jmp 0x41d738
push 7
pop ebx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x290]
call fcn.0041d9d6
test al, al
jne 0x41d9b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41d764
mov esi, eax
jmp 0x41d9b8
push 0x208
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00422e80
mov eax, dword [ebp - 0x288]
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x41d786
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 0x41d7a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d75d
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x234], esi
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], ebx
call fcn.00404821
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jb 0x41d7da
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x264]
cmp dword [ebp - 0x250], edi
jb 0x41d7ee
mov ecx, dword [ebp - 0x264]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41d879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x288], eax
cmp ecx, edi
jb 0x41d863
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x280], edx
cmp ecx, 0x1000
jb 0x41d854
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00407f7a
mov edx, dword [ebp - 0x280]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x284]
push ecx
push edx
call fcn.0041ec23
mov eax, dword [ebp - 0x288]
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], cx
mov esi, eax
jmp 0x41d9b2
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x290]
call fcn.0041d9d6
test al, al
je 0x41d90c
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jb 0x41d8a3
mov eax, dword [ebp - 0x234]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x220]
cmp eax, edi
jb 0x41d901
mov ecx, dword [ebp - 0x234]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x41d8f8
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x284]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
mov dword [ebp - 0x224], esi
jmp 0x41d9a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x264]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x250], edi
jb 0x41d92c
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jb 0x41d940
mov ecx, dword [ebp - 0x234]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x220]
cmp eax, edi
jb 0x41d99d
mov ecx, dword [ebp - 0x234]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x41d994
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00407f7a
mov eax, dword [ebp - 0x284]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.0041ec23
pop ecx
pop ecx
mov dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x288]
xor eax, eax
mov word [ebp - 0x234], ax
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x264]
call fcn.0040794e
mov eax, esi
jmp 0x41d9d0
call fcn.0043c0ad
ret