Function at 0x40ac04
Capabilities:
Copy file
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff7d0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x830]
mov eax, 0x4c0480
call fcn.0048c270
test esi, esi
je 0x40ac34
cmp dword [ebp + 8], 0
jne 0x40ac45
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40aeb0
cmp byte [esi], 0
jne 0x40ac5b
mov ecx, dword [ebp - 0x2c]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x40aeb0
mov word [ebp - 0x1c], 8
push esi
push edi
mov esi, 0x4b86c4
lea edi, [ebp - 0x430]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov word [ebp - 0x1c], 8
xor ebx, ebx
push esi
push edi
mov esi, 0x4b8ac5
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov word [ebp - 0x1c], 8
inc ebx
push ebx
push str._TEMP_ud_06d.tmp
push 0x400
push edi
call fcn.0048ebac
add esp, 0x10
lea eax, [ebp - 0x430]
push 0x400
push eax
push edi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov word [ebp - 0x1c], 0x14
lea edx, [ebp - 0x430]
lea eax, [ebp - 4]
call fcn.00497ebc
inc dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.0043d63c
xor edx, edx
mov dl, al
lea eax, [ebp - 4]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x10]
call fcn.00498000
pop ecx
test cl, cl
jne 0x40acfd
jmp 0x40ac7f
mov word [ebp - 0x1c], 8
mov word [ebp - 0x1c], 0x20
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, esi
call fcn.00497ebc
inc dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.0043d63c
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00498000
pop ecx
test cl, cl
je 0x40ae93
push 0x4c0167
push esi
call fcn.0048ded0
add esp, 8
mov edi, eax
mov word [ebp - 0x1c], 8
test edi, edi
je 0x40ae74
push 0x4c016a
lea eax, [ebp - 0x430]
push eax
call fcn.0048ded0
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40ae6d
push esi
push edi
mov esi, 0x4b8ec6
lea edi, [ebp - 0x1830]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x40ae46
push str._browser.startup.homepage_
lea eax, [ebp - 0x1830]
push eax
call fcn.0048bf69
add esp, 8
test eax, eax
je 0x40ae23
mov byte [ebp - 0x1830], 0
push 0x1000
push str.user_pref__browser.startup.homepage____
lea edx, [ebp - 0x1830]
push edx
call fcn.00411b40
add esp, 0xc
push 0x1000
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x1830]
push eax
call fcn.00411af8
add esp, 0xc
lea edx, [ebp - 0x1830]
push 0x1000
push 0x4c01d4
push edx
call fcn.00411af8
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
lea eax, [ebp - 0x1830]
push eax
call fcn.0048be70
pop ecx
push eax
push 1
lea edx, [ebp - 0x1830]
push edx
call fcn.0048e2b0
add esp, 0x10
mov bl, 1
jmp 0x40ae46
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x1830]
push edx
call fcn.0048be70
pop ecx
push eax
push 1
lea ecx, [ebp - 0x1830]
push ecx
call fcn.0048e2b0
add esp, 0x10
push edi
push 0x1000
lea eax, [ebp - 0x1830]
push eax
call fcn.0048db58
add esp, 0xc
test eax, eax
jne 0x40ad93
mov edx, dword [ebp - 0x30]
push edx
call fcn.0048da28
pop ecx
push edi
call fcn.0048da28
pop ecx
test bl, bl
je 0x40ae87
push 0
push esi
lea ecx, [ebp - 0x430]
push ecx
call sub.KERNEL32.DLL_CopyFileA
lea eax, [ebp - 0x430]
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov word [ebp - 0x1c], 0
jmp 0x40aea6
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret