Function at 0x401d30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x658
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x654], eax
mov eax, dword [esp + 0x660]
push ebp
mov ebp, dword [esp + 0x660]
push esi
push edi
mov edi, ecx
push 0x104
lea ecx, [esp + 0x45c]
push ecx
push 0
mov esi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401dc7
lea eax, [esp + 0x458]
lea edx, [eax + 2]
jmp 0x401d90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d90
sub eax, edx
sar eax, 1
dec eax
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x458], cx
je 0x401dbb
nop
dec eax
cmp word [esp + eax*2 + 0x458], cx
jne 0x401db0
xor edx, edx
mov word [esp + eax*2 + 0x45a], dx
jmp 0x401dcf
mov dword [esp + 0xc], 0
cmp ebp, 4
jne 0x401e99
push str.KMSCNPDF.exe
lea eax, [esp + 0x45c]
push 0x104
push eax
call fcn.00402d04
push 0x40dd40
lea ecx, [esp + 0x68]
push 0x200
push ecx
call fcn.0040301f
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x74]
push 0x200
push eax
call fcn.00402d04
push 0x40dd44
lea ecx, [esp + 0x80]
push 0x200
push ecx
call fcn.00402d04
push esi
lea edx, [esp + 0x8c]
push 0x200
push edx
call fcn.00402d04
push str..pdf
lea eax, [esp + 0x98]
push 0x200
push eax
call fcn.00402d04
add esp, 0x48
push 0x40dd40
lea ecx, [esp + 0x5c]
push 0x200
push ecx
call fcn.00402d04
add esp, 0xc
test ebx, ebx
je case.default.0x401f61
push 0x40dd4c
lea edx, [esp + 0x5c]
push 0x200
push edx
call fcn.00402d04
add esp, 0xc
jmp case.default.0x401f61
cmp ebp, 5
je 0x402035
cmp ebp, 6
je 0x402035
push str.KMSCNFIL.exe
lea eax, [esp + 0x45c]
push 0x104
push eax
call fcn.00402d04
push 0x40dd40
lea ecx, [esp + 0x68]
push 0x200
push ecx
call fcn.0040301f
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x74]
push 0x200
push eax
call fcn.00402d04
push 0x40dd44
lea ecx, [esp + 0x80]
push 0x200
push ecx
call fcn.00402d04
push edi
lea edx, [esp + 0x8c]
push 0x200
push edx
call fcn.00402d04
push 0x40dd44
lea eax, [esp + 0x98]
push 0x200
push eax
call fcn.00402d04
add esp, 0x48
push esi
lea ecx, [esp + 0x5c]
push 0x200
push ecx
call fcn.00402d04
push 0x40dd40
lea edx, [esp + 0x68]
push 0x200
push edx
call fcn.00402d04
add esp, 0x18
cmp ebp, 3
ja case.default.0x401f61
jmp dword [ebp*4 + 0x4021d4]
push str.__BMP_
lea eax, [esp + 0x5c]
push 0x200
push eax
call fcn.00402d04
add esp, 0xc
jmp case.default.0x401f61
push str.__JPG_
lea ecx, [esp + 0x5c]
push 0x200
push ecx
call fcn.00402d04
movzx edx, byte [esp + 0x67c]
push edx
lea eax, [esp + 0x68]
push eax
push str._s__d
mov edx, eax
call fcn.00402c50
add esp, 0x18
jmp case.default.0x401f61
push str.__PNG_
lea ecx, [esp + 0x5c]
push 0x200
push ecx
call fcn.00402d04
add esp, 0xc
jmp case.default.0x401f61
push str.__TIF_
lea edx, [esp + 0x5c]
push 0x200
push edx
call fcn.00402d04
add esp, 0xc
test ebx, ebx
je 0x402013
movzx eax, byte [esp + 0x670]
push eax
lea ecx, [esp + 0x5c]
push ecx
push str._s__d_N
mov edx, ecx
call fcn.00402c50
add esp, 0xc
jmp case.default.0x401f61
movzx edx, byte [esp + 0x670]
push edx
lea eax, [esp + 0x5c]
push eax
push str._s__d_Y
mov edx, eax
call fcn.00402c50
add esp, 0xc
jmp case.default.0x401f61
push str.KMSCNHCPDF.exe
lea ecx, [esp + 0x45c]
push 0x104
push ecx
call fcn.00402d04
push 0x40dd40
lea edx, [esp + 0x68]
push 0x200
push edx
call fcn.0040301f
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x74]
push 0x200
push ecx
call fcn.00402d04
push 0x40dd74
lea edx, [esp + 0x80]
push 0x200
push edx
call fcn.00402d04
add esp, 0x30
cmp ebp, 5
jne 0x4020a7
push 0x40dd7c
push 0x200
lea eax, [esp + 0x60]
push eax
jmp 0x4020b6
push 0x40dd84
push 0x200
lea ecx, [esp + 0x60]
push ecx
call fcn.00402d04
add esp, 0xc
push 0x40dd40
lea edx, [esp + 0x5c]
push 0x200
push edx
call fcn.00402d04
push esi
lea eax, [esp + 0x68]
push 0x200
push eax
call fcn.00402d04
push str..pdf
lea ecx, [esp + 0x74]
push 0x200
push ecx
call fcn.00402d04
push 0x40dd40
lea edx, [esp + 0x80]
push 0x200
push edx
call fcn.00402d04
add esp, 0x30
xor eax, eax
mov dword [0x411a40], eax
mov dword [0x411a44], eax
mov dword [0x411a48], eax
mov dword [0x411a4c], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4021ba
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], 0
call fcn.00406300
add esp, 0xc
push 0x411a40
xor ecx, ecx
lea edx, [esp + 0x18]
push edx
push ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
lea eax, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x4021b8
mov ecx, dword [0x411a40]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
mov eax, dword [0x411a40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [0x411a44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [0x411a40]
push edx
call edi
mov eax, esi
mov ecx, dword [esp + 0x660]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00402c82
add esp, 0x658
ret