Function at 0x402ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559d06
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x468
mov eax, dword [str.._AVCInvalidArgException__]
xor eax, ebp
mov dword [ebp - 0x30], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004039f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00406440
push eax
call fcn.00536a90
add esp, 4
cmp eax, 0x100000
ja 0x402b43
lea ecx, [ebp - 0x1c]
call fcn.00406440
push eax
call fcn.00536c00
add esp, 4
cmp eax, 3
je 0x402b52
lea ecx, [ebp - 0x1c]
call fcn.00406440
push eax
call dword [0x55e450]
lea ecx, [ebp - 0x1c]
call fcn.00406440
push eax
call dword [0x55e52c]
mov dword [ebp - 0x18], eax
xor ecx, ecx
cmp dword [ebp - 0x18], 0
sete cl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x402b89
mov dword [ebp - 0x468], 0x574194
jmp 0x402b93
mov dword [ebp - 0x468], 0x57419c
mov edx, dword [ebp - 0x468]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00406440
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0050d005
add esp, 0xc
test eax, eax
je 0x402bc7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00408b90
jmp 0x402e46
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x402bf8
mov byte [ebp - 0x454], 0xff
mov byte [ebp - 0x453], 0xfe
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push 2
lea edx, [ebp - 0x454]
push edx
call fcn.0050d1ba
add esp, 0x10
jmp 0x402c08
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.0050d2c6
add esp, 0xc
push 0
lea ecx, [ebp - 0x460]
push ecx
call fcn.00403620
push eax
lea edx, [ebp - 0x464]
push edx
call fcn.00539400
add esp, 0xc
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x470], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x470]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00402400
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x464]
call fcn.00408b90
xor edx, edx
mov word [ebp - 0x448], dx
push 0x206
push 0
lea eax, [ebp - 0x446]
push eax
call fcn.0050cad0
add esp, 0xc
lea ecx, [ebp - 0x450]
call fcn.00406440
push eax
push 0x104
lea ecx, [ebp - 0x448]
push ecx
call fcn.0050cb4a
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
push 1
lea eax, [ebp - 0x448]
push eax
call fcn.0050c7a9
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x448]
push ecx
call fcn.0050d1ba
add esp, 0x10
call dword [0x55e44c]
mov dword [ebp - 0x23c], eax
xor edx, edx
mov word [ebp - 0x238], dx
push 0x206
push 0
lea eax, [ebp - 0x236]
push eax
call fcn.0050cad0
add esp, 0xc
mov ecx, dword [ebp - 0x23c]
push ecx
push 0x5741a4
push 0x104
lea edx, [ebp - 0x238]
push edx
call fcn.0050d34b
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x238]
push ecx
call fcn.0050c7a9
add esp, 4
shl eax, 1
push eax
lea edx, [ebp - 0x238]
push edx
call fcn.0050d1ba
add esp, 0x10
mov dword [ebp - 0x24], 0x5741b0
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0050c7a9
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.0050d1ba
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004039f0
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 5
push 0x20
push 0xd
lea ecx, [ebp - 0x2c]
call fcn.00403550
push 0x20
push 0xa
lea ecx, [ebp - 0x2c]
call fcn.00403550
lea ecx, [ebp - 0x2c]
call fcn.00406440
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x44c]
push edx
call fcn.0050c7a9
add esp, 4
shl eax, 1
push eax
mov eax, dword [ebp - 0x44c]
push eax
call fcn.0050d1ba
add esp, 0x10
mov dword [ebp - 0x28], 0x5741b8
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x28]
push edx
call fcn.0050c7a9
add esp, 4
shl eax, 1
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.0050d1ba
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0050d514
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00408b90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00408b90
jmp 0x402e24
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.0050d5e7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00408b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0050c749
mov esp, ebp
pop ebp
ret