Function at 0x40e3d0
Capabilities:
Check os version
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a4ea
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x49c], 0
call fcn.00431bc0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00431bc0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], eax
mov word [ebp - 0x468], ax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 6
ja 0x40e560
je 0x40e560
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x40e4d4
xor ecx, ecx
jmp 0x40e4ef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e4e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.004015d0
cmp dword [ebp - 0x43c], 8
jb 0x40e519
push dword [ebp - 0x450]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
call fcn.00402530
cmp dword [ebp - 0x424], 8
jb 0x40e740
push dword [ebp - 0x438]
jmp 0x40e738
lea edx, [ebp - 0x218]
call fcn.00417020
mov eax, dword [0x46c6d0]
test al, 1
jne 0x40e5a4
or eax, 1
mov dword [0x46c6d0], eax
push ecx
push 0x459dfc
push 6
push ecx
mov ecx, 0x46c818
mov byte [ebp - 4], 2
call fcn.00418740
push 0x44f360
call fcn.0042fb26
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [0x46c81c]
xor eax, eax
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
cmp word [edx], ax
jne 0x40e5d0
xor ecx, ecx
jmp 0x40e5e4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e5d5
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x480]
call fcn.004015d0
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x40e61f
xor ecx, ecx
jmp 0x40e63f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x40e630
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e630
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.004015d0
lea eax, [ebp - 0x480]
push eax
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 4
call fcn.00402690
mov edi, eax
lea eax, [ebp - 0x450]
add esp, 4
cmp eax, edi
je 0x40e6bd
cmp dword [ebp - 0x43c], 8
jb 0x40e694
push dword [ebp - 0x450]
call fcn.0042f2d8
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
call fcn.00402530
cmp dword [ebp - 0x484], 8
jb 0x40e6d4
push dword [ebp - 0x498]
call fcn.0042f2d8
add esp, 4
xor eax, eax
cmp dword [ebp - 0x424], 8
mov dword [ebp - 0x484], 7
mov dword [ebp - 0x488], 0
mov word [ebp - 0x498], ax
jb 0x40e708
push dword [ebp - 0x438]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x46c], 8
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
jb 0x40e740
push dword [ebp - 0x480]
call fcn.0042f2d8
add esp, 4
cmp dword [0x46c144], 8
lea edx, [ebp - 0x420]
push edx
mov ecx, 0x46c130
cmovae ecx, dword [0x46c130]
cmp dword [ebp - 0x43c], 8
push 0
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40e822
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.00401360
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x40e7d1
cmp dword [ebp - 0x424], 8
push 5
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x424], 8
jb 0x40e7e8
push dword [ebp - 0x438]
call fcn.0042f2d8
add esp, 4
cmp word [ebp - 0x420], 0
jne 0x40e7f6
xor ecx, ecx
jmp 0x40e80f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e800
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x468]
call fcn.004015d0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [ebp - 0x454]
cmp ecx, 8
jae 0x40e864
mov eax, dword [ebp - 0x458]
inc eax
je 0x40e876
add eax, eax
push eax
lea eax, [ebp - 0x468]
push eax
push esi
call fcn.0042f2f0
mov ecx, dword [ebp - 0x454]
add esp, 0xc
jmp 0x40e876
mov eax, dword [ebp - 0x468]
mov dword [esi], eax
mov dword [ebp - 0x468], 0
mov eax, dword [ebp - 0x458]
mov dword [esi + 0x10], eax
xor eax, eax
cmp dword [ebp - 0x43c], 8
mov dword [esi + 0x14], ecx
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
jb 0x40e8b6
push dword [ebp - 0x450]
call fcn.0042f2d8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret