Function at 0x40c7b0
Capabilities:
Create directory
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x650
add eax, 0xfffffcf7
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
push 9
pop ebx
cmp eax, ebx
ja case.default.0x40c7d2
jmp dword [eax*4 + 0x40cabc]
cmp dword [esi + 8], 1
push 0x214
jne 0x40c7f5
call fcn.0049909d
pop ecx
test eax, eax
je 0x40c80c
mov ecx, dword [esi]
push dword [ecx + 8]
jmp 0x40c801
call fcn.0049909d
pop ecx
test eax, eax
je 0x40c80c
push 0
mov ecx, eax
call fcn.00477807
mov edi, eax
jmp 0x40c80e
xor edi, edi
mov esi, dword [ebp + 0x20]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov word [esi], bx
mov dword [esi + 8], edi
xor eax, eax
jmp 0x40cab3
mov eax, dword [esi]
mov ebx, dword [eax + 8]
test ebx, ebx
je case.0x40c7d2.777
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x208
mov esi, eax
xor edi, edi
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.0049a3b0
lea eax, [ebp - 0x248]
push eax
call fcn.0040c753
push 0x208
lea eax, [ebp - 0x450]
push edi
push eax
call fcn.0049a3b0
push 0x200
lea eax, [ebp - 0x650]
push edi
push eax
call fcn.0049a3b0
add esp, 0x28
lea eax, [ebp - 0x248]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push edi
push ebx
call fcn.00404fb9
mov esi, eax
lea eax, [ebp - 0x650]
push 0x100
push eax
push 0x1a3
call fcn.00441947
push eax
lea eax, [ebp - 0x450]
push eax
push esi
push dword [0x531f70]
call fcn.004314f7
push esi
call fcn.004a1b5f
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x450]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x1711
call fcn.0048d08a
push edi
push 0x709
call fcn.0048d08a
add esp, 0x3c
jmp case.0x40c7d2.777
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 8
pop ebx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c731
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
jmp 0x40c808
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 8
pop ebx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c54f
jmp 0x40c923
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 8
pop ebx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c54f
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040c731
xor eax, eax
lea edi, [ebp - 0x40]
mov ecx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4cc43c
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.0040adba
add esp, 0x24
lea eax, [ebp - 0x40]
jmp 0x40c928
mov esi, dword [ebp + 0x20]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0xb
pop eax
mov word [esi], ax
or eax, 0xffffffff
mov word [esi + 8], ax
jmp case.0x40c7d2.777
mov ecx, dword [esi + 8]
xor edi, edi
cmp ecx, 1
je 0x40c9e0
cmp ecx, 2
je 0x40c9d3
mov eax, 0x8002000e
jmp 0x40cab3
mov edx, dword [esi]
mov eax, ecx
add eax, eax
movsx eax, word [edx + eax*8 - 0x18]
jmp 0x40c9e4
mov edx, dword [esi]
mov eax, edi
add ecx, ecx
cmp eax, 1
jne 0x40ca07
push edi
push 0x4cb7a8
push edi
push dword [edx + ecx*8 - 8]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp case.0x40c7d2.777
push dword [edx + ecx*8 - 8]
call fcn.004a1860
pop ecx
mov esi, eax
push esi
push 0x40cb00
push 0xbd8
push esi
push 0x400
push dword [0x531f70]
call dword [sym.imp.USER32.dll_SendMessageCallbackW]
test eax, eax
jne case.0x40c7d2.777
push esi
push dword [0x531f84]
push 0x40cae4
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
jne case.0x40c7d2.777
push esi
call fcn.004a1b5f
pop ecx
jmp case.0x40c7d2.777
push 0
push 0x4cc448
call fcn.00405018
pop ecx
pop ecx
mov esi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, dword [ebp + 0x20]
mov ebx, eax
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 8
pop eax
mov word [edi], ax
mov dword [edi + 8], ebx
jmp 0x40ca52
push 0x4cbf1c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, dword [ebp + 0x20]
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 8
pop eax
mov word [esi], ax
jmp 0x40c81b
mov eax, 0x80020003
pop edi
pop esi
pop ebx
leave
ret 0x24