Function at 0x404dc0
Capabilities:
Delete file
Query environment variable

Disassembly:
sub esp, 0x814
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0x810], eax
push ebp
mov ebp, dword [esp + 0x81c]
push esi
push edi
push 0x2000
mov dword [esp + 0x14], ebp
xor edi, edi
call fcn.0040a2b5
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x404e11
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.00409279
add esp, 0x814
ret
cmp byte [esp + 0x828], 0
push ebx
lea ebx, [esi + 0x1000]
mov dword [esp + 0x10], edi
je 0x404edd
push 0x400
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebp
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x20]
push 0x41b7a4
push ecx
call fcn.0040a234
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x404e86
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0040a163
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x820]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00409279
add esp, 0x814
ret
push ebp
xor eax, eax
push 0x800
push esi
mov word [esi], ax
call fcn.0040a0a2
add esp, 0xc
test eax, eax
je 0x404f3a
cmp word [esi], 0
je 0x404f3a
inc dword [esp + 0x10]
push 0x800
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push 0x800
push esi
lea edi, [edi + eax*2 + 2]
call fcn.0040a0a2
add esp, 0xc
test eax, eax
jne 0x404ea2
jmp 0x404f3a
push 0x421800
push ebp
call fcn.0040a08b
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x404e62
push ebp
push 0x800
push esi
call fcn.00409e7f
add esp, 0xc
test eax, eax
je 0x404f3a
cmp byte [esi], 0
je 0x404f3a
inc dword [esp + 0x10]
push 0x800
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push 0x800
push esi
add edi, eax
call fcn.00409e7f
add esp, 0xc
test eax, eax
jne 0x404f08
push ebp
call fcn.00409e03
add esp, 4
test edi, edi
je 0x404e6b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404e6b
lea ecx, [eax + eax*4]
lea edi, [edi + ecx*2]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x425c00], eax
test eax, eax
je 0x404e6b
push edi
push 0xff
push eax
call fcn.0040a320
mov eax, dword [esp + 0x1c]
mov ebp, dword [0x425c00]
add eax, eax
add eax, eax
mov dword [0x425c08], ebp
add ebp, eax
mov dword [0x425c0c], ebp
add esp, 0xc
add ebp, eax
xor edi, edi
cmp byte [esp + 0x82c], 0
je 0x404fc4
lea edx, [esp + 0x20]
push 0x41b7a4
push edx
call fcn.0040a234
jmp 0x404fd3
mov eax, dword [esp + 0x14]
push 0x421800
push eax
call fcn.0040a08b
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x404e6b
cmp byte [esp + 0x82c], 0
mov ecx, dword [esp + 0x14]
push ecx
push 0x800
push esi
je 0x405083
call fcn.0040a0a2
add esp, 0xc
test eax, eax
je 0x4050fd
push 0xa
push esi
call fcn.0040936c
add esp, 8
test eax, eax
je 0x40501f
xor edx, edx
mov word [eax], dx
push 0x2c
push esi
call fcn.00409346
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x404fe2
push esi
call fcn.00409d76
mov edx, dword [esp + 0x20]
mov ecx, dword [0x425c0c]
add esp, 4
push 0x800
push ebx
add edx, 2
push edx
mov dword [ecx + edi*4], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x425c08]
mov dword [eax + edi*4], ebp
inc edi
cmp edi, dword [esp + 0x10]
jge 0x4050fd
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [ebp + eax*2 + 2]
jmp 0x404fe2
call fcn.00409e7f
add esp, 0xc
test eax, eax
je 0x4050fd
push 0xa
push esi
call fcn.00409290
add esp, 8
test eax, eax
je 0x4050a1
mov byte [eax], 0
lea edx, [esp + 0x18]
push edx
push 0x41b7a0
push esi
mov dword [esp + 0x24], 0
call fcn.00409010
mov ecx, dword [esp + 0x24]
mov edx, dword [0x425c0c]
add esp, 0xc
push 0x800
push ebx
push eax
mov dword [edx + edi*4], ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x425c08]
mov dword [eax + edi*4], ebp
inc edi
cmp edi, dword [esp + 0x10]
jge 0x4050fd
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
jmp 0x404fe2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00409e03
push esi
call fcn.0040a163
add esp, 8
mov eax, edi
jmp 0x404e6d