Function at 0x40ac4c
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, 0x4c6c88
call fcn.00490d08
test esi, esi
je 0x40ac7c
cmp dword [ebp + 8], 0
jne 0x40ac8d
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40aef8
cmp byte [esi], 0
jne 0x40aca3
mov ecx, dword [ebp - 0x2c]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x40aef8
mov word [ebp - 0x1c], 8
push esi
push edi
mov esi, 0x4bc6c8
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, 0x4bcac9
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.00493644
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.0049c954
inc dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.004420d4
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.0049ca98
pop ecx
test cl, cl
jne 0x40ad45
jmp 0x40acc7
mov word [ebp - 0x1c], 8
mov word [ebp - 0x1c], 0x20
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, esi
call fcn.0049c954
inc dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.004420d4
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0049ca98
pop ecx
test cl, cl
je 0x40aedb
push 0x4c6970
push esi
call fcn.00492968
add esp, 8
mov edi, eax
mov word [ebp - 0x1c], 8
test edi, edi
je 0x40aebc
push 0x4c6973
lea eax, [ebp - 0x430]
push eax
call fcn.00492968
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40aeb5
push esi
push edi
mov esi, 0x4bceca
lea edi, [ebp - 0x1830]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x40ae8e
push str._browser.startup.homepage_
lea eax, [ebp - 0x1830]
push eax
call fcn.00490a01
add esp, 8
test eax, eax
je 0x40ae6b
mov byte [ebp - 0x1830], 0
push 0x1000
push str.user_pref__browser.startup.homepage____
lea edx, [ebp - 0x1830]
push edx
call fcn.004119e8
add esp, 0xc
push 0x1000
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x1830]
push eax
call fcn.004119a0
add esp, 0xc
lea edx, [ebp - 0x1830]
push 0x1000
push 0x4c69dd
push edx
call fcn.004119a0
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
lea eax, [ebp - 0x1830]
push eax
call fcn.00490908
pop ecx
push eax
push 1
lea edx, [ebp - 0x1830]
push edx
call fcn.00492d48
add esp, 0x10
mov bl, 1
jmp 0x40ae8e
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x1830]
push edx
call fcn.00490908
pop ecx
push eax
push 1
lea ecx, [ebp - 0x1830]
push ecx
call fcn.00492d48
add esp, 0x10
push edi
push 0x1000
lea eax, [ebp - 0x1830]
push eax
call fcn.004925f0
add esp, 0xc
test eax, eax
jne 0x40addb
mov edx, dword [ebp - 0x30]
push edx
call fcn.004924c0
pop ecx
push edi
call fcn.004924c0
pop ecx
test bl, bl
je 0x40aecf
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 0x40aeee
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret