Function at 0x401410
Capabilities:
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x16c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 0x405294
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push 0x405278
push eax
mov dword [0x405020], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push 4
push edx
push 0xb
mov dword [0x405034], eax
call eax
xor ebx, ebx
cmp eax, 0xc0000004
jne 0x40147c
mov eax, dword [esp + 0x2c]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
push eax
push 0xb
mov dword [esp + 0x20], eax
call dword [0x405034]
cmp eax, ebx
jl 0x40181d
mov eax, dword [esp + 0x10]
push 1
push ebx
mov edx, dword [eax + 0xc]
mov dword [0x405038], edx
mov ecx, dword [eax + 0x10]
xor edx, edx
mov dword [0x40503c], ecx
mov dx, word [eax + 0x1e]
lea eax, [edx + eax + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov ebp, eax
cmp ebp, ebx
je 0x40181d
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov edx, dword [0x40503c]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [0x40503c]
mov dword [0x40502c], eax
mov edi, eax
mov eax, ecx
mov esi, ebp
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x40525c
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40502c]
xor edi, edi
mov esi, dword [eax + 0x3c]
add esi, eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x40181d
sub eax, ebp
push eax
push ebp
call fcn.00401060
mov ecx, dword [0x40502c]
mov dword [0x405024], eax
add esp, 8
lea edx, [eax + ecx]
mov ecx, dword [eax + ecx]
sub ecx, dword [esi + 0x34]
cmp ecx, dword [esi + 0x50]
jae 0x401564
jmp 0x40153c
mov eax, dword [0x405024]
mov ebx, dword [0x405038]
lea eax, [eax + edi*4]
add ecx, ebx
mov ebx, dword [0x40502c]
add edx, 4
inc edi
mov dword [eax + ebx], ecx
mov ebx, dword [esi + 0x34]
mov ecx, dword [edx]
mov eax, dword [esi + 0x50]
sub ecx, ebx
cmp ecx, eax
jb 0x401537
xor ebx, ebx
cmp edi, ebx
mov dword [0x405028], edi
je 0x40181d
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0x405244
call fcn.00401200
push 0x40522c
mov edi, eax
call fcn.00401200
push 0x405218
mov ebp, eax
call fcn.00401200
mov esi, eax
push esi
push edi
call fcn.00401380
push esi
mov dword [esp + 0x4c], eax
call fcn.004013d0
push ebp
mov dword [esp + 0x4c], eax
call fcn.00401320
mov ebp, eax
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x95]
mov byte [esp + 0x94], bl
add esp, 0x1c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x78]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, 0x40520c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402190
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x7c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405204
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x7c]
mov ecx, edx
push eax
and ecx, 3
push 0x69
push 0x405200
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00402000
lea ecx, [esp + 0x8c]
push ecx
call fcn.004054a0
add esp, 0x18
cmp eax, 0xffffffff
mov dword [0x405030], eax
je 0x40181d
push 0x405120
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call fcn.00402340
push 0x405134
mov dword [esp + 0x30], eax
call fcn.00402340
push 0x4050c4
mov dword [esp + 0x30], eax
call fcn.00402340
push 0x4050f8
mov dword [esp + 0x2c], eax
call fcn.00402340
push 0x40510c
mov dword [esp + 0x34], eax
call fcn.00402340
mov cx, word [0x4051fc]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
add esp, 0x14
mov dword [esp + 0x3c], eax
mov word [esp + 0x44], cx
mov dword [esp + 0x40], edx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x46]
lea edx, [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push ebx
rep stosd dword es:[edi], eax
push edx
mov edx, dword [0x405030]
lea eax, [esp + 0x4c]
push 0x32
push eax
lea ecx, [esp + 0x48]
push 0xc
push ecx
push 0x222400
push edx
mov dword [esp + 0x58], ebp
call esi
cmp dword [esp + 0x28], ebx
je 0x401778
mov edx, dword [0x405030]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebx
lea ecx, [esp + 0x38]
push 4
push ecx
push 0x222414
push edx
call esi
cmp dword [esp + 0x24], ebx
je 0x40179b
mov edx, dword [0x405030]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebx
lea ecx, [esp + 0x34]
push 4
push ecx
push 0x222414
push edx
call esi
cmp dword [esp + 0x1c], ebx
je 0x4017be
mov edx, dword [0x405030]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebx
lea ecx, [esp + 0x2c]
push 4
push ecx
push 0x222414
push edx
call esi
cmp dword [esp + 0x20], ebx
je 0x4017e1
mov edx, dword [0x405030]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebx
lea ecx, [esp + 0x30]
push 4
push ecx
push 0x222414
push edx
call esi
cmp dword [esp + 0x18], ebx
je 0x401804
mov edx, dword [0x405030]
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebx
lea ecx, [esp + 0x28]
push 4
push ecx
push 0x222414
push edx
call esi
mov eax, dword [0x405030]
push eax
call fcn.004055f0
add esp, 4
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x16c
ret