Function at 0x4018b0
Capabilities:
Query environment variable
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41b931
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x42589c]
xor eax, esp
mov dword [esp + 0xa80], eax
push ebx
push esi
push edi
mov eax, dword [0x42589c]
xor eax, esp
push eax
lea eax, [esp + 0xa98]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x38], ebx
call fcn.00401fe0
mov esi, eax
lea edx, [esi + 1]
imul edx, edx, 0x258
push edx
call fcn.004061fc
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401939
cmp dword [0x427bfc], eax
je 0x401932
push str._nCouldnt_create_the_file_vector__n
push dword [0x427bf8]
call fcn.00406803
add esp, 8
xor eax, eax
jmp 0x401dd3
cmp dword [0x427bfc], 0
je 0x401983
push ebx
push str._nGetting_files_to_delete_from_the_file_named__s:_n
push dword [0x427bf8]
call fcn.00406803
add esp, 0xc
cmp dword [0x427bfc], 0
je 0x401983
push esi
push str._nShould_be__d_files_to_remove._n
push dword [0x427bf8]
call fcn.00406803
push str.Opening_the_remove_files_file._n
push dword [0x427bf8]
call fcn.00406803
add esp, 0x14
push 0
push 0x100
push 3
push 0
push 0
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x401db3
push 4
mov dword [esp + 0x1c], 0
call fcn.00406a72
xor ecx, ecx
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], ecx
xor esi, esi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x3c], cl
mov dword [esp + 0xaa0], esi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], esi
mov byte [esp + 0x54], 0
xor ebx, ebx
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov byte [esp + 0xaa0], 2
mov edi, edi
push 0
push edi
push 0x800
lea eax, [esp + 0x298]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x34], eax
test eax, eax
je 0x401a7d
cmp dword [edi], 0
jne 0x401a7d
cmp dword [esp + 0x64], 0
je 0x401a7d
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x60]
call fcn.00402650
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x48]
call fcn.00402c50
cmp dword [esp + 0x68], 0x10
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
mov dword [esp + 0x64], 0
jmp 0x401b3a
push dword [edi]
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x44]
call fcn.00402750
push 1
sub esp, 8
lea ecx, [esp + 0x48]
call fcn.004029f0
cmp eax, 0xffffffff
je 0x401abd
mov ecx, dword [esp + 0x4c]
sub ecx, eax
push ecx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x78]
call fcn.00402650
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jle 0x401ad2
mov eax, dword [esp + 0x4c]
push ebx
sub eax, ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00402880
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x60]
call fcn.00402650
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x48]
call fcn.00402c50
cmp dword [esp + 0x68], 0x10
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push 0xffffffffffffffff
mov dword [esp + 0x68], 0
mov byte [eax], 0
push 0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x60]
call fcn.00402c50
cmp dword [esp + 0x80], 0x10
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], 0
push 0
mov byte [eax], 0
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x54], 0x10
push 0
push eax
lea ebx, [esp + 0x48]
cmovae ebx, dword [esp + 0x48]
push ebx
push 0
push 0xfde9
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea ecx, [edi*2 + 2]
push ecx
call fcn.004061fc
add esp, 4
mov dword [esp + 0x28], eax
push edi
push eax
push dword [esp + 0x24]
push ebx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x28]
xor eax, eax
mov word [ecx + edi*2], ax
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
mov ebx, ecx
mov byte [eax], 0
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401bb4
sub ebx, ecx
sar ebx, 1
mov edi, 0
je 0x401ca0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, ecx
imul ecx, ecx, 0x258
imul eax, eax, 0x12c
add ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
test edx, edx
jne 0x401c15
mov ecx, dword [esp + 0x28]
cmp word [ecx + edi*2], 0x3d
mov ecx, dword [esp + 0x24]
jne 0x401c97
mov edx, 1
mov dword [esp + 0x18], edx
jmp 0x401c97
mov edx, dword [esp + 0x28]
movzx edx, word [edx + edi*2]
cmp edx, 0xa
jne 0x401c78
mov edx, dword [esp + 0x14]
add eax, esi
xor esi, esi
mov word [edx + eax*2], si
cmp dword [0x427bfc], esi
je 0x401c53
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push str.File__d___s_n
push dword [0x427bf8]
call fcn.00406803
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x20]
add ecx, 0x258
add eax, 0x12c
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
xor esi, esi
jmp 0x401c97
cmp esi, 0x12b
jge 0x401c93
mov ecx, dword [esp + 0x14]
add eax, esi
inc esi
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
inc edi
cmp edi, ebx
jb 0x401bf0
cmp dword [esp + 0x34], 0
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x30]
je 0x401a10
cmp dword [edi], 0
ja 0x401a10
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x28]
call fcn.004061c4
mov eax, dword [esp + 0x24]
imul eax, eax, 0x258
add eax, dword [esp + 0x18]
add esp, 4
push 0x12c
push dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [0x426880]
cmp eax, 0xffffffff
jne 0x401d51
xor eax, eax
push 0x206
push eax
mov word [esp + 0x8c], ax
lea eax, [esp + 0x8e]
push eax
call fcn.00408090
add esp, 0xc
lea eax, [esp + 0x84]
push 0x104
push eax
push str.numfiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x401d4c
lea eax, [esp + 0x84]
push eax
call fcn.0040537e
add esp, 4
jmp 0x401d51
mov eax, dword [0x426880]
inc eax
push edi
mov dword [0x426880], eax
call fcn.0040693f
add esp, 4
cmp dword [esp + 0x80], 0x10
jb 0x401d76
push dword [esp + 0x6c]
call fcn.0040693f
add esp, 4
cmp dword [esp + 0x68], 0x10
jb 0x401d89
push dword [esp + 0x54]
call fcn.0040693f
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
jb 0x401dcf
push dword [esp + 0x3c]
call fcn.0040693f
add esp, 4
jmp 0x401dcf
cmp dword [0x427bfc], 0
je 0x401dcf
push str._nFailed_to_open_remove_files_file___n
push dword [0x427bf8]
call fcn.00406803
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.0040517b
mov esp, ebp
pop ebp
ret