Function at 0x40d220
Capabilities:
Create process on windows
Delete directory

Disassembly:
sub esp, 0xbcc
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0xbc4], eax
push ebx
push ebp
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [esp + 0x47c]
push ebx
push eax
call fcn.00414e60
add esp, 0xc
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x420
lea ecx, [esp + 0x5c]
push ebx
push ecx
mov byte [0x436ba8], bl
mov word [0x4372a0], bx
mov dword [0x43579c], ebx
call fcn.00414e60
add esp, 0xc
mov dword [esp + 0x470], ebx
call fcn.00403c20
cmp dword [0x4352e8], ebx
mov dword [esp + 0x14], eax
jne 0x40d76d
call fcn.0040df10
test eax, eax
je 0x40d6ac
mov dword [0x4357b0], ebx
call fcn.00409630
cmp dword [0x4357b0], 1
mov esi, eax
jne 0x40d2ca
call fcn.0040cdc0
cmp dword [0x4352e8], ebx
jne 0x40d6bb
test byte [0x436ba8], 4
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
jne 0x40d34e
mov eax, dword [0x4352d8]
push 0x40
lea edx, [esp + 0x4bc]
push edx
push 3
push eax
call ebp
mov edx, dword [0x4352d8]
push 0x40
lea ecx, [esp + 0x53c]
push ecx
push 2
push edx
call ebp
cmp dword [0x4357c0], ebx
jne 0x40d346
call fcn.00403cb0
push eax
push esi
lea eax, [esp + 0x4c0]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea edi, [esp + 0x544]
mov ebx, eax
call fcn.00404210
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x18], eax
xor edi, edi
jmp 0x40d352
mov dword [esp + 0x18], ebx
xor edi, edi
jmp 0x40d352
mov edi, dword [esp + 0x14]
call fcn.004067c0
test eax, eax
jne 0x40d36d
mov ebx, dword [0x4357e4]
call fcn.00406770
xor ebx, ebx
jmp 0x40d6ac
test byte [0x436ba8], 4
jne 0x40d396
mov ecx, 0x434ec0
call fcn.004071d0
test eax, eax
jne 0x40d3b6
mov ebx, dword [0x4357e4]
call fcn.00406770
xor ebx, ebx
jmp 0x40d6ac
mov ecx, 0x436bc0
call fcn.004071d0
test eax, eax
jne 0x40d3b6
mov ebx, dword [0x4357e4]
call fcn.00406770
xor ebx, ebx
jmp 0x40d6bb
push 0x208
lea ecx, [esp + 0x7c4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [0x4357e4]
xor esi, esi
cmp dword [ecx], ebx
je 0x40d413
xor eax, eax
jmp 0x40d3e0
mov edx, dword [eax + ecx]
add edx, 0x418
push edx
lea eax, [esp + 0x7c4]
push eax
call fcn.00413d8a
add esp, 8
test eax, eax
je 0x40d44e
mov ecx, dword [0x4357e4]
add esi, 1
lea eax, [esi*4]
cmp dword [eax + ecx], ebx
jne 0x40d3e0
test byte [0x436ba8], 4
jne 0x40d4b2
mov edx, dword [esp + 0x18]
push edi
call fcn.004075c0
add esp, 4
test eax, eax
jne 0x40d4a6
mov ebx, dword [0x4357e4]
call fcn.00407480
mov ebx, dword [0x4357e4]
call fcn.00406770
xor ebx, ebx
jmp 0x40d6ac
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 0xffffef2f
mov word [0x435370], bx
mov dword [0x4352ec], ebx
mov word [0x435576], bx
call fcn.0040ead2
mov word [0x43577e], bx
mov ebx, dword [0x4357e4]
add esp, 0xc
mov dword [0x435780], 0x139a
call fcn.00406770
xor ebx, ebx
jmp 0x40d6ac
mov ecx, dword [0x4357e4]
push ebx
jmp 0x40d574
call fcn.0040b2e0
test eax, eax
jne 0x40d6bb
cmp dword [0x4357c0], ebx
jne 0x40d540
mov edx, dword [0x4352d8]
push 0x20
lea ecx, [esp + 0x47c]
push ecx
push 0x447
push edx
call ebp
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call fcn.0040b3f0
add esp, 4
test eax, eax
je 0x40d6bb
cmp dword [0x4352e8], ebx
jne 0x40d6bb
call fcn.0040aff0
cmp eax, 1
jne 0x40d6bb
lea ecx, [esp + 0x58]
push ecx
call fcn.0040c7e0
add esp, 4
cmp eax, 1
lea ecx, [esp + 0x58]
je 0x40d572
call fcn.0040a3b0
lea edi, [esp + 0x58]
call fcn.0040a4e0
jmp 0x40d6bb
mov ecx, dword [0x4357e4]
push ebx
xor edx, edx
call fcn.004075c0
add esp, 4
test eax, eax
jne 0x40d4fd
mov ebx, dword [0x4357e4]
call fcn.00407480
mov ebx, dword [0x4357e4]
call fcn.00406770
xor ebx, ebx
jmp 0x40d6bb
push 1
lea edx, [esp + 0x7c4]
call fcn.0040d9d0
add esp, 4
cmp dword [0x4357c0], ebx
je 0x40d6ac
test byte [0x436ba8], 4
jne 0x40d64a
mov ecx, dword [0x4357e4]
cmp ecx, ebx
je 0x40d6ac
xor esi, esi
cmp dword [ecx], ebx
je 0x40d6ac
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor eax, eax
mov ebp, 0x140
mov eax, dword [eax + ecx]
add eax, 0x418
lea edx, [esp + 0x5b8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bx
jne 0x40d5d0
push 0x3c
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.00414e60
add esp, 0xc
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x5b8]
push ecx
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 1
call edi
cmp dword [0x43721c], ebx
je 0x40d62f
lea ecx, [esp + 0x5b8]
call fcn.00403060
mov ecx, dword [0x4357e4]
add esi, 1
lea eax, [esi*4]
cmp dword [eax + ecx], ebx
jne 0x40d5c1
jmp 0x40d6ac
mov esi, dword [esp + 0x470]
cmp esi, ebx
je 0x40d6ac
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebp, 0x140
push 0x3c
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.00414e60
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], 1
call edi
cmp dword [0x43721c], ebx
je 0x40d6a2
mov ecx, esi
call fcn.00403060
mov esi, dword [esi + 0x820]
cmp esi, ebx
jne 0x40d660
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d6bb
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 8]
cmp edi, ebx
mov ebp, ecx
jle 0x40d6e3
mov esi, dword [ebp]
jmp 0x40d6d0
mov edx, dword [esi]
push edx
call fcn.0040f5d8
add esp, 4
add esi, 4
sub edi, 1
jne 0x40d6d0
mov eax, dword [ebp]
push eax
call fcn.0040f5d8
add esp, 4
push ebp
call fcn.0040f5d8
mov eax, 0x437540
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d700
sub eax, edx
sar eax, 1
je 0x40d746
mov eax, 0x436bc0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d720
sub eax, edx
sar eax, 1
je 0x40d73b
push 0x436bc0
call fcn.00403440
push 0x437540
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x470]
cmp eax, ebx
je 0x40d76d
mov esi, dword [eax + 0x820]
push eax
call fcn.0040f5d8
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x40d751
mov dword [esp + 0x470], ebx
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0xbd4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040eac3
add esp, 0xbcc
ret