Function at 0x4010e0
Capabilities:
Accept command line arguments
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0xa80
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0xa7c], eax
push ebx
push edi
xor ebx, ebx
push 0x3e
lea ecx, [esp + 0x22]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x14], ebx
mov word [esp + 0x28], ax
call fcn.00412bb0
push 0x206
lea eax, [esp + 0x686]
xor edx, edx
push ebx
push eax
mov word [esp + 0x68c], dx
call fcn.00412bb0
push 0x206
lea edx, [esp + 0x89a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x8a0], cx
call fcn.00412bb0
push 0x206
lea ecx, [esp + 0x86]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x8c], ax
call fcn.00412bb0
push 0x206
lea eax, [esp + 0x4a2]
xor edx, edx
push ebx
push eax
mov word [esp + 0x4a8], dx
call fcn.00412bb0
push 0x206
lea edx, [esp + 0x2a6]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x2ac], cx
call fcn.00412bb0
add esp, 0x48
push 0x20
lea eax, [esp + 0x20]
push str.KitInst_Bin
push eax
call fcn.00411170
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x4011de
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4011e6
or eax, 0xffffffff
jmp 0x4014bb
push esi
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, ebx
jne 0x40120f
or esi, 0xffffffff
jmp 0x4014a6
mov eax, dword [esp + 0x14]
push ebp
cmp eax, 2
jne 0x401227
mov eax, dword [ecx + 4]
push eax
call fcn.004111d0
add esp, 4
jmp 0x40126c
cmp eax, 1
jne 0x40148a
push 0x104
lea ecx, [esp + 0x680]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea edx, [esp + 0x888]
push edx
push ebx
lea eax, [esp + 0x688]
push ebx
push eax
call fcn.004113f6
lea ecx, [esp + 0x898]
push ecx
call fcn.004111d0
add esp, 0x18
mov ebp, eax
cmp ebp, ebx
je 0x40148a
push ebp
push ebx
push 0x104
push 0x2dcf5c
push str.v_ds_dr_dd_d
xor ecx, ecx
call fcn.004017f0
add esp, 0x14
push 1
push 0x1a
lea edx, [esp + 0x6c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.CoreLog
lea eax, [esp + 0x68]
push eax
call edi
lea eax, [esp + 0x474]
lea edx, [esp + 0x64]
mov ecx, eax
mov esi, 0x104
sub edx, ecx
jmp 0x4012d0
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x4012f0
movzx ecx, word [edx + eax]
cmp cx, bx
je 0x4012f0
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x4012d0
jmp 0x4012f4
cmp esi, ebx
jne 0x4012f7
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x26c]
lea esi, [esp + 0x64]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x401330
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x401330
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401310
jmp 0x401334
cmp edx, ebx
jne 0x401337
sub eax, 2
xor edx, edx
mov word [eax], dx
push str.KitTip.dll
lea eax, [esp + 0x270]
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x64]
push ecx
call esi
test eax, eax
jne 0x401370
push ebx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40148a
push str.KitTip.cab
lea eax, [esp + 0x68]
push eax
call edi
lea ecx, [esp + 0x26c]
push ecx
call esi
or edi, 0xffffffff
test eax, eax
je 0x4013b2
lea esi, [esp + 0x14]
lea ebx, [esp + 0x26c]
mov dword [esp + 0x14], edi
call fcn.004014e0
test eax, eax
je 0x4013b2
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x4013b2
cmp eax, edi
jne 0x401425
lea edx, [esp + 0x64]
push edx
call fcn.00402070
add esp, 4
test eax, eax
je 0x4013ec
lea eax, [esp + 0x474]
push eax
push section..text
push 0
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
test eax, eax
jne 0x4013f5
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], edi
jmp 0x401492
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x14]
lea ebx, [esp + 0x26c]
mov dword [esp + 0x14], edi
call fcn.004014e0
test eax, eax
je 0x4013ec
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x4013ec
cmp eax, edi
je 0x4013ec
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4013ec
push str.RunTip
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4013ec
push ebp
push 0
push 0x105
push 0x2dcf5c
push str.v_ds_dr_dd_d
xor ecx, ecx
call fcn.004017f0
add esp, 0x14
push 0
push 0
push ebp
call esi
push ebp
push 0
push 0x106
push 0x2dcf5c
push str.v_ds_dr_dd_d
xor ecx, ecx
call fcn.004017f0
add esp, 0x14
jmp 0x401492
mov dword [esp + 0x10], 0xffffffff
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
mov ecx, dword [esp + 0xa84]
pop edi
pop ebx
xor ecx, esp
call fcn.00411161
add esp, 0xa80
ret 0x10