Function at 0x4014c0
Capabilities:
Create directory
Create process on windows
Get common file path
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e3cb
push eax
mov eax, 0x1560
mov dword fs:[0], esp
call fcn.0040cc60
push ebx
lea eax, [esp + 0x35c]
push ebp
mov ebx, ecx
push eax
mov dword [esp + 0x18], ebx
call fcn.00402d30
lea ecx, [esp + 0x364]
push 0x43d10c
push ecx
call fcn.0040cc47
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x401823
push esi
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x570]
push 2
push 0xfffffbc6
push ebp
rep stosd dword es:[edi], eax
call fcn.0040cb5d
push ebp
push 0x19
lea edx, [esp + 0x584]
push 1
push edx
call fcn.0040ca46
add esp, 0x1c
cmp eax, 0x19
jne 0x4015c7
lea esi, [esp + 0x570]
mov eax, str.LeaderCab
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40157c
test cl, cl
je 0x401578
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40157c
add eax, 2
add esi, 2
test cl, cl
jne 0x401558
xor eax, eax
jmp 0x401581
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015c7
push ebp
push 0x400
lea eax, [esp + 0x578]
push 1
push eax
call fcn.0040ca46
mov eax, dword [ebx + 0xc0]
lea esi, [ebx + 0xc0]
push 0x44164c
push eax
call fcn.0040c997
add esp, 0x18
test eax, eax
jne 0x4015c7
lea ecx, [esp + 0x570]
push ecx
mov ecx, esi
call fcn.004239d9
push 2
push 0xffffffffffffffdf
push ebp
call fcn.0040cb5d
push ebp
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x580]
push 0x19
lea edx, [esp + 0x584]
push 1
push edx
rep stosd dword es:[edi], eax
call fcn.0040ca46
add esp, 0x1c
cmp eax, 0x19
jne 0x401818
lea esi, [esp + 0x570]
mov eax, str.LeaderCab
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401633
test cl, cl
je 0x40162f
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401633
add eax, 2
add esi, 2
test cl, cl
jne 0x40160b
xor eax, eax
jmp 0x401638
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
jne 0x401818
push ebp
push 1
lea eax, [esp + 0x20]
push 4
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call fcn.0040ca46
push ebp
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
call fcn.0040ca46
mov edx, dword [esp + 0x38]
push esi
add edx, 0x19
push edx
push ebp
call fcn.0040cb5d
add esp, 0x2c
lea eax, [esp + 0x5c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x160]
lea edx, [esp + 0x5c]
push ecx
push esi
push 0x43d0ec
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x160]
push 0x43d0e8
push eax
call fcn.0040cc47
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401818
mov al, byte [ebp + 0xc]
xor edi, edi
test al, 0x10
jne 0x401719
cmp edi, dword [esp + 0x14]
jae 0x401719
push ebp
push 0x1000
lea ecx, [esp + 0x578]
push 1
push ecx
call fcn.0040ca46
mov ecx, dword [esp + 0x24]
lea edx, [edi + eax]
add esp, 0x10
cmp edx, ecx
jbe 0x4016fa
sub ecx, edi
mov esi, ecx
jmp 0x4016fc
mov esi, eax
push ebx
push esi
lea eax, [esp + 0x578]
push 1
push eax
call fcn.0040c85e
mov al, byte [ebp + 0xc]
add esp, 0x10
add edi, esi
test al, 0x10
je 0x4016cb
push ebx
call fcn.0040c7e1
mov ecx, dword [0x43d4c8]
mov dword [esp + 0x14], ecx
mov edi, str.ldPatch
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x157c], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x60]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402d50
add esp, 8
xor esi, esi
lea ecx, [esp + 0x5c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x164]
push eax
push ecx
call fcn.00404460
add esp, 0xc
test eax, eax
je 0x401804
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
mov eax, dword [eax + 0xc0]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x3c
push edx
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1578], 0xffffffff
call fcn.00423850
push ebp
call fcn.0040c7e1
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x1568]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x156c
ret