Function at 0x3005afd3
Capabilities:
Create process on windows
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3009b2ac
mov eax, dword fs:[0]
push eax
sub esp, 0x5a8
mov eax, dword [0x3002dd90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x46
push 0xd0001
call dword [sym.imp.MSO.dll_Ordinal_1550]
test eax, eax
je 0x3005b373
mov ebx, dword [ebp + 8]
cmp ebx, 1
jne 0x3005b044
lea eax, [ebp - 0x55c]
push eax
push 0x3003fce0
call dword [sym.imp.MSO.dll_Ordinal_1605]
test eax, eax
je 0x3005b373
cmp dword [ebp - 0x55c], ebx
jne 0x3005b373
push 0x19
push 0x104
lea ecx, [ebp - 0x218]
push ecx
xor edi, edi
push edi
push 0x409
push 0xd000f
call dword [sym.imp.MSO.dll_Ordinal_6281]
test eax, eax
je 0x3005b373
push 0x40
xor eax, eax
lea edx, [ebp - 0x5b0]
push edi
push edx
mov dword [ebp - 0x56c], edi
mov dword [ebp - 0x568], eax
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x560], eax
mov dword [ebp - 0x5b4], 0x44
call fcn.30001c9c
lea eax, [ebx - 1]
add esp, 0xc
cmp eax, 5
ja case.default.0x3005b0ab
jmp dword [eax*4 + 0x3005b3a0]
mov eax, 0x3005b41c
jmp 0x3005b0e1
mov eax, 0x3005b408
jmp 0x3005b0e1
mov eax, 0x3005b3f0
jmp 0x3005b0e1
mov eax, 0x3005b3c8
jmp 0x3005b0e1
mov eax, 0x30040650
jmp 0x3005b0e1
mov eax, 0x30040628
jmp 0x3005b0e1
mov eax, 0x3001db80
lea ecx, [ebp - 0x56c]
push ecx
lea edx, [ebp - 0x5b4]
push edx
push edi
push edi
push 0x4000000
push edi
push edi
push edi
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
je 0x3005b123
mov ecx, dword [ebp - 0x568]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x56c]
push edx
call esi
cmp ebx, 3
jne 0x3005b373
mov eax, dword [sym.imp.ONMain.DLL_class_MsoCF::CFastBufferAllocator_MsoCF::g_FastBufferAllocator]
mov ebx, 0x102
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], ecx
mov dword [ebp - 0x324], ebx
mov word [ebp - 0x31c], di
cmp ebx, 0x208
mov dword [ebp - 4], 1
jge 0x3005b17e
mov edx, dword [eax]
mov edx, dword [edx]
push edi
push 0x208
lea ecx, [ebp - 0x32c]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x328]
push eax
push edi
push edi
push 7
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jl 0x3005b35d
mov dword [ebp - 0x558], edi
lea ecx, [ebp - 0x558]
push ecx
push 0x3005b428
push 1
push edi
push 0x3005b438
mov byte [ebp - 4], 2
call fcn.30019490
cmp eax, edi
mov eax, dword [ebp - 0x558]
jl 0x3005b34d
xor esi, esi
cmp eax, edi
mov dword [ebp - 0x55c], esi
je 0x3005b1f4
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x55c]
push ecx
push 0x3005b3b8
push eax
call edx
mov eax, dword [ebp - 0x558]
mov esi, dword [ebp - 0x55c]
mov dword [ebp - 0x570], esi
cmp esi, edi
mov byte [ebp - 4], 3
je 0x3005b337
cmp eax, edi
je 0x3005b337
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov ecx, dword [sym.imp.ONMain.DLL_class_MsoCF::CFastBufferAllocator_MsoCF::g_FastBufferAllocator]
lea edx, [ebp - 0x430]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x43c], edx
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x430], di
mov eax, dword [0x300b033c]
mov eax, dword [eax + 0x64]
push edi
mov edi, dword [sym.imp.ONMain.DLL_void___stdcall_MsoCF::Strings::SetWzFromResource_class_MsoCF::CWzInBuffer_T_class_MsoCF::String_struct_MsoCF::WzTraits___class_MsoCF::CBuffer_wchar_t_____struct_HINSTANCE_____unsigned_int__int__]
push 0x4000d0
push eax
lea ecx, [ebp - 0x440]
push ecx
mov byte [ebp - 4], 5
call edi
mov eax, dword [ebp - 0x558]
mov ecx, dword [ebp - 0x43c]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x558]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x3005b41c
push eax
call edx
mov eax, dword [sym.imp.ONMain.DLL_class_MsoCF::CFastBufferAllocator_MsoCF::g_FastBufferAllocator]
lea ecx, [ebp - 0x544]
mov dword [ebp - 0x548], ebx
mov dword [ebp - 0x554], eax
mov dword [ebp - 0x550], ecx
mov dword [ebp - 0x54c], ebx
mov word [ebp - 0x544], 0
mov edx, dword [0x300b033c]
mov eax, dword [edx + 0x64]
push 0
push 0x4000d1
push eax
lea eax, [ebp - 0x554]
push eax
mov byte [ebp - 4], 7
call edi
mov edx, dword [ebp - 0x550]
push 0
lea ecx, [ebp - 0x32c]
push ecx
push edx
call dword [sym.imp.ONMain.DLL_void___stdcall_MsoCF::Strings::AppendPathToPath_wchar_t_const___class_MsoCF::CWzInBuffer_T_class_MsoCF::String_struct_MsoCF::WzTraits___class_MsoCF::CBuffer_wchar_t_____int__]
mov ecx, dword [ebp - 0x328]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push 1
push ecx
push esi
call edx
mov eax, dword [ebp - 0x550]
lea ecx, [ebp - 0x544]
cmp eax, ecx
je 0x3005b319
push eax
call sub.ONMain.DLL_void___stdcall_MsoCF::Memory::Allocator::Free_void__
mov eax, dword [ebp - 0x43c]
lea edx, [ebp - 0x430]
cmp eax, edx
je 0x3005b32f
push eax
call sub.ONMain.DLL_void___stdcall_MsoCF::Memory::Allocator::Free_void__
mov eax, dword [ebp - 0x558]
xor edi, edi
cmp esi, edi
mov byte [ebp - 4], 2
je 0x3005b34d
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [ebp - 0x558]
cmp eax, edi
mov byte [ebp - 4], 1
je 0x3005b35d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x328]
lea ecx, [ebp - 0x31c]
cmp eax, ecx
je 0x3005b373
push eax
call sub.ONMain.DLL_void___stdcall_MsoCF::Memory::Allocator::Free_void__
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.30001d24
mov esp, ebp
pop ebp
ret 4