Function at 0x401d20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x654
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x650], eax
mov eax, dword [esp + 0x65c]
push ebx
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 ebx, 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401dac
lea eax, [esp + 0x458]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d76
sub eax, edx
sar eax, 1
dec eax
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x458], cx
je 0x401da0
dec eax
cmp word [esp + eax*2 + 0x458], cx
jne 0x401d95
xor edx, edx
mov word [esp + eax*2 + 0x45a], dx
jmp 0x401dae
xor ebx, ebx
cmp ebp, 4
jne 0x401e7b
push str.KMSCNPDF.exe
lea eax, [esp + 0x45c]
push 0x104
push eax
call fcn.00402ca4
push 0x40dd40
lea ecx, [esp + 0x68]
push 0x200
push ecx
call fcn.00402fbf
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x74]
push 0x200
push eax
call fcn.00402ca4
push 0x40dd44
lea ecx, [esp + 0x80]
push 0x200
push ecx
call fcn.00402ca4
push esi
lea edx, [esp + 0x8c]
push 0x200
push edx
call fcn.00402ca4
push str..pdf
lea eax, [esp + 0x98]
push 0x200
push eax
call fcn.00402ca4
add esp, 0x48
push 0x40dd40
lea ecx, [esp + 0x5c]
push 0x200
push ecx
call fcn.00402ca4
add esp, 0xc
cmp dword [esp + 0x674], 0
je case.default.0x402004
push 0x40dd4c
lea edx, [esp + 0x5c]
push 0x200
push edx
call fcn.00402ca4
jmp 0x4020bb
cmp ebp, 5
jne 0x401f4e
push str.KMSCNHCPDF.exe
lea eax, [esp + 0x45c]
push 0x104
push eax
call fcn.00402ca4
push 0x40dd40
lea ecx, [esp + 0x68]
push 0x200
push ecx
call fcn.00402fbf
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x74]
push 0x200
push eax
call fcn.00402ca4
push 0x40dd74
lea ecx, [esp + 0x80]
push 0x200
push ecx
call fcn.00402ca4
push 0x40dd7c
lea edx, [esp + 0x8c]
push 0x200
push edx
call fcn.00402ca4
push 0x40dd40
lea eax, [esp + 0x98]
push 0x200
push eax
call fcn.00402ca4
add esp, 0x48
push esi
lea ecx, [esp + 0x5c]
push 0x200
push ecx
call fcn.00402ca4
push str..pdf
lea edx, [esp + 0x68]
push 0x200
push edx
call fcn.00402ca4
push 0x40dd40
lea eax, [esp + 0x74]
push 0x200
push eax
call fcn.00402ca4
add esp, 0x24
jmp case.default.0x402004
push str.KMSCNFIL.exe
lea ecx, [esp + 0x45c]
push 0x104
push ecx
call fcn.00402ca4
push 0x40dd40
lea edx, [esp + 0x68]
push 0x200
push edx
call fcn.00402fbf
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x74]
push 0x200
push ecx
call fcn.00402ca4
push 0x40dd44
lea edx, [esp + 0x80]
push 0x200
push edx
call fcn.00402ca4
push edi
lea eax, [esp + 0x8c]
push 0x200
push eax
call fcn.00402ca4
push 0x40dd44
lea ecx, [esp + 0x98]
push 0x200
push ecx
call fcn.00402ca4
add esp, 0x48
push esi
lea edx, [esp + 0x5c]
push 0x200
push edx
call fcn.00402ca4
push 0x40dd40
lea eax, [esp + 0x68]
push 0x200
push eax
call fcn.00402ca4
add esp, 0x18
cmp ebp, 3
ja case.default.0x402004
jmp dword [ebp*4 + 0x40217c]
push str.__BMP_
lea ecx, [esp + 0x5c]
push 0x200
push ecx
call fcn.00402ca4
jmp 0x4020bb
push str.__JPG_
lea edx, [esp + 0x5c]
push 0x200
push edx
call fcn.00402ca4
movzx eax, byte [esp + 0x67c]
push eax
lea ecx, [esp + 0x68]
push ecx
push str._s__d
mov edx, ecx
call fcn.00402bf0
add esp, 0x18
jmp case.default.0x402004
push str.__PNG_
lea edx, [esp + 0x5c]
push 0x200
push edx
call fcn.00402ca4
jmp 0x4020bb
push str.__TIF_
lea eax, [esp + 0x5c]
push 0x200
push eax
call fcn.00402ca4
add esp, 0xc
cmp dword [esp + 0x674], 0
lea edx, [esp + 0x58]
je 0x4020a3
movzx ecx, byte [esp + 0x670]
push ecx
push edx
push str._s__d_N
jmp 0x4020b6
movzx eax, byte [esp + 0x670]
push eax
lea ecx, [esp + 0x5c]
push ecx
push str._s__d_Y
call fcn.00402bf0
add esp, 0xc
xor eax, eax
mov dword [0x411a40], eax
mov dword [0x411a44], eax
mov dword [0x411a48], eax
mov dword [0x411a4c], eax
test ebx, ebx
je 0x402160
push 0x40
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], eax
call fcn.004062a0
add esp, 0xc
push 0x411a40
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x40215c
mov eax, dword [0x411a40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x411a40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [0x411a44]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [0x411a40]
push ecx
call edi
mov eax, esi
jmp 0x402162
mov eax, ebx
mov ecx, dword [esp + 0x660]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402c22
add esp, 0x654
ret