Function at 0x42c220
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, dword [esp + 0x58]
movaps xmm0, xmmword [0x4f2a70]
movups xmmword [esp + 4], xmm0
lea eax, [esp + 4]
push eax
call dbg.ffDetectCamera
add esp, 4
test eax, eax
je 0x42c28c
add esi, 0x20
push eax
push 0x4f2a97
push 0
push esi
push 0
push str.Camera
call dbg.ffPrintError
add esp, 0x18
mov eax, dword [esp + 4]
test eax, eax
je 0x42c284
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
push eax
call sym._free
add esp, 4
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xc]
lea ecx, [esi + 0x20]
test eax, eax
je 0x42c4c7
mov dword [esp], ecx
mov ebp, 0x34
xor ebx, ebx
jmp 0x42c33e
lea ecx, [edi + ebp]
add ecx, 0xffffffcc
mov dword [esp + 0x14], 7
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 7
lea ecx, [edi + ebp]
lea edx, [edi + ebp - 0x28]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 7
lea edx, [edi + ebp - 0x10]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 7
lea edx, [edi + ebp - 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 1
lea edx, [edi + ebp - 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], ecx
movzx eax, al
lea ecx, [esp + 0x14]
push ecx
push 6
push 0
push dword [esp + 0xc]
push eax
push str.Camera
call dbg.ffPrintFormat
add esp, 0x18
mov eax, dword [esp + 0xc]
add ebp, 0x38
cmp ebx, eax
jae 0x42c413
inc ebx
cmp eax, 1
mov eax, ebx
mov ecx, 0
cmove eax, ecx
mov edi, dword [esp + 4]
cmp dword [esi + 0x3c], 0
jne 0x42c2b0
movzx eax, al
push 0
push dword [esp + 4]
push eax
push str.Camera
call dbg.ffPrintLogoAndKey
add esp, 0x10
push 1
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call esi
add esp, 4
push eax
push dword [edi + ebp - 0x30]
push 1
push dword [edi + ebp - 0x2c]
call sym._fwrite
add esp, 0x10
cmp dword [edi + ebp - 0xc], 0
je 0x42c3cb
push 1
call esi
add esp, 4
push eax
push 1
push 3
push 0x4f2b84
call sym._fwrite
add esp, 0x10
push 1
call esi
add esp, 4
push eax
push dword [edi + ebp - 0xc]
push 1
push dword [edi + ebp - 8]
call sym._fwrite
add esp, 0x10
mov eax, dword [edi + ebp - 4]
test eax, eax
je 0x42c400
mov ecx, dword [edi + ebp]
test ecx, ecx
je 0x42c400
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sym._printf_3
add esp, 0xc
mov esi, dword [esp + 0x58]
jmp 0x42c32f
push 0xa
call sym._putchar
add esp, 4
mov esi, dword [esp + 0x58]
jmp 0x42c32f
test eax, eax
jle 0x42c263
mov esi, dword [esp + 4]
lea edi, [esi + 0x38]
add esi, 0x2c
jmp 0x42c451
mov dword [esi], eax
mov eax, edi
sub eax, dword [esp + 4]
sar eax, 3
imul eax, eax, 0xb6db6db7
add edi, 0x38
add esi, 0x38
cmp eax, dword [esp + 0xc]
jge 0x42c263
cmp dword [esi - 0x2c], 0
mov dword [esi - 0x28], 0
je 0x42c470
mov dword [esi - 0x2c], 0
push dword [esi - 0x24]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi - 0x24], eax
cmp dword [esi - 0x14], 0
mov dword [esi - 0x10], 0
je 0x42c49c
mov dword [esi - 0x14], 0
push dword [esi - 0xc]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi - 0xc], eax
cmp dword [esi - 8], 0
mov dword [esi - 4], 0
je 0x42c430
mov dword [esi - 8], 0
push dword [esi]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
jmp 0x42c430
push str.No_camera_found
push 0
push ecx
push 0
push str.Camera
call dbg.ffPrintError
add esp, 0x14
jmp 0x42c263