Function at 0x3002a920
Capabilities:
Accept command line arguments
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x3002eb7a
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x3003a6b0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x3003a6b0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 8]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.3002bf80
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x68]
cmp ecx, eax
je 0x3002a9a0
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.30001870
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
mov eax, dword [ebx + 0x6c]
lea edx, [ebx + 0x74]
push edx
push eax
push esi
call fcn.30002070
add esp, 0x18
mov dword [ebx + 0x6c], esi
push 0x30033da4
push str.playmedia
call fcn.3002bc20
xor edi, edi
xor ecx, ecx
mov word [esp + 0x30], cx
mov ecx, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x3002a9d0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.30001f00
mov dword [esp + 0xb0], edi
cmp dword [esp + 0x40], 2
mov esi, 8
jb 0x3002aaac
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], esi
jae 0x3002aa0f
lea eax, [esp + 0x30]
cmp word [eax], 0x27
jne 0x3002aa54
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.30001120
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 1
call fcn.300013e0
mov byte [esp + 0xb0], 0
cmp dword [esp + 0x60], esi
jb 0x3002aa54
mov eax, dword [esp + 0x4c]
push eax
call fcn.30014501
add esp, 4
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], esi
jae 0x3002aa62
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
cmp word [eax + ecx*2 - 2], 0x27
jne 0x3002aaac
dec ecx
push ecx
push edi
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x3c]
call fcn.30001120
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 2
call fcn.300013e0
mov byte [esp + 0xb0], 0
cmp dword [esp + 0x60], esi
jb 0x3002aaac
mov edx, dword [esp + 0x4c]
push edx
call fcn.30014501
add esp, 4
cmp dword [esp + 0x40], edi
je 0x3002aac0
lea ecx, [esp + 0x30]
lea edi, [ebx + 0x68]
call fcn.30001300
xor edi, edi
cmp dword [esp + 0x44], esi
jb 0x3002aad3
mov eax, dword [esp + 0x30]
push eax
call fcn.30014501
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0xb0], 3
mov edx, dword [ebx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jle 0x3002ab50
xor esi, esi
mov ebx, eax
mov eax, dword [esp + 0x20]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x3002ab29
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x3002ab46
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
add ecx, esi
add edi, 0x68
call fcn.30001300
add esi, 0x1c
dec ebx
jne 0x3002ab1b
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
lea edi, [ebx + 8]
call fcn.3002bd40
mov edi, eax
lea esi, [ebx + 0x78]
xor ecx, ecx
cmp esi, edi
je 0x3002abae
mov eax, dword [esi]
cmp eax, ecx
je 0x3002ab8e
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push edx
lea edx, [esi + 0xc]
push edx
push ecx
push eax
call fcn.30002070
mov eax, dword [esi]
push eax
call fcn.30014501
add esp, 0x14
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov eax, dword [edi]
mov dword [esi], eax
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov byte [esp + 0xb0], 3
mov edi, dword [esp + 0x30]
cmp edi, ecx
je 0x3002ac02
mov ebx, dword [esp + 0x34]
cmp edi, ebx
je 0x3002abf5
cmp dword [edi + 0x14], 8
jb 0x3002abd7
mov eax, dword [edi]
push eax
call fcn.30014501
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
add edi, 0x1c
cmp edi, ebx
jne 0x3002abc6
mov edi, dword [esp + 0x30]
push edi
call fcn.30014501
mov ebx, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x3002ad45
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov ecx, dword [esi]
add ecx, dword [esp + 0x1c]
lea edi, [esp + 0x4c]
call fcn.3002b990
mov edx, edi
push edx
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0xb8], 5
call fcn.3002a550
push eax
lea ebx, [esp + 0x74]
mov byte [esp + 0xbc], 6
call fcn.3002b860
add esp, 0xc
mov ebx, eax
mov edi, dword [esi]
add edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x3002acce
cmp dword [edi + 0x14], 8
jb 0x3002ac87
mov eax, dword [edi]
push eax
call fcn.30014501
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
cmp dword [ebx + 0x14], 8
jae 0x3002acb4
mov eax, dword [ebx + 0x10]
lea edx, [eax + eax + 2]
push edx
push ebx
push edi
call fcn.30014960
add esp, 0xc
jmp 0x3002acba
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [ebx], ecx
mov ecx, dword [ebx + 0x10]
mov dword [edi + 0x10], ecx
mov edx, dword [ebx + 0x14]
xor eax, eax
mov dword [edi + 0x14], edx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
cmp dword [esp + 0x7c], 8
jb 0x3002ace2
mov eax, dword [esp + 0x68]
push eax
call fcn.30014501
add esp, 4
xor ecx, ecx
mov edi, 0x10
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], cx
cmp dword [esp + 0x98], edi
jb 0x3002ad17
mov edx, dword [esp + 0x84]
push edx
call fcn.30014501
add esp, 4
mov byte [esp + 0xb0], 3
cmp dword [esp + 0x60], edi
jb 0x3002ad32
mov eax, dword [esp + 0x4c]
push eax
call fcn.30014501
add esp, 4
add dword [esp + 0x1c], 0x1c
dec dword [esp + 0x14]
jne 0x3002ac2e
mov ebx, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test eax, eax
jne 0x3002ad56
mov edx, 0x30033da4
mov eax, edx
lea esi, [eax + 2]
jmp 0x3002ad60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x3002ad60
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebx + 0x4c]
call fcn.30001f00
mov edi, dword [esp + 0x20]
xor ebx, ebx
cmp edi, ebx
je 0x3002adc4
mov esi, dword [esp + 0x24]
cmp edi, esi
je 0x3002adbb
jmp 0x3002ad90
cmp dword [edi + 0x14], 8
jb 0x3002ada1
mov ecx, dword [edi]
push ecx
call fcn.30014501
add esp, 4
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], dx
add edi, 0x1c
cmp edi, esi
jne 0x3002ad90
mov edi, dword [esp + 0x20]
push edi
call fcn.30014501
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.30014dbb
mov esp, ebp
pop ebp
ret