Function at 0x4d2610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3b0c
call fcn.005c4400
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov word [esp + 0x2d8], si
je 0x4d2c4f
cmp dword [ebx + 0x14], esi
je 0x4d2c4f
mov eax, dword [ebx + 8]
cmp eax, esi
jne 0x4d2655
cmp dword [ebx + 0x10], esi
je 0x4d2c4f
cmp eax, esi
je 0x4d2667
push eax
lea eax, [esp + 0x2dc]
push eax
call dword [0x5d2614]
add esp, 8
mov eax, dword [ebx + 0x1c]
cmp eax, esi
je 0x4d2671
mov word [eax], si
cmp dword [ebx], esi
jne 0x4d2677
mov dword [ebx], esi
cmp dword [ebx + 4], esi
jne 0x4d2683
mov dword [ebx + 4], 3
mov edx, dword [ebx + 0x10]
xor eax, eax
cmp edx, esi
mov ecx, 0x17
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5fa570]
mov eax, dword [0x5fa574]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x5fa578]
mov dword [esp + 0x38], eax
mov eax, dword [0x5fa57c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
jne 0x4d273f
cmp dword [ebx + 0x14], esi
je 0x4d27d8
cmp word [esp + 0x2d8], si
je 0x4d2938
push 0x104
lea ecx, [esp + 0x2dc]
push ecx
lea edx, [esp + 0xd8]
push edx
mov word [esp + 0xdc], si
call dword [0x5d2618]
lea eax, [esp + 0xdc]
add esp, 0xc
test eax, eax
mov word [esp + 0x2d6], si
je 0x4d2725
mov ecx, eax
push ecx
call dword [0x5d2620]
add esp, 4
mov eax, dword [ebx + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xd4]
push ecx
push eax
call dword [edx + 0x58]
mov esi, eax
jmp 0x4d27a1
mov eax, dword [edx]
push edx
call dword [eax + 4]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 0x104
lea edx, [esp + 0xd4]
push edx
push eax
call dword [ecx + 0x34]
mov esi, eax
test esi, esi
jl 0x4d27d8
push 0x104
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x2e0]
push ecx
call dword [0x5d2618]
lea edx, [esp + 0x2e4]
add esp, 0xc
test edx, edx
mov word [esp + 0x4de], 0
je 0x4d27a1
mov eax, edx
push eax
call dword [0x5d2620]
add esp, 4
test esi, esi
jl 0x4d27d8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4d27ba
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x58]
mov esi, eax
test esi, esi
jl 0x4d27d8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d27d8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call sym.vidcap60.exe_long_int___stdcall_ProjectLinkReadMeta_LoadInfo_struct_ISfReadMeta___struct__tagSFFIO_linkprojinfo___int__
jmp 0x4d2844
cmp word [esp + 0x2d8], 0
je 0x4d2844
push 1
push 0x104
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x2e4]
push ecx
call sym.vidcap60.exe_long_int___stdcall_SfFMMeta_CreateMetaName_unsigned_short_int_const___unsigned_short_int___long_int__int_
mov esi, eax
test esi, esi
jl 0x4d2c15
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea edx, [esp + 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d2844
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call sym.vidcap60.exe_long_int___stdcall_ProjectLinkRiff_LoadInfo_void___struct__tagSFFIO_linkprojinfo___int__
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d2938
lea ecx, [esp + 0x18]
call fcn.004cc140
mov esi, eax
test esi, esi
jl 0x4d2c15
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, 0x487
lea edi, [esp + 0x6e8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
push 0x104
mov dword [esp + 0x1904], edx
push ecx
lea edx, [esp + 0x4e8]
lea eax, [esp + 0x20]
push edx
mov dword [esp + 0x6fc], eax
mov dword [esp + 0x6f8], ebx
call dword [0x5d2618]
lea eax, [esp + 0x4ec]
add esp, 0xc
test eax, eax
mov word [esp + 0x6e6], 0
je 0x4d28cb
mov ecx, eax
push ecx
call dword [0x5d2620]
add esp, 4
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x4d28f3
mov esi, dword [ebx + 0x20]
test esi, esi
jle 0x4d28f3
push esi
lea edx, [esp + 0x4e4]
push edx
push edi
call dword [0x5d2618]
add esp, 0xc
mov word [edi + esi*2 - 2], 0
lea eax, [esp + 0x4e0]
push eax
call sym.vidcap60.exe__SfGetFileNameExtensionPtrW_4
push 0x104
lea ecx, [esp + 0x6f8]
push ecx
push eax
call fcn.004cfd90
mov esi, eax
test esi, esi
jl 0x4d2c15
lea edx, [esp + 0x6f4]
push edx
call sym.vidcap60.exe__SfDoesFileExist_4
test eax, eax
jne 0x4d2942
mov esi, 0x8004e0a6
jmp 0x4d2c15
mov esi, 0x8004e00a
jmp 0x4d2c15
lea eax, [esp + 0x2d8]
test eax, eax
je 0x4d295e
lea ecx, [esp + 0x2d8]
push ecx
call dword [0x5d2620]
add esp, 4
mov edx, dword [esp + 0x30]
shr edx, 1
lea eax, [edx + eax + 4]
cmp eax, 0x800
jbe 0x4d2979
mov esi, 0x8004e03c
jmp 0x4d2c15
mov ecx, dword [esp + 0x2c]
push 0x800
push ecx
lea edx, [esp + 0x1910]
push edx
call dword [0x5d2618]
lea eax, [esp + 0x1914]
add esp, 0xc
test eax, eax
mov word [esp + 0x2906], 0
je 0x4d29b5
mov ecx, eax
push ecx
call dword [0x5d2620]
add esp, 4
cmp word [esp + 0x1908], 0
jne 0x4d29df
lea edx, [esp + 0x2d8]
push edx
lea eax, [esp + 0x900]
push 0x5ead6c
push eax
call sym.vidcap60.exe_SfPrintF
add esp, 0xc
jmp 0x4d2a29
lea ecx, [esp + 0x1908]
push 0x5d4b1c
push ecx
call dword [0x5d24d4]
add esp, 8
lea edx, [esp + 0x2d8]
test eax, eax
push edx
lea eax, [esp + 0x190c]
lea ecx, [esp + 0x900]
push eax
je 0x4d2a1b
push ecx
call sym.vidcap60.exe_SfPrintF
add esp, 0xc
jmp 0x4d2a29
push str._s___s_
push ecx
call sym.vidcap60.exe_SfPrintF
add esp, 0x10
lea edi, [esp + 0x6f4]
call fcn.004cfe10
test byte [ebx + 4], 1
mov dword [esp + 0x18fc], eax
je 0x4d2a50
test eax, eax
jne 0x4d2a50
mov esi, 0x8004e05c
jmp 0x4d2c15
test byte [ebx], 4
mov edi, 1
je 0x4d2a82
mov eax, dword [esp + 0x1900]
mov ecx, dword [0x621c80]
lea edx, [esp + 0x6e8]
push edx
push 0x4d2420
push eax
push 0x5dd9
push ecx
call sym.vidcap60.exe__SfDialogBoxParam_20
mov edi, eax
mov al, byte [esp + 0x18]
test al, 1
je 0x4d2ae5
test al, al
js 0x4d2ae5
mov edx, dword [esp + 0x24]
push 0x104
push edx
lea eax, [esp + 0xd8]
push eax
call dword [0x5d2618]
lea ecx, [esp + 0xdc]
add esp, 0xc
test ecx, ecx
mov word [esp + 0x2d6], 0
je 0x4d2aca
mov edx, ecx
push edx
call dword [0x5d2620]
add esp, 4
lea eax, [esp + 0xd0]
push eax
call sym.vidcap60.exe__SfDoesFileExist_4
test eax, eax
jne 0x4d2ae5
mov esi, 0x8004e05e
jmp 0x4d2c15
mov eax, dword [ebx]
test al, 1
jne 0x4d2c15
test edi, edi
je 0x4d2c15
test al, 0x10
jne 0x4d2b10
lea ecx, [esp + 0x18]
push ecx
call fcn.004d24d0
mov esi, eax
cmp esi, 1
je 0x4d2c15
lea edx, [esp + 0x6f4]
push edx
lea eax, [esp + 0x290c]
push 0x5ead6c
push eax
call sym.vidcap60.exe_SfPrintF
add esp, 0xc
cmp word [esp + 0x8fc], 0
je 0x4d2bc3
mov esi, dword [0x5d2598]
lea ecx, [esp + 0x2908]
test ecx, ecx
jne 0x4d2b51
xor eax, eax
jmp 0x4d2b69
lea edx, [esp + 0x2908]
push edx
call dword [0x5d2620]
add esp, 4
cmp eax, 0x907
jge 0x4d2b83
mov ecx, 0x906
sub ecx, eax
push ecx
lea edx, [esp + 0x290c]
push 0x5e6a1c
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x2908]
test eax, eax
je 0x4d2ba6
lea ecx, [esp + 0x2908]
push ecx
call dword [0x5d2620]
add esp, 4
cmp eax, 0x907
jge 0x4d2bc3
mov edx, 0x906
sub edx, eax
push edx
lea eax, [esp + 0x900]
push eax
lea ecx, [esp + 0x2910]
push ecx
call esi
add esp, 0xc
xor eax, eax
xor esi, esi
mov ecx, 0x11
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x8c]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
lea ecx, [esp + 0x2928]
push ecx
push esi
mov dword [esp + 0xb0], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4d2c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.vidcap60.exe__SfErrorHandler_TranslateWin32Error_4
mov esi, eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x4d2c29
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4d2c3b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x18]
call fcn.004cc240
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret 8